I'm trying to load a single page of a pdf document that is available as byte[]. Following I want to add some extra content (text) to the page and write it to the filesystem. I'm not sure whether I'm on the right track while loading the single page of interest using:
byte[] page = new PdfReader( byte[] ).getPageContent( int pageNr ); When i try to add some content to the page[] using PdfContentByte (PdfStamper.getOverContet( int i)) I get the following exception while creating a new PdfReader-object with the new array. java.io.IOException: PDF header signature not found. The stream data is useless to me... Any ideas for a better approach? -- View this message in context: http://www.nabble.com/Load-a-single-page-of-a-pdf-document-tf3194949.html#a8870900 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/