We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So, I have a PDF file (the small text says aaa): https://cdn.discordapp.com/attachments/283280590860582912/521025782664003584/r.png
aaa
I want to replace aaa with "test123".
My code is this:
#;encoding=utf-8 import re from datetime import datetime import pdf_redactor options = pdf_redactor.RedactorOptions() options.content_filters = [ # First convert all dash-like characters to dashes. ( re.compile(r"aaa"), lambda m : "test123" ), ] pdf_redactor.redactor(options)
(If https://github.com/JoshData/pdf-redactor/blob/master/example.py works, why doesn't my script work?)
(Using Python3.7)
The text was updated successfully, but these errors were encountered:
I am not an expert at this but it worked for my example when I added U in front
options.content_filters = [ ( re.compile(u"LibreOffice"), lambda m: "(REDACTED)" ), ]
Sorry, something went wrong.
No branches or pull requests
So, I have a PDF file (the small text says
aaa
): https://cdn.discordapp.com/attachments/283280590860582912/521025782664003584/r.pngI want to replace
aaa
with "test123".My code is this:
(If https://github.com/JoshData/pdf-redactor/blob/master/example.py works, why doesn't my script work?)
(Using Python3.7)
The text was updated successfully, but these errors were encountered: