Hi Ryan and wondering if you can assist me> The first lines of code all run OK and then I get this message ""NameError: name 'PyPDF2' is not defined" ...are you able to assist please? Thank you.
A few things to check: - Is the module installed and loaded? - Check that the module import is correct (spelling, etc.). - Make sure the python file name is not the same as the module. This can cause problems. - Check code for errors, etc.
thanks it works but i cant change name the orgnal pdf after i can after closing Python IDLE perhaps add .close() somehere i tryde to put it htere but it make me blankpages :P the code dint work whit my scanned(HP DeskJet) pdfs.
LibreOffice can use Python for macros but from what I have seen the process is a little convoluted and I am not sure what the capabilities are for Draw.
Worked perfectly!
Thank you! Tried this and it worked perfectly.
Thank you for putting this video together. Much appreciated.
Hi Ryan and wondering if you can assist me>
The first lines of code all run OK and then I get this message
""NameError: name 'PyPDF2' is not defined"
...are you able to assist please? Thank you.
A few things to check:
- Is the module installed and loaded?
- Check that the module import is correct (spelling, etc.).
- Make sure the python file name is not the same as the module. This can cause problems.
- Check code for errors, etc.
pip install PyPDF2 (or newer 4) followed by import PyPDF2 (4) = works!. Thank you Ryan!
thanks it works
but i cant change name the orgnal pdf after i can after closing Python IDLE perhaps add .close() somehere i tryde to put it htere but it make me blankpages :P
the code dint work whit my scanned(HP DeskJet) pdfs.
Hey, is it possible to use the /*.pdf with PyPDF2? So that you open all PDFs in one folder?
How to find and replace a string in a PDF file?
I'll look into possible ways using Python however an easy way is to use LibreOffice Draw. I have a tutorial that shows how.
@@RyanNoonan but i want to do it programmatically... Couldn't find good stuff on websites... :-(
Maybe I can use the LibreOffice tool using command line
LibreOffice can use Python for macros but from what I have seen the process is a little convoluted and I am not sure what the capabilities are for Draw.