Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding Image to Generated PDF

 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are image types supported by iText? And is it possible to rotate image while adding it to PDF document?

Thanks in advance.
 
Bruno Lowagie
author
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic