Donate Share

TCPDF - PHP class for PDF

Subscribe

TCPDF BLANK PAGE DOCUMENT

  1. 2009-11-04 12:45:28 UTC

    Hi all, I have a "Duesy" for you... I'm using TCPDF 4.8.014( used 4.8.013, 4.8.011), for php5, and I wrote a function that generates a PDF file. On development server(win xp/ apache 2.x/ php5) works perfectly. On production server( linux / apache 2.x/ php5 ) is the "Duesy"... When I call that function from one php file, it works just fine, it outputs the file for download perfectly. The problem is when I call the same function, exactly the same, with the exact same parameters, in another file(also tried calling the function alone in a new php file - not working). It generates an empty PDF file, a blank page.I tried to output the file to disk, output for download, output to string...same result, one blank page. I've printed the content that is supposed to be in the PDF file out to a .txt file and it is all there, so TCPDF has the correct content at its disposal. Did anybody experienced something like this? Does anybody have any new ideeas/sugestions I could try? Anything that could help I would appreciate. Thanks in advance. Cola

  2. 2009-11-04 13:43:31 UTC

    Maybe you are outputting some blank character on the other files. You can set the PHP error reporting level to maximum to discover this.

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.