I am using the Aspose.Pdf Product Family for converting PDF to TIFF files. During my testing, I found that after converting PDF files to TIFF files, the size of the TIFF file is more than that of the PDF file. Is there any way we can reduce the size of the TIFF file during conversion? The size of the TIFF file is 5-6 times more than the PDF file.
During PDF to TIFF conversion, please try using any value other than None from CompressionType enumeration and pass it to TiffSettings.Compression instance. Furthermore, in order to have more optimized output, you may consider changing ColorDepth from Default to any appropriate value. Please take a look over the following code snippet.
In case the problem still persists, please share the resource PDF files.
[C#]
// open document
Document pdfDocument = new Document("input.pdf");
// create Resolution object
Resolution resolution = new Resolution(300);
// create TiffSettings object
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.Compression = CompressionType.CCITT4;
tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;
tiffSettings.Shape = ShapeType.Landscape;
tiffSettings.SkipBlankPages = false;
// create TIFF device
TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
// convert a particular page and save the image to stream
tiffDevice.Process(pdfDocument, "output.tif");
I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-37957. We will investigate this issue in details and will keep you updated on the status of a correction.
Thanks for your inquiry. I am afraid we have recently noticed the issue and it is pending for investigation due to the issues already under investigation. As soon as its investigation is completed then we will be in a good position to share ETA for the fix. We will keep you updated about the issue resolution progress.
I am afraid the earlier reported issue is still pending for review as the team has been busy fixing previously reported issues. Nevertheless, they will start investigating this problem as per schedule and we will keep you posted with our findings.
Nayyer , i am too having same issue while converting from pdf to tiff , after conversion the tiff file size is much bigger than pdf file size, did you find any resolution for this issue yet?? please let me know.
The scenario varies from file to file as it mainly depends upon the structure and complexity of input PDF file. However have you tried using the suggestions shared in my earlier post 594009 and in case you still face the issue, please share your resource files so that we can test the scenario in our environment. We are sorry for this inconvenience.