Hi Adam, PdfReader.GetPageN() does exist in iTextSharp but isn't a static function, you need to call it from an instance of the PdfReader object, i.e.:
PdfReader reader = new PdfReader("myDoc.PDF"); reader.GetPageN(1).Put(PdfName.CROPBOX, new PdfRectangle(...)); Cheers, Brian Brian Chappell e br...@orcamediauk.co.uk t 01256 333522 m 07974 753834 Registered in England No: 04007633 VAT No: 745 23 9423 -----Original Message----- From: Adam Underwood [mailto:adam.underw...@i2i-solutions.net] Sent: 02 December 2009 7:51 AM To: Post all your questions about iText here Subject: Re: [iText-questions] CROPBOX help Hello, I'm using C# and iText to manipulate PDF documents, I'm currently populating AcroFields and then publishing the PDF. However I need to be able to add/adjust a cropbox and set its position and size on the PDF. I have read that it can be done using Java; PdfReader.getPageN(1).put(PdfName.CROPBOX, new PdfRectangle(...)) However the getPageM() function doesn't exist in C# as far as I can tell, how can I add a cropbox and set its position using the C# library? Many thanks Adam Online Software for Export Documents and Services i2i (Innovate to Integrate) Ltd The Old Brewhouse Lower Charlton Trading Estate Shepton Mallet, BA4 5QE Registered in England No. 02921064 ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ ---------------------------------------------------------------------------- -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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/ ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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/