I am attempting to add a TIFF to a document and I'm dying on the Draw() method with a 'Attempted to divide by zero.' error. I've stripped the code down to the basics and still get the error. The code I'm using is below. Any suggestions?
Document doc = new Document();
Page page = new Page(1000F, 1000F);
ceTe.DynamicPDF.PageElements.Image image = new ceTe.DynamicPDF.PageElements.Image(@"C:\temp\114278_026.tiff", 420F, 420F);
image.SetBounds(80F, 80F);
page.Elements.Add(image);
doc.Pages.Add(page);
doc.Draw(@"C:\temp\test.pdf");
Adding TIFF To Document Throws Divide By Zero Error
Re: Adding TIFF To Document Throws Divide By Zero Error
Support · Aug 7, 2009Hello,
Can you please send over the TIFF image to our [^a|mailto:support@cete.com|opennewwindow|Support Team^] so that they can take a look at it and do some testing on their end and see if they can recreate the error message that you are seeing?
Thanks,
ceTe Software Support Team
Re: Adding TIFF To Document Throws Divide By Zero Error
Forum member · Jul 15, 2010I know this is an old topic, but I have the exact same problem. It does this with some TIF files and not others. Was a resolution found?
Re: Adding TIFF To Document Throws Divide By Zero Error
Forum member · Jul 15, 2010Someone on the support team may know for sure, but I seem to recall we determined it was just a baaaad image.
Re: Adding TIFF To Document Throws Divide By Zero Error
Support · Jul 15, 2010Hello,
We may need to look at the TIFF image. So can you please send over the TIFF image to our [^a|mailto:support@cete.com|opennewwindow|Support Team^] so that they can take a look at it and do some testing on their end and see if they can recreate the error message that you are seeing?
Thanks,
ceTe Software Support Team