PHP Classes

Print an iframe

Recommend this page to a friend!

      Convert HTML to PDF PHP Library  >  All threads  >  Print an iframe  >  (Un) Subscribe thread alerts  
Subject:Print an iframe
Summary:Can this be used to print an iframe
Messages:11
Author:Lisa Baird
Date:2017-08-01 20:47:15
 
  1 - 10   11 - 11  

  11. Re: Print an iframe   Reply   Report abuse  
Picture of Lisa Baird Lisa Baird - 2017-08-07 21:25:06 - In reply to message 10 from Dave Smith
Hi Dave,

I got this working, with the exception of some spacing problems.

I wasn't decarling the doctype,title, body, etc in the header file. I assumed that the program wanted the raw html. Adding the basic declarations caused everything to printer properly. After spending hours trying to get everything to work with thead, there were just too many limitations. If there were too many <br> tags or an image, the header wouldn't repeat.

I am currently outputting my header and the main document to seperate html files, then I have a 3rd file that is used to generate the printed document. How can I make a "print button" that sends the user directly to the open/save dialogue?

I am creating two variables - $doc_header and $doc_content - which gets the output to print and is currently used to generate the pages mentioned above. These variables could be passed to the "print button."

Thank you for your time and suggestions.
Lisa

 
  1 - 10   11 - 11