Non-fiscal PHP coupon printing

0

Hello, I wonder if it is possible to print non-tax coupon via PHP?

If so, how could you do this implementation? I use Laravel 5.5

    
asked by anonymous 09.12.2017 / 17:55

1 answer

0

I think using only CSS and a little bit of javascript can solve your problem.

CSS

#areaDeImpressao {
    display: none;
}

@media print {
   * {
       display: none;
    }
    #areaDeImpressao {
       display: block;
    }
}

HTML

<div id="areaDeImpressao">
    <h1>Imprimir isto</h1>
</div>

<input type="button" onclick="window.print()" value="Imprimir" />
    
10.12.2017 / 05:15