Li Wang wrote:
> //sometimes the file is blank while sometimes good.

In the book, I explain the 'blank page problem' in the
context of a web app (chapter 17). There are different
reasons why the pages in a PDF can turn blank, but the
most probable reason in the context you are describing
is a kind of 'flattening' of the bytes.

PDF is a binary format. Think of the structure as plain
ASCII (the reader can open the PDF, knows how many pages
there are, and so on), but the page content is compressed
(binary!!!). Programs that don't treat a PDF as a binary
will make the page content corrupt (open the PDF in a
plain text editor such as vi, WordPad,... and you'll see
the page content isn't binary anymore).

If that's the case with your app, that would explain why
you only see blank pages. The solution is to make sure
your app can handle binaries.
br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to