![]() For a pdf of 100kb and 500kb, it creates tiff of same size of around 5mb. ![]() But the problem is it produces tiffs of same size irrespective of pdf size. Hi we used following code to convert pdf to tiff: mport .Document import .Page import .PDimension import .PDFException import .PDFSecurityException import .GraphicsRenderingHints import import import import import import import import import java.awt.* import java.io.* public class MultiPageCapture Issue: The code works fine and generates a good quality tiff. Also included fixed version of jai_imageio for jvm 5 and 6. Fixed CCITT problem and JPEG quality compression. Reworked TIFConvert Utility with some added features. TIFFConvert.java with color and compression parms. You will need version 1.1 of the JAI jar file. ![]() All I ask is that if you improve upon it share it with others. Also changing the DPI setting will affect quality and file size. If you set conversion to grayScale or B&W, it will produce a smaller file. Quality compression is only useful if the compression mechanism supports it. Compression = TIFConvert.COMPRESSION_JPEGÄ«yte b = nvert(pdf, dpi, color, compression, quality)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |