This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
jQuery in Action, 2nd edition
 
subject: Adding Image to Generated PDF
 
Similar Threads
background image in text file.
Convert PDF Files into PNG, JPEG, TIFF with Page & Text Extraction
xhtmlrenderer won't display dynamically generated images
Watermark image on pdf
Exporting Page to HTML or Plain File with Image