This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
wood burning stoves
 
subject: Adding Image to Generated PDF