I am using below code to check converted images matches with PDF document
Hi Gowtham,
I have shared you the code that is needed for PDF to Tiff conversion.I will attach the whole .cs file hope that would be better.Also i am attaching the PDF file that is Used.
Hi Gowtham,
Thanks for sharing code and input file.
I have tried to execute the code snippet which you have shared but I am afraid that there are some missing classes in the code.
Gowtham5555:
I have shared you the code that is needed for PDF to Tiff conversion
I have tried to convert your attached PDF file into TIFF using Aspose.Pdf for .NET 17.3.0 which is the latest version of the API and I did not notice any issue. The TIFF file has been generated successfully. However by looking into your code I have noticed that you are using Aspose.Pdf.Facades approach. Please note that Aspose.Pdf.Facades is an old approach and is going to be obsolete soon. It is highly recommended to use new DOM (Document Object Model) approach. Please check the following code snippet where I followed new DOM approach for conversion process.
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.Compression = CompressionType.LZW;
tiffSettings.Depth = ColorDepth.Default;
tiffSettings.SkipBlankPages = false;
using (Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(dataDir + "GuidelinesFor201617.pdf"))
{
TiffDevice tiffPdfDevice = new TiffDevice(new Resolution(300, 300), tiffSettings);
tiffPdfDevice.Process(pdfDoc, dataDir + "PDFToTIFF_out.tif");
}
I have also attached the generated output for your reference. Please try using new DOM approach for conversion process and in case if you still face any problem please share a sample console based application so that we can try to replicate issue in our environment and address it accordingly.
Best Regards,