Scrape a PDF File

I have some financial PDF files that contain tables of date and amounts. I need to extract those into a spread sheet. Problem is the internals of the PDF are “encrypted” so there is no clear text inside the actual file

this seems to work… now to parse it for the values I need …

you can also use tabula

I need this to be a function inside an app, but thanks

well crap… that swift routine does in fact extract text from a PDF file, but it does it in some random order, so It is impossible to rebuild the “text” in a plain textfile.