Hi, 

Thanks for that will have a look at PdfContentByte.clip().

Removing the interactive features is exactly what I want to do, in fact this
is vital to my app. Plus all I'm really concerned about is the content
within the cropbox of the pdfs. 

Just so I know, should changing

"bBox = readerInstance.Reader.GetPageSize(pageNumber)" 
To
"bBox = readerInstance.Reader.GetCropBox(pageNumber);"

work and just get the size of the cropbox, therefore I should just be able
to get its content only?

Thanks



-----Original Message-----
From: 1T3XT info [mailto:i...@1t3xt.info] 
Sent: 10 January 2010 7:18 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Get the content from only within the cropbox?

> How do I clip the imported page?

Clipping the imported page:
Look for examples with PdfContentByte.clip();

> I need to clip this based on the size 
> of the cropbox. This is why I wanted to get the content of the cropbox 
> from the start rather than the PageSize?

Another way (maybe even a better solution) would
be to define a crop box for the newly created file.

You convert an A3 MediaBox with a less than A3 CropBox
to an A4 MediaBox without a CropBox. Why?
Wouldn't it be better to convert it to an A4 MediaBox
and a less than A4 CropBox?

 > Surly this is not an unusual task?

Your design is flawed.
As soon as you have interactive features in the PDF
you're trying to resize, you'll find out that they
won't work as expected.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

----------------------------------------------------------------------------
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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/
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.432 / Virus Database: 270.14.131/2609 - Release Date: 01/09/10
07:35:00



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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/

Reply via email to