Minimize memory usage while chopping large PDF file

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.