File size

File size

Forum member · Aug 11, 2010
I need to open a PDF file generated by PDF Generator and parse through each pages for certain operation and merge into new file. My problem is that some of the files generated originally are larger than 2GB in size and when I try to open them I get following error. Environment is x64 and code also is complied in x64. As long as file size smaller than 2GB this code work just fine Here is part of my code and error message I'm getting batchfile = new PdfDocument(item.FileName); There was end error while parsing the PDF file. The PDF is likely corrupt or invalid. InnerException: {"Input string was not in a correct format."} StackTrace: " at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)\r\n at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)\r\n at zz93.g.b(Stream A_0)\r\n at zz93.g.a(kn A_0)\r\n at ceTe.DynamicPDF.Merger.PdfDocument.g()"

Re: File size

Support · Aug 11, 2010
Hello, There is no restriction with file size. We will need to look into this PDF document which is giving the error. Can you please send an email to our [^a|mailto:support@cete.com|Support Team^] and a link to download this PDF document. Also send the code you are using? Thanks, ceTe Software Support Team.