Open kdrkdrkdr opened 3 years ago
It's gone as soon as I fix it's gone..
I'm sorry but I have no idea what the problem is that you're reporting.
In short, the text disappears when I try to change it..
Is your problem described by this section in the README?
Since redaction in the text layer works by performing simple text substitution in the text stream, you may create replacement text that contains characters that were not previously in the PDF. Those characters simply won't show up when the PDF is viewed because the PDF didn't contain any information about how to display them.
I want to translate the pdf from Japanese to Korean. I'd like to replace the text with a translated one. It's gone as soon as I fix it's gone.. Attached is the pdf used.
My Code
import re from datetime import datetime
import pdf_redactor
options = pdf_redactor.RedactorOptions()
options.input_stream = r'.\filetest\test.pdf' options.output_stream = r'.\filetest\test_transed.pdf'
options.content_filters = [
]
pdf_redactor.redactor(options) test.pdf