Hacker News new | ask | show | jobs
by phpdave11 2088 days ago
It's really not that difficult if you read and understand the PDF specification. As a learning exercise, I created a simple PDF generator library that creates ASCII PDF documents (you can open them in Notepad) and includes comments about what each drawing instruction does.

https://github.com/phpdave11/davepdf

1 comments

I'm sure generating PDFs is much easier than reading them, such that "it just works" with any kind of PDF.
Reading them is also easy. I wrote a library that reads PDFs and imports page(s) from an existing PDF into a new PDF as a Form XObject.

https://github.com/phpdave11/gofpdi