Pdf Merger not working above 300 MB

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Merger for .NET (v3 and older)  /  Pdf Merger not working above 300 MB

DynamicPDF Merger for .NET (v3 and older) Forum

 Aug 21 2013 1:36 AM
Hi,

I am using Dynamic PDF Merger to merge some PDF files. I have 3 PDF files with 138 MB, 170 MB and 217 MB. When i am trying to merge these 3 files dll is throwing "out of memory" exception. So how do we handle the pdf merger to merge the documents above 300 MB, becasue i observed the documents which are having above 300 MB are not merging by using PDF Merger.

Regards
Bhu1
Posted by a ceTe Software moderator
Hello,

You are trying to merge a PDFs having bigger file size and the DynamicPDF Merger API builds the entire PDF in memory before the Draw method is called. Once the Draw method is called it starts generating the PDF and may need to assign more memory. By that time if there is not enough memory left to assign, it may throw an out of memory exception. You will need to make sure that you have sufficient resources available in your system to build and output the PDF document.

We are successfully able to generate a PDF of size 300MB without any problem. Our products are designed keeping the performance in mind and it will show a good performance. Please refer documentation on performance consideration here.

Thanks,
ceTe Software Support Team.
Hi Mod,

Thank you for the reply. As you said i did the same thing. Initially i am merging the files as

objMerge = ceTe.DynamicPDF.Merger.MergeDocument.Merge("File1.PDF","File2.PDF")

Then i appended the file as
objMerge.Append("FILE3.PDF")

Finally i used draw method to generate report but i am receiving the exception. As you said the draw method needs more in-memory to generate the PDF.

So will you please elaborate your below statement
"You will need to make sure that you have sufficient resources available in your system to build and output the PDF document. "

What do you mean by sufficient resources? do i need to increase in memory. if yes, how do i need to increase in memory? May u plz suggest the possible ways to increase the in-memory.

Regards
Bhu1
For my further details, i did a debug by using DebugDiag and the report is saying that the memory exception generated from

[hasThis] Void ceTe.DynamicPDF.IO.PageWriter..ctor(Class ceTe.DynamicPDF.Page,Class ceTe.DynamicPDF.IO.PageResources,Class ceTe.DynamicPDF.IO.DocumentWriter,I4,I4).

Please find the below detailed report for your reference
http://www.mediafire.com/download/mi9n7kov7vqcggn/CrashHang_Report__Date_08_21_2013__Time_05_09_13PM__78.mht

Let me know if any further details if you want.
Posted by a ceTe Software moderator
Hello,

Our product is developed using fully managed code, so all memory management is left to the .NET. GC will handle all the memory management.

All the PDFs you are merging will be loaded into memory and will be written after merging to disk finally. This may take more memory as your input files are more than 500MB.

When you are working with very big files the application might not be getting enough memory allocated to work with big files and you are getting the out of memory exception.

What is the size of the RAM you are having and please give the system configuration. Also please give the details of the product version and build you are using. Please send these details to our support Team and they can look into it further.

Thanks,
ceTe Software Support Team.
Hi Mod,

Thank you for the details, and apologies for the delay. I will be sending the email to support team and reference please find the below system configuration details

System Configuration Details   
-----------------------------

Operating System : Microsoft Windows Server 2003 Enterprise                Edition Service pack 2
Processor        :  Intel(R) Xeon(R) CPU E5-26400 @2.50GHz
RAM              :  4 GB

Software Details
-----------------------------
Framework                 : .NET Framework 1.1
Development Tool          : MS VisualStudio 2003

Active Reports Software Details
--------------------------------
ActiveReports for .NET 1.0 Service Pack Build 3.4.0.2027

PDF Merger software Details : DynamicPDFMerger300ForNETEvaluationEditionBuild40820

All times are US Eastern Standard time. The time now is 2:25 PM.