Hi all,
Just want to share some strange problem encountered when enable PDF output and the solution i discovered.
On a simple table that i wanted to save as PDF, i did everything required, i.e. put the html2pdf files in the
directory, check access privilege of output folder as instructed in the help manual. But i keep getting
a blank page immediately with PDF progress bar not progressing, and the file size generated is always 200K.
The following was done:
- Checked any similar problem in this forum. (Nothing was found).
- Checked the tips on the html2pdf site: http://www.tufat.com/docs/html2ps/faq.html#nooutput, esp. the version of PHP and GD library
(it was ok for me)
- Removed any images on the print layout. Since i suspected image could be a problem due to point 2 above about some php GD library strange problem.
- And most importantly, which fixed my problem, removed the header tag on the visual editor. Yes, the header tag contained some
common JavaScript library added by me that conflict with the html2pdf. Since i dont need the library for the print page, i removed that.
With that, it fixed my problem after pulling my hair over for a long time. And i guess, i am more keen to explore the brand new and shinny
invoice template now <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=20221&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' /> (without pdf working on my sever, invoice template would not work.)
Hope it helps.