Free Support Forum -

Multi-page TIFF to Multi-Page PDF

Can this product convert a multi-page tiff into a multi-page PDF?


Thank you for considering Aspose.

It’s possible. Please refer to Working with Image and TiffFrame.


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 large4590

Description: 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

Source Error:

Line 58: Line 59: //b.Dispose(); Line 60: pdf1.Save(@“C:\Temp\tiff\multipage\output.pdf”); Line 61: } Line 62: 

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.