There was someone asking a similar question a few weeks ago.  Check out 
the mailing list archives[1] specifically this message[2].

[1] http://pdfbox.apache.org/mail-lists.html
[2] http://markmail.org/message/mzz44sqdxcumsljr

---- 
Thanks,
Adam





From:
Donal Boyle <[email protected]>
To:
[email protected]
Date:
09/30/2010 09:45
Subject:
Replace Image in PDF with another Image



Hello, 

Is it possible to replace an existing image in a PDF with a different 
image not yet in the PDF (e.g. an instance of BufferedImage)? I If so, 
what needs to be done to achieve this? 

More detail: 
I have found the image in the PDF using resources.getXObjects(). 
I used PDXObjectImage.getRGBImage() to get access to the image so I could 
alter it using the Java 2d API 

Now I have a new instance of BufferedImage whic I want to write the PDF 
stream in place of the original image . 

Thank you, 
Donal 



?  Click here to submit conditions  

This email and any content within or attached hereto from  Sun West Mortgage 
Company, Inc.  is confidential and/or legally privileged. The information is 
intended only for the use of the individual or entity named on this email. If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or the taking of any action in reliance on 
the contents of this email information is strictly prohibited, and that the 
documents should be returned to this office immediately by email. Receipt by 
anyone other than the intended recipient is not a waiver of any privilege. 
Please do not include your social security number, account number, or any other 
personal or financial information in the content of the email. Should you have 
any questions, please call  (800) 453 7884.   

Reply via email to