This file cannot be found. Adobe Reader 6.0

Hello,

I have quite a bit of code to create a custom formatted pdf document on the fly and it opens great in adobe reader 5.0 and 7.0 but does not open in 6.0. The error message that I recieve is “This file cannot be found.”. I can see the header gets generated but it looks like it may be breaking after that. I have a feeling it may be related to tables because the document is mainly composed of multiple tables, each with multiple embedded tables. Do you know if there are any known issues with tables in 6.0?

Ryan

Dear Ryan,

Thank you for considering Aspose.

Do you open the pdf by hand using Adobe reader 6.0 or by some program? If by program, please let me see the code. If you can’t open the file directly by Adobe reader 6.0, please send the pdf to me and let me check it.

Actually, I figured out that it breaks on this code here:

Aspose.Pdf.Image headerImage3 = new Aspose.Pdf.Image(sec1);
headerImage3.ImageScale = 0.80f;
headerImage3.ImageInfo.File = “[<a href=”‘http://www.somedomain.com/images/logo.jpg";headerImage3.ImageInfo.ImageFileType’">http://www.somedomain.com/images/logo](http://www.salire.com/images/logo.g).jpg";
headerImage3.ImageInfo.ImageFileType = ImageFileType.Jpeg;
headerImage3.ImageInfo.OpenType = ImageOpenType.Url;
headerImage3.ImageWidth = 60;
headerImage3.ImageHeight = 32;
headerImage3.ImageInfo.BitsPerComponent = 8;
headerImage3.ImageInfo.ComponentNumber = 3;

But when the image is from the local drive and not a url it seems to work with no problem. Any ideas?

Thanks,
Ryan

Please remove the following code and try again:

headerImage3.ImageInfo.OpenType = ImageOpenType.Url;
headerImage3.ImageWidth = 60;
headerImage3.ImageHeight = 32;
headerImage3.ImageInfo.BitsPerComponent = 8;
headerImage3.ImageInfo.ComponentNumber = 3;

That fixes the problem.

Thanks,
Ryan