Stephen LeCompte wrote > Question: How come Adobe rectangle does not get extracted with > iTextSharp? > > Version: itextsharp-all-5.5.0 > > I have an Adobe PDF that has a rectangle highlighting some data on the 2nd > page (provided as an attachment) and yet when I do an ExtractPages using > the following code - the rectangle is not transferred to the new document.
You use code which only copies page content. That rectangle, though, is an annotation, and annotations are not part of the page content but instead extra data. You'll find some background information in this stackoverflow answer: http://stackoverflow.com/a/15945467/1729265 In essence: If you want to copy all aspects of a page, you have to use PdfCopy*. If you merely want to insert the contents of a page, you may use PdfWriter. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Re-pdf-extractpages-function-tp4659947p4659948.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php