SecureBlackbox 16: Why does loading a PDF file consume more memory than the size of the file?

Note: This article applies only to SecureBlackbox Legacy. For future development please consider using the latest version.

When the PDF file is loaded, there's a tree of objects built in memory.

When the PDF has many small objects, memory consumption grows significantly and can be many times higher than the size of the original document.

There is no easy solution for this problem besides adding more memory, as the tree is required for various operations with the PDF document.

We appreciate your feedback.  If you have any questions, comments, or suggestions about this article please contact our support team at kb@nsoftware.com.