-
Print to PDF from HTML live
Im creating a ticket control pannel for a client, and they want to print off tickets acording to the recordset query i have set up.
I have used PHP and a command, window.print()
This is ok, but the problem is that it will then print the header and footer on the pages, such as page no x of y pages in the header and the url in the footer.
As far as i can tell, there is no way to control the header and footer from the PHP or HTML code, so im thinking of putting the onclick event of my button to take the dynamic text into a PDF for printing.Do you know of an example of code on how to do this, or even just give me a clue on what to google for, my searches are not coming up with the right type of print to PDF that i would hope for?
To sumarise…
i have a master page, and the detail page is a repeated region of a delivery note. I have used pagebreak rule in the css, so each ticket is printed out on seperate pages.
I wish the detail page to be PDF now instead of HTML/PHPThanks guys.
Richard