You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Vinayak <vn...@gmail.com> on 2010/09/23 16:33:58 UTC
Embed PNG/GIF image into existing PDF Document
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
Re: Embed PNG/GIF image into existing PDF Document
Posted by Vinayak <vn...@gmail.com>.
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