PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm having the great privelege of looking at someone else's poorly commented code and trying to figure out why it doesn't work. He's written a script that generates a PDF file from some database info. I'm getting the following error:
Fatal error: PDFlib error: [2106] PDF_close: Generated document doesn't contain any pages in c:\wwwroot\taxsale\pdf.inc on line 33
This error only occurs in certain instances - with certain database info, it works fine. I'm not too familiar with writing PDF files with PHP, though, so I don't know what to try. Any ideas?
that's what it sounds like it did. I would suspect it had an error while processing the first page so it didn't get injected and thereby skipped out, causing the close call to generate the "error"