Error - Image width is too large 1664


#1

When I run the following code I receive the above error

Pdf pdf = new Pdf();

Section section = new Section(pdf);
pdf.Sections = new Sections();
pdf.Sections.Add(section);

Aspose.Pdf.Image image1 = new Aspose.Pdf.Image(section);
section.Paragraphs = new Paragraphs();
section.Paragraphs.Add(image1);

image1.ImageInfo.File = “C:/00000001.tif”;
image1.ImageInfo.ImageFileType = Aspose.Pdf.ImageFileType.Tiff;

pdf.Save(“C:/test.pdf”);

What do I need to do to correct this?

Thanks!

Paul


#2

Dear Paul,

Thanks for your consideration.

It would appreicated it if you could like to provide your tiff file(s). Of course, it’s OK to provide sample tiff file(s) if you feel uncomfortable providing the original one(s).

Please send your file(s) to info@aspose.com as this forum doesn’t support attachment.

We hope to work out a fix which really works for you ASAP so please provide all files and all different image formats that fail to work.

We appreciate your cooperation.


#3


Dear Paul,

Would you like to download the fixed dll which may work for your tiff files.