Can this product convert a multi-page tiff into a multi-page PDF?
When I attempt to create a multi-page pdf from a multi-page tiff, I receive the following error. Do you have any suggestions?
Image height is too large4590Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ApplicationException: Image height is too large4590
Here is my code:
Aspose.Pdf.Image img1 = new Aspose.Pdf.Image();
img1.ImageInfo.File = @“C:\Temp\tiff\multipage\2_pages.tif”;
img1.ImageInfo.ImageFileType = ImageFileType.Tiff;
img1.ImageInfo.TiffFrame = -1;
Pdf pdf1 = new Pdf();
Section sec1 = new Section(pdf1);
Thank you for considering Aspose.
The default page size is A4 size. You should enlarge the page size or use ImageScale to scale the image.