File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Adding Image to Generated PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Adding Image to Generated PDF" Watch "Adding Image to Generated PDF" New topic
Author

Adding Image to Generated PDF

Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

What are image types supported by iText? And is it possible to rotate image while adding it to PDF document?

Thanks in advance.


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Bruno Lowagie
author
Ranch Hand

Joined: Oct 23, 2006
Posts: 88
Originally posted by Prabhu venkatachalam:
What are image types supported by iText?

The standard types: BMP, EPS, GIF, JPEG, PNG, TIFF, and WMF.
Raw images: define components, bpc, and start writing bytes
Also CCITT (fax) and java.awt.Image.
See chapter 5 for the complete overview.
By combining Apache Batik with iText, you can also convert SVG to PDF (see example in chapter 12)
Originally posted by Prabhu venkatachalam:
And is it possible to rotate image while adding it to PDF document?

Of course. There are different ways to do this.
You can even clip the image, so that it's no longer rectangular.
There's an example in the book on how to clip an image in the form of a circle and a star.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding Image to Generated PDF