I installed Pdfview with Tcpdf.
Made the necessary configuration on tcpdf_config.php and pdf file creates but an empty one.
Please tell me what am I doing wrong.
| Project Depository | Webmail |
I installed Pdfview with Tcpdf.
Made the necessary configuration on tcpdf_config.php and pdf file creates but an empty one.
Please tell me what am I doing wrong.
| Project Depository | Webmail |
Comments
Comment #1
Egon Bianchet commentedPlese provide more details: does it occur with every node type or just one in particular? Is the pdf completely blank or is there something displayed (ie. the title)? Are you using PHP 4 or 5?
Thanks
Comment #2
Anonymous (not verified) commentedThank you very much for your reply.
The PDF has only 2 horizontal lines header and footer. The same hapens on all content types.
I have PHP 4+
Installed the latest php4 version of TCPDF.
Comment #3
Anonymous (not verified) commentedAlso the page number is visible as 1/1
Comment #4
Annika commentedI have exactly the same problem and the same output trying to print a blog post to PDF. The blog is in Swedish. I don't know if that makes a difference.
A curious observation though: When setting up TCPDF I could not get the test page to show in Firefox, despite the right paths in the config file. In Safari it worked perfectly (?!).
When making pdfs, the pdf file titles (with special Swedish characters) are correct when made in Firefox. In Safari the Swedish characters are substituted with garbage characters.
I'm running the latest modules of PDFView and TCPDF on Drupal 4.7.2 with PHP4 on Mac OSX Tiger.
Comment #5
Egon Bianchet commentedFixed :-)
Comment #6
Anonymous (not verified) commentedWhat do you mean by fixed?
Comment #7
Egon Bianchet commentedSorry. It was a bug and I fixed it. All you need to do is to download the module again, it should work now.
Comment #8
kopexy commentedThe fix did not fix ; ]
Comment #9
kaw3939 commentedThanks for making it so the error did not come up with I create a PDF with an image in it.
However, now I get a blank PDF when I try to create a PDF that has an image in it from an image node and from acidfree gallery.
PHP5 & Drupal 4.7 with the lastest CVS of PDFView.
Comment #10
Egon Bianchet commentedI can't reproduce it, it works fine. Can you check the image url in the html code?
Comment #11
kopexy commentedfor me 1.31 fixed.... ;] thx
Comment #12
Patrick Nelson commentedEven with 1.31, I'm still getting this same error. Here's the full issue:
- Works fine with the story content type unless there is an image involved in which case I receive the following error:
warning: getimagesize(/files/images/boats3.jpg): failed to open stream: No such file or directory in /home/f/a/farndon/public_html/modules/pdfview/tcpdf/tcpdf.php on line 3024.- Does not produce the PDF properly on a CCK content type. All it shows is:
This can be seen here: http://farndon.underdesign.co.uk/node/4
Any help in sorting this would be greatly appreciated.
Regards
Patrick
Comment #13
Patrick Nelson commentedHope you don't mind me changing the status - it isn't fixed for me, is all.
Comment #14
Egon Bianchet commentedYou have to ether include the image with a full url, "http://www.example.com/files/image.jpg", or set up the image path in the tcpdf config file.
CCK isn't supported at the moment, but you can override the pdfview themeable functions and render it yourself (or submit a patch).