increased file size when using apply_redactions() #2644
-
I am getting a huge increase in filesize and have pinpointed to just one line (!): Why is this happening? It only draws 4 small black rectangles. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 20 replies
-
What were the save options you used? |
Beta Was this translation helpful? Give feedback.
-
Not sure what you mean, I thought "organizational process" was something defined in the PDF format? |
Beta Was this translation helpful? Give feedback.
-
When you execute |
Beta Was this translation helpful? Give feedback.
-
@JorjMcKie Would write(garbage=4, deflate=True) be expected to also clear redactions and release memory? |
Beta Was this translation helpful? Give feedback.
Well, this will not physically delete stuff that you only think you have deleted. All old objects are still there as "ghosts" and could be accessed by hackers.
Use at least "garbage=3, deflate=True", or equivalently
doc.ez_save(...)
.