Example serverless data pipeline for crawling PDFs from the Web and transforming their contents into structured data using AWS Textract. Built with AWS CDK + TypeScript.
https://github.com/aeksco/aws-pdf-textract-pipeline
Related discussions:
Example serverless data pipeline for crawling PDFs from the Web and transforming their contents into structured data using AWS Textract. Built with AWS CDK + TypeScript.
https://github.com/aeksco/aws-pdf-textract-pipeline
Related discussions:
How did you build that visualization in your readme that describes the resources used?
Cloudcraft
Yeah Cloudcraft is great - you can view the diagram in Cloudcraft here
Awesome, thanks!
Thanks, really appreciated your post I learned a lot about typescript as well
TypeScript is great! Once you make the switch from JS there’s no going back haha
Good Contents~!
Great work! I once had a lot of troubles with processing PDF accounting/finance files. Seems like this one could solve them properly.
Can I read hand written PDFs too? This is a great pipeline, thanks for sharing!
Good question! I’m not actually sure, but you can try the Textract demo here. Note that you need to be logged into the AWS dashboard to try the demo. From what I’ve seen it’s a very powerful tool and should be able to handle (at least) some basic hand-written text. Good luck and happy hacking!
Thanks! Same - I’ve spent a lot of time in the past fighting OCR tools to pull text from PDFs - I’ve had some success with Tabula in the past but really only for tabular data in PDFs.
If you’re interested in programatically interacting with Tabula, I built a Docker container last year that includes a Jupyter Notebook you can use to process PDFs - you can find the source code and documentation here.
Very cool!
Where is environment specific config stored?
For example, if I want to have a dev and prod pipeline, or maybe deploy to different regions.
Handwritten text is not supported by Textract as we speak. It’s easy to validate from API or console, and AWS states this also in the product FAQ.
Only valuable information Textract can return in that scenario is that some text is there. This is useful in forms workflows, and useless in unstructured documents.
No support for environment-specific pipelines right now, but feel free to open a GitHub issue - I’m an AWS noob so I wouldn’t even know where to start!
Very good to know, thanks for the info!
I suppose the first step is to find any hard coded values that one would want to change per environment, parameterize them, then figure out how to abstract them out into config files in TypeScript ![]()
I’ll check it out though.
Yeah it was a long shot, but figured I’d ask lol. Thanks for the information!
Yeah I definitely want to get around to playing with this, got it stickied for possible work project! Thanks!