Created attachment 21034 [details] C program applying redactions, input.pdf, redacted.pdf Page layout is destroyed after applying the redaction. Attachedment contains "input.pdf" with one page and one redaction annotation, a simple C program, which applies the redaction, and the output PDF "redacted.pdf".
commit 2a8754b0f72e9029384a0d70dccef70faca72201 Author: Tor Andersson <tor.andersson@artifex.com> Date: Fri Aug 13 17:07:29 2021 +0200 Bug 703894: Flush text state and adjustments before emitting newline. The squote and dquote text operators decompose into a T* + Tj pair, but we need to make sure to flush TL and buffered spacing adjustments before emitting the newline, else we'll miss the TL and/or add the spacing adjustments for redacted characters after the newline when they should be before the newline.