> still last question, how is it possible to retrieve the content from a
> PdfImportedPage or from PdfReader? Say, the page contains an object
(i.e.
> image) located at center and I want to copy only that object, not the
> entire page?

Yes, but it's Hard.  You need to implement a
com.itextpdf.text.pdf.parser .RenderListener (which is pretty slick btw,
thank you Kevin Day).  It'll let you know every time it comes across an
image, and tell you its coordinates and so forth.  It's up to you to
figure out if it's the right image or not.

Once you've found it, you'll need to use its PdfImageObject to copy the
image out to your new PDF.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 

> -----Original Message-----
> From: eplischke [mailto:eplisc...@googlemail.com]
> Sent: Thursday, May 27, 2010 8:11 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Spam: Re: [iText-questions] PdfCopy ignores manipulations on
> directContent
> 
> 
> 
> --
> View this message in context: http://itext-
> general.2136553.n4.nabble.com/PdfCopy-ignores-manipulations-on-
> directContent-tp2233087p2233301.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
>
------------------------------------------------------------------------
--
> ----
> 
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.itextpdf.com/book/
> 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: 9.0.819 / Virus Database: 271.1.1/2895 - Release Date:
05/26/10
> 23:25:00

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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