Hi,
ChunWei Ho schrieb:
Hi,
I'm trying to use pdfbox to create a PDF that contains an image (and
only that image, essentially wrapping the image in a PDF and returning
the PDF), but not having much luck since I don't understand quite how
pdfbox models the PDF in this instance. Can someone point me in the
right direction (with some code) please :)
Have a look at the AddImageToPDF example [1].
Also, what graphic formats would be supported for this? I see PDJpeg
and PDPixelMap classes.
Jpeg and tiff directly and all other formats using a BufferedImage.
Regards,
C.
BR
Andreas Lehmkühler
[1]
http://svn.apache.org/repos/asf/pdfbox/trunk/src/main/java/org/apache/pdfbox/examples/pdmodel/AddImageToPDF.java