• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Adding Image to Generated PDF

 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic