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

Egon Bianchet’s picture

Plese 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

Anonymous’s picture

Thank 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.

Anonymous’s picture

Also the page number is visible as 1/1

Annika’s picture

I 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.

Egon Bianchet’s picture

Status: Active » Fixed

Fixed :-)

Anonymous’s picture

Status: Fixed » Active

What do you mean by fixed?

Egon Bianchet’s picture

Category: support » bug
Status: Active » Fixed

Sorry. It was a bug and I fixed it. All you need to do is to download the module again, it should work now.

kopexy’s picture

The fix did not fix ; ]

kaw3939’s picture

Thanks 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.

Egon Bianchet’s picture

I can't reproduce it, it works fine. Can you check the image url in the html code?

kopexy’s picture

for me 1.31 fixed.... ;] thx

Patrick Nelson’s picture

Even 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:

Horizontal line
Title
Submitted by information
Big blank space
Another horizontal line
Then 1/1

This can be seen here: http://farndon.underdesign.co.uk/node/4

Any help in sorting this would be greatly appreciated.

Regards

Patrick

Patrick Nelson’s picture

Status: Fixed » Active

Hope you don't mind me changing the status - it isn't fixed for me, is all.

Egon Bianchet’s picture

Status: Active » Closed (fixed)

You 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).