4 ms·
I've been working on an open source PDF library for C# [1] and its given me an immense appreciation for the PDF format. Sure it's horribly long, complex, comes
by UglyToad 7y ago
I've been working on an open source PDF library for C# [1] and its given me an immense appreciation for the PDF format.
Sure it's horribly long, complex, comes with vulnerabilities and different consumers have different behaviour. But given the constraints of machines at the time it was created and the wide range of requirements and usages it's pretty damn good and has stood the test of time.
[1]: https://github.com/UglyToad/PdfPig https://github.com/UglyToad/PdfPig
- walterbell 7y agoCould this be used to remove potentially-malicious content from a PDF, e.g. anything executable?
- UglyToad 7y agoUnfortunately not at the moment sorry, the editing and creation capabilities are extremely limited at present. The library is mainly focused on text extraction but editing is on the road map.
- snailmailman 7y agoIt’s a different software entirely, but QubesOS has an interesting way of removing malicious content from a pdf. It basically opens the document in a throwaway VM, then the host takes a high resolution screenshot and makes a new pdf from scratch. The digital equivalent of physically printing and re-scanning the document.