Eric Summkeller wrote: > I have one question to the code that you send me. I tried this code, but the > Stream that I get from the PdfReader contains the content number in Unicode. > (example:(\u0000\u0014))
You'll have to explain what you mean by this. > If I replace this with the new number not > encoded nothing will happen in my Document. Only the value of the template > was > empty. I have no idea what you are talking about. > The differnce of your solution to mine is that I first create a PdfTemplate, > wrap this into an Image and create a new Chunk with this Image. In the > onCloseDocument() method I write the pagenumber into the Template. We're working at the lowest level here. We're not using PdfTemplate, Image, Chunk, anymore. What we're doing is getting the 'form XObject' (we prefer calling it PdfTemplate to avoid confusion with forms) and replace the stream. You don't have to manipulate the String as I did, but you surely have to create the PDF syntax and replace the byte[] of the stream object. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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/
