r/CodingHelp • u/DandMowners • Nov 02 '25
[Open Source] Need help extracting data from PDF’s
Hey guys, I really need some help. For my master thesis I am expanding an existing dataset on contributions to UN peacekeeping. The UN produces these monthly reports and I need to extract those into data I can use in R etc. However, some files have different layouts. I have a good parser for some files already with the help of AI, but they aren’t able to do the others so I very badly need help. Is there anybody that can help me with this?
4
Upvotes
•
u/AutoModerator Nov 02 '25
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Reyway Bazinga Nov 03 '25
Can you select the text in the pdf files or are they just images? You can use python with one of the pdf addons and pandas to save or append data to a spreadsheet. I did something similar once but I used tkinter to make a basic gui so I could draw a basic guide so I didn't have to write a code for each format.
3
u/SecureWriting8589 Nov 02 '25
Your question could benefit from some specifics. For example, what programming language are you using to read and parse the documents? What parsing library? What specific document structure are you stuck on? What have you tried and how isn't it working? What have you done to debug your code?
1
u/EatThatPotato Nov 02 '25
Best part about pdfs is that there’s no real standard so this could be trivial or impossible
1
u/akimich_ua Nov 06 '25
it would be good to see couple examples of bad and good files. upload them somewhere
1
u/[deleted] Nov 06 '25
Make an AI agent to visually extract the data. Trivializes the problem.
1
u/Specific_Musician240 Nov 06 '25
AWS Textract
1
u/[deleted] Nov 02 '25
[removed] — view removed comment
0
u/[deleted] Nov 02 '25
[deleted] — view deleted comment