PdfDocument(byteArray)

PdfDocument(byteArray)

Forum member · Jul 16, 2009
Thanks for a great product. We have been using it for years. I am trying to create a PDF from a stream of bytes sent from an RPG program on an AS400. The PDF displays fine if I use Response.Write(), but I need to create a physical file for emailing, so I am trying to use your product to create the PDF from the same byte stream. After reading other threads, I think that this should be possible. PdfDocument myDoc = new PdfDocument(byteArray); //causes error An exception of type 'cete.DynamicPDF.Merger.MergerException' occured in cete.DynamicPDF.20.dll but was not... Invalid PDF File. Cross-Reference not found. I am using 4.0.3 Thanks, Larry

Re: PdfDocument(byteArray)

Support · Jul 16, 2009
Hello Larry, Can you please save the PDF document which you are opening in the browser using the Response.Write method and send it over to our [^a|mailto:support@cete.com|Support Team^]? We will need to look into the PDF document which is failing with the PdfDocument object constructor. Yes, it is possible to save the PDF documents to disk using our product. Thanks, ceTe Software Support Team.

Re: PdfDocument(byteArray)

Forum member · Jul 17, 2009
Nm. I got it. Sorry to waste your time. FileStream fs = new FileStream("C://destination.pdf"); foreach(byte b in myByteData) { fs.WriteByte(b); } Thanks, Larry Flajnik

Re: PdfDocument(byteArray)

Forum member · Aug 13, 2009
what was the cause / solution? I just started getting the same problem intermittently

Re: PdfDocument(byteArray)

Support · Aug 13, 2009
Hello, What exact problem are you having? Can you please be more specific about the error you are getting? Also what operation you are doing? Please send over the code and PDF which is giving error to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further. Thanks, ceTe Software Support Team.