Printing non tax PHP coupon

Asked

Viewed 1,053 times

-2

Hello, I was wondering if it is possible to print tax-free coupon via PHP?

If so, how could I implement it? I use Laravel 5.5

1 answer

0

I think using only CSS and a little 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" />

Browser other questions tagged

You are not signed in. Login or sign up in order to post.