Skip to content

Pdf size tripled after applying redactions #2458

Answered by JorjMcKie
cconur asked this question in Q&A
Discussion options

You must be logged in to vote

This is caused primarily by the careless (😉) use of the .save method:
Without any garbage collection choice and no deflating option, the following undesired effects will result:

  • Objects rendered unused by the redaction process will be still present in the file (as so-called "ghost" objects). This also is a data protection issue: presumably / possibly among your motivation to use redactions at all. Among those ghost objects are original images and original /Contents objects of the page, still containing the removed text. Malignant code may still be able to extract ghost objects, thus circumventing the redaction intent.
  • Images overlapping any of the redaction rectangles will be replaced by…

Replies: 7 comments 25 replies

Comment options

You must be logged in to vote
2 replies
@cconur
Comment options

@JorjMcKie
Comment options

Answer selected by JorjMcKie
Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Comment options

You must be logged in to vote
2 replies
@JorjMcKie
Comment options

@cconur
Comment options

Comment options

You must be logged in to vote
2 replies
@JorjMcKie
Comment options

@cconur
Comment options

Comment options

You must be logged in to vote
9 replies
@JorjMcKie
Comment options

@JorjMcKie
Comment options

@cconur
Comment options

@JorjMcKie
Comment options

@cconur
Comment options

Comment options

You must be logged in to vote
2 replies
@JorjMcKie
Comment options

@cconur
Comment options

Comment options

You must be logged in to vote
7 replies
@cconur
Comment options

@JorjMcKie
Comment options

@cconur
Comment options

@JorjMcKie
Comment options

@cconur
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants