Hello Everyone,
When I am trying to convert TIFF file of size 110 MB to PDF file, the ASPOSE library is throwing serialization error from calling desktop application. Its working perfect for small sized files. I have mentioned my code snippet in the below.
private static void ConvertTiffToPdf(string sourceFilePath, string targetFolderPath, string filename)
{
using (var fs = new FileStream(sourceFilePath, FileMode.Open, FileAccess.Read))
{
using (var image = Aspose.Imaging.Image.Load(fs))
{
//Obtain default saving options defined for each image
ImageOptionsBase exportOptions = new PdfOptions() { PdfCoreOptions = new Aspose.Imaging.FileFormats.Pdf.PdfCoreOptions() { Compression = PdfImageCompressionOptions.Ccitt4 }, UseOriginalImageResolution = true };
image.Save(targetFolderPath.TrimEnd('\\') + $"\\{filename}.pdf", exportOptions);
}
}
}
Could you please suggest the optimal way to convert such big tiff files(110 MB) to PDF?
Thank you.