Vinayak, I've only dealt with the parser, the document outline (aka "bookmarks"), and encryption. I'm not at all familiar with the image processing sections of PDFBox, but there was a person who wanted to go through and watermark all the images in a PDF. They posted an e-mail with an explanation and source code showing how they solved the problem. You can take a look at their final message[1] from that thread. If that doesn't help, I'd encourage you to search the mailing lists[2].
Hope this helps you... like I said, I don't have any experience in embedding images, but I'm trying to point you in the right direction. [1] http://markmail.org/message/mzz44sqdxcumsljr [2] http://pdfbox.apache.org/mail-lists.html ---- Thanks, Adam From: "Vinayak Mishra" <[email protected]> To: "[email protected]" <[email protected]> Date: 09/30/2010 10:36 Subject: RE: Embed PNG/GIF image into existing PDF Document Hi all, Forgive my naiveness but I am new to PdfBox, and trying my best to understand the library. I am stuck at a point and need someone to show a work around, pls see the mail below for details. I mailed this to the list a few days back, and receiving no response feels weird. I am not sure if my mails are getting through. Thanks and regards, Vinayak -----Original Message----- From: Vinayak Sent: 28/09/2010 12:42:24 Subject: Re: Embed PNG/GIF image into existing PDF Document Hi all, Any suggestions/pointers on this? Thanks for your support, Vinayak On Thu, Sep 23, 2010 at 10:33 AM, Vinayak wrote: > Hi guys, > I'm doing some digital document conversion and got stuck at a point where > I'd like to embed a png image file into a pdf. > Would anybody show me how do I do that using pdfbox, please. > > I am loading PNG image using ImageIO and loading into PDJpeg using > PDJpeg(PDDocument, BufferedImage). This works for PNG images containing > colors other than black. The signature image I am using contains user > signature in black over a transparent background. I am unable to see the > image when embedded into pdf. Sample signature files in colors other than > black work as expected. > > Please help me out! > > Thank you very much. > -- > Vinayak ? 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.

