OutOfMemoryException error when building 400+ plus page document

OutOfMemoryException error when building 400+ plus page document

Forum member · Apr 8, 2008
I am trying to do a merge that can be up to 1000 pages of 1 page single pdf files that are around 9.3mb-10mb a piece. It seems as though the merger works up until around 60-100 pages. It is erroring out with a OutOfMemoryException and the resulting pdf is around 100k and throws the error "error opening document" and of course it is invalid and obviously damaged. Any Ideas? What kind of size limits does the merger have? Any coding suggestions that will make it work to it's maximum? Thanks.

Re: OutOfMemoryException error when building 400+ plus page document

Support · Apr 9, 2008
Hello, There is not limit to the size of PDF documents that can be generated using our product. We have been able create PDF files of around 300MB in size successfully. What is the amount of physical memory (RAM) you currently have on the machine on which the application is running? Following is the link to the Help Documentation on our web site that discusses steps to take to improve Performance . Thanks, ceTe Software Support Team

Re: OutOfMemoryException error when building 400+ plus page document

Forum member · Apr 9, 2008
The resulting pdf's in this case are already around 500mb when i build 60-100 pages. The machine is running windows 2003 server r2 and has 4 gig of ram.

Re: OutOfMemoryException error when building 400+ plus page document

Support · Apr 9, 2008
Hello, The limitation of using our product is that to generate a PDF document you will require RAM atleast 1.5 - 2 times the size of output PDF be available on your machine. In your case the output PDF will roughly be 9GB and therefore 4GB RAM will not be sufficient. Thanks, ceTe Software Support Team

Re: OutOfMemoryException error when building 400+ plus page document

Forum member · Apr 9, 2008
Thank you for the fast responses! Each page of the files being merged do have some shared elements (i.e. background graphic, other graphics, text elements, fonts) I know in acrobat doing a FILE SAVE AS consolidates all of these graphics and optimizes the pdf. What is the method for doing something similar with the merger? thanks.

Re: OutOfMemoryException error when building 400+ plus page document

Support · Apr 9, 2008
Hello, With Merger if you are reusing the same document multiple times, then you load that document into a PdfDocument object and that will optimize the PDF. However if all PDF documents are unique with some graphics being common, nothing within our product can do the optimization for you. Thanks, ceTe Software Support Team

Re: OutOfMemoryException error when building 400+ plus page document

Forum member · Aug 4, 2010
As you mention for your product we should require RAM 2 times than actual PDF file will be created by system. But what if 10 users are simultaneously generating the files of max size at a time.

Re: OutOfMemoryException error when building 400+ plus page document

Support · Aug 4, 2010
Hello, You should have sufficient memory in system to work for the given load. Depending on the number of users and the size of the PDF being generated you may have to increase the memory in the system. Thanks, ceTe Software Support Team.