Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Performance Issues converting large PDF file to TIFF format

$
0
0
Hi , I am using aspose.pdf 16.11 to convert a large PDF file ( 8MB) to a Tiff file. I tried to play around with different options, however, the best result I could get was in 4.5 mins . How do I optimize the code to improvise the speed of conversion. Below is the code I am using: PdfConverter pdfConverter = new PdfConverter(); com.aspose.pdf.devices.Resolution resolution = new com.aspose.pdf.devices.Resolution(192); pdfConverter.setResolution(resolution); pdfConverter.bindPdf(input); pdfConverter.doConvert(); input.close(); // Create TiffSettings object and set ColorDepth TiffSettings tiffSettings = new TiffSettings(); tiffSettings.setCompression( com.aspose.pdf.devices.CompressionType.CCITT3); tiffSettings.setDepth(ColorDepth.Format1bpp); // pdfConverter.saveAsTIFF(baos, tiffSettings, new IIndexBitmapConverter()); // Convert to TIFF image // pdfConverter.saveAsTIFF(baos, com.aspose.pdf.PageSize.getPageLetter(), tiffSettings); pdfConverter.saveAsTIFF(baos, com.aspose.pdf.PageSize.getA4(),tiffSettings); pdfConverter.close(); baos.close(); Please help as we have production isues

Viewing all articles
Browse latest Browse all 3131

Trending Articles