Hi there,
With Claude Code's help, I've added partial support for OCG to pdfium. You can now toggle layers on and off, create new layers, and add annotations to layers.
Here's the GitHub link:
https://github.com/jmckalex/pdfium-ocg
As a proof of concept regarding its usefulness, here's a link to a page with an enhanced version of EmbedPDF. If you click on the left sidebar, you will see a new layers button added. That shows the layer structure, with the ability to add new layers and groups.
https://jmckalex.github.io/pdfium-ocg/
Happy to contribute this code, if you'd find it useful!
Best wishes,
Jason Alexander
jmck...@gmail.com
--
You received this message because you are subscribed to the Google Groups "pdfium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pdfium/b6fd0d17-e257-4661-b836-8c0d7af671cbn%40googlegroups.com.