Product: PDFTron.NET.x64
Product Version: 10.2.0
Please give a brief summary of your issue:
High memory consumption during file saving
Please describe your issue and provide steps to reproduce it:
- Load file into PDFTron library
- Save it with different options.
Please provide a link to a minimal sample where the issue is reproducible:
PDFTron consumes 2.2GB of memory for 1000pages.pdf file. Its size is 93MB.
GitHub - viktorshevchenko210/PdfTronHighMemoryConsumption
Could you please investigate if it can be fixed. Maybe it is possible to save PDF file without any options.
Ryan
2
Could you elaborate why these two flags are important for you?
SDFDoc.SaveOptions.e_compatibility
is only if you need to generate a PDF1.4 spec, which is exceedingly rare now.
SDFDoc.SaveOptions.e_hex_strings
I have never seen anyone actually use this option, let alone need it.
Normally the only flag you use is e_linearized
to generate a Fast Web View PDF file.
How does using the e_linearized
flag only work for you?