hey everyone so at my work i have to rename about 3000 pdfs every month and it's taking me forever so i made a script for each pdfs company ( like i get 100 pdfs from one company so i made 1 script for this one and so on)
the script works at 90% or so but it doesn't seem to detect some informations inside the pdfs content to rename it correctly even though i used OCR , pdf miner and everything i could i can happily provide screenshots
i didn't study scripting i use perplexity pro and would love some help please it will make me job easier
#๐ Need help with a python script please help
26 messages ยท Page 1 of 1 (latest)
@carmine oriole
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
Do send the code (formatted) so either I or anyone else can try and help.
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
Yeah pls share the working code
Currently there isn't even enough for a good bug report.
Figure out what it actually is, that's stopping the remaining 10% from working, or at least a good proportion of those, such that doing the remainder manually is quicker than making the code perfect.
If it can be expressed as something within the .pdf format itself, then great. But especially if those .pdfs should be kept confidential (even if redacted), I dont know how we are expected to go about tricky OCR debugging problems over Discord, without example images and without code...
Please react with โ
to upload your file(s) to our paste bin, which is more accessible for some users.
that's the code and
for exemple the Inhaber here is deto.... and told script to write D8 but he can't detect it and type UNK
if you guys have a better method or programme that let me do it let me know
in case u guys wonder what i'm trying to do is for the script to extract some specific informations from inside the pdf and rename the pdf based on theses
any would work
yess i do have access to the pdfs
so basically i put the script here with the pdfs and start it
!pypi fitz so i put this in CMD and then what ? sorry for the troubles i didn't study the python or anything i use perplexity for scripts^^
my suggestion is you stop using pypdf2 and instead use pdfplumber
i will try that thank you
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.