« Return to Thread: PdfReader String

PdfReader String

by Stéphane Bansard :: Rate this Message:

Reply to Author | View in Thread

Hi all,

using a DMS, I can have access to pdf contents of a file (not to the pdf file). I want to add a cover page to this file. I can do that on a pdf file, using PdfReader(fileName) and use PdfCopy and PdfStamper.

But, when it comes to read the pdf contents I have -as String, I cannot do it! I transformed my String to a Byte Array (using java.String.getBytes()) and read this with PdfReader(byte[]), but the resulting document is always empty (the content is lost).

I'm just thinking trying to get the bytes from this pdf String content doesn't make sense. Could you tell what to try out?
Thanks in advance,
Best regards
Stéphane


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

 « Return to Thread: PdfReader String