Tags: koordinates/PyPDF2
Tags
Make _pushPopGS vastly more efficient Don't re-parse the entire content stream just to add some pre/post ops. Just write the pre-post ops directly, with the original content in between.
Don't call _pushPopGS() when merging pages. It re-parses the content stream per page, which is slow, memory hungry, and not needed for our use-case.
PreviousNext