We use Aspose Imaging to convert TIFF 2 PDF.
Depending on Tiff file size, conversion lasts too long. For same tiff file, it takes 10 minutes to create PDF on one machine and one hour on another machine.
What can we do to get better performance (machine and/or java code)? Where to look?
Our code is simple:
public static void convertTiff2PDF(String dataDir, String sourceFile, String outputFile) {
try (TiffImage image = (TiffImage) Image.load(dataDir + sourceFile))
{
PdfOptions exportOptions = new PdfOptions();
exportOptions.setPdfDocumentInfo(new PdfDocumentInfo());
image.save(outputFile, exportOptions);
}
}