Quoting [EMAIL PROTECTED]: > I have output the byteArray (.toString() method ) to the system out. > And saved the system out into database(blob binary).
So you ALTERED the PDF from a byteArray into a String. This can lead to different results depending on the encoding. > Then i was trying to retrieved the content fro the database and try to > stream it through a web interface. Did you use getBytes or getString to retrieve the PDF from the database? > The browser opened the page, but the page s are all blank. But the doc > contain the right number of pages. This is typical if you don't respect the encoding. Save the original byteArray and save the file retrieved from the database. You will see that the ASCII part is intact (for instance the 'dictionary' that keeps the Page Tree), but the bytes > 127 in you content 'streams' will all be changed into question marks. > Also, this is also very weird, if I encrypted the doc (but not password > protect ) before i send it to the database, the doc returned through web > asking for a password to open the Doc. If you alter PDF docs (manually or by playing with encodings) all kinds of unexpected behaviour can occur. br, Bruno ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
