When converting a PDF to TIF using Adobe, I get a small sizes clear TIF. When I use Aspose.pdf tools, I get a huge TIF without compression and if I use compression the file size is small but the image is not clear. Turns out, if I match the resolution to what Adobe creates, the TIF looks fine and is small, not as small as adobe’s but ok (Adobe gets me 50k, Aspose 70k). Question is, how do I get that resolution from the PDF so I can dynamically get those numbers?
Aspose.Pdf.Facades.PdfConverter converter = new Aspose.Pdf.Facades.PdfConverter();
converter.Resolution = new Resolution(204, 117);
Document pdfDocument = new Document(@“C:\PdfFile.pdf”);
TiffDevice tifDevice = new TiffDevice();
tifDevice.Resolution.X = 204;
tifDevice.Resolution.Y = 117;
tifDevice.Settings.Compression = CompressionType.CCITT4;
Thanks for using our API.
Please follow the instructions specified over following link for further details on how to Get the resolution and dimensions of embedded images
Now concerning to the issue related to incorrect TIFF image, please share the resource PDF file, so that we can test the scenario at our end. We are sorry for your inconvenience.
PS, please do share the output generated by Adobe as it will help us during comparison.