Replace PdfStamper with PdfReader in the answer below. Use PdfContentParser to help you finding the image. Of course, all this assumes that you have some criteria to find the image not just whishful thinking.
Paulo ----- Original Message ----- From: "bruno" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" <[email protected]> Sent: Friday, June 16, 2006 8:33 AM Subject: Re: [iText-questions] [{Spam???}] - Re: [{Spam???}] - Re: [{Spam?}] - Re: Howtoassign adigitalsignature to anexisting image -BayesianFilter detected spam - Email found in subject - Email found in subject > Frankinet Philippe wrote: > >>The image is located on a page. In most cases it will be the last page. >>PDF is generated using FOP and includes tables and images. Table sizes are >>unknown (depends on data), then i'm not able to known what is his position >>X,Y >> > To know the position of an Image in a PDF page, > you need to know a lot about PDF syntax. > In PdfStamper, there is a getPageContent method. > It gives you the syntax that is used to display the page. > Look for a Do command. It is used to add the Image XObject. > Also you will have to study the PDF Reference to learn > all about the CTM: the Current Transformation Matrix. > It's not a trivial question. > br, > Bruno > > > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
