Hi, I know how to add content using PdfStamper. My problem is: How can i determine where to start with the new content. How can I know that the existing content ends at a specific position on the page? Is that possible?
Greetings Frank > -----Ursprüngliche Nachricht----- > Von: 1T3XT info [mailto:[email protected]] > Gesendet: Freitag, 19. Februar 2010 20:48 > An: Post all your questions about iText here > Betreff: Re: [iText-questions] Extraction > > > MWooldridge wrote: > > If the page has atleast one image I would like to copy the > page out. > > I found the example on splitting pages from a pdf but I do not know > > how to decide if a page has an image. > > Well, you need to look at the page dictionary. > You can get this dictionary from PdfStamper with > getPageN(pagenumber); In this dictionary you have a key > /Resources. In these resources you have /XObjects. Some of > these XObject will be form XObjects, others will be image XObjects. > > You'll have to loop over all the pages, and inspect > the page dictionary of each page for the existance > of image XObjects. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > -------------------------------------------------------------- > ---------------- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, > find bugs proactively, and fine-tune applications for > parallel performance. See why Intel Parallel Studio got high > marks during beta. http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > iText-questions mailing list [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > Check the site with examples before you ask questions: > http://www.1t3xt.info/examples/ You can also search the > keywords list: http://1t3xt.info/tutorials/keywords/ ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
