JoshData / pdf-redactor

A general purpose PDF text-layer redaction tool for Python 2/3.
Creative Commons Zero v1.0 Universal
180 stars 61 forks source link

Line break in replace #12

Closed rlacerda83 closed 5 years ago

rlacerda83 commented 5 years ago

Hello!

I'm having trouble with the line break.

If you replace a small string with a long string, some of the content is not visible in the PDF, because there is no line break.

Do you have any suggestions to adjust this?

JoshData commented 5 years ago

I don't, unfortunately. pdfrw doesn't provide a mechanism to know the geometry of the text being replaced, so there's probably no reasonable way to address that problem.

rlacerda83 commented 5 years ago

OK! Thank you!