file corruption and return value

file corruption and return value

Forum member · Aug 30, 2010
Indirect Object contains an invalid stream length (33377 bytes). I am getting this error when I merge a file that has been converted (a jpg). It appears that when that file tries to convert this particular jpg, it thinks it is corrupt. When it merges it gives the error above. Also, when I run the convert or merge, how do I get a return value (or can i) from those subroutines? I need to know if there was a problem or error so that I may be able to capture and handle it. I am under the gun on this project. I would appreciate your help....thanks so much. Mary Ann

Re: file corruption and return value

Support · Aug 30, 2010
Hello Mary Ann, Are you converting the JPEG to PDF using the Converter for .NET API and then trying to merge the output PDF? If yes, please send the JPEG image to our [^a|mailto:support@cete.com|opennewwindow|Support Team^] so that they can do some testing on their end. Please make sure you are using the latest DLL files for the Merger product and latest files for the Converter product as well. Let us know what version of the Merger for .NET product you are using. You can use the ConversionError and Converted events of the Converter class to indicate whether the conversion was successful or whether it failed. You will have to use the Try Catch block to caputre any failed merge operation. The Append method does not return any values indicating if the merge process was successful or not. Thanks, ceTe Software Support Team

Re: file corruption and return value

Forum member · Aug 30, 2010
is there a size limit on the file that is to be converted?

Re: file corruption and return value

Forum member · Aug 30, 2010
merger 5.1.2.35 dynamic pdf converter 1.0.0.14308

Re: file corruption and return value

Forum member · Aug 30, 2010
we have discovered, the file will convert if the only one. If i have to append this particular jpg to a merge document, it corrupts the merged document and will not draw.

Re: file corruption and return value

Forum member · Aug 30, 2010
Okay..we finally have figured out the problem. If there are two files named the same (sunset.bmp and sunset.jpg)...you convert them both to pdf, append them with another file, when you try to draw the file to the server you get this error: There was end error while parsing the input PDF file. The PDF is likely corrupt or invalid. it only happens if you generate two files with the same name and extension pdf...using merger append. It does not die on convert or on append, but it does on draw.

Re: file corruption and return value

Support · Aug 30, 2010
Hello, So what you mean to say is that if you convert sunset.bmp and output it to PDF with filename Sunset.pdf and convert sunset.jpg to PDF with filename Sunset.pdf and then append both Sunset.pdf files to the template.pdf you get an error? Can you please paste the code you are using so we can see what exactly you are trying to do using the Converter and Merger product together? Thanks, ceTe Software Support Team