Minimize memory usage while chopping large PDF file.

25 views
Skip to first unread message

Ryan

unread,
Nov 23, 2016, 5:33:32 PM11/23/16
to PDFTron PDFNet SDK
Question:

I am trying to chop up a ~9GB PDF file into smaller ones, but am finding my memory being pegged on 64bit process.

Answer:

To minimize memory usage, you would create PDFDoc objects using a file path string, and either don't call SetDefaultDiskCachingEnabled or call SetDefaultDiskCachingEnabled(true). This will use disk space as much as possible.

However, modifying the page structure of such a large PDF, is going to use quite a bit of memory probably.
Reply all
Reply to author
Forward
0 new messages