1
0
mirror of https://github.com/Llewellynvdm/pdflayers.git synced 2024-11-16 01:07:08 +00:00
Commit Graph

4 Commits

Author SHA1 Message Date
Simon Segerblom Rex
399865e9f3 Cleanup of comments 2019-05-16 22:54:44 +02:00
Simon Segerblom Rex
26e1f6a543 Avoid accessing keys in /Usage
Shouldn't have any issues with excpetions anymore at least.
Need to read the PDF reference manual properly to see if
this is the right thing to do...

Fixes #2
2019-05-16 22:19:36 +02:00
Simon Segerblom Rex
e04390754e Add /Order with all OCGs to OCG config
This will make the layers toggable in Adobe Reader.

Fixes #1
2019-05-16 21:53:06 +02:00
Simon Segerblom Rex
afae3e9b07 Add pdflayers script
Rough initial version of script. Only tested with
a few PDF files. There's a lot of things that could
be improved:
* Add options to list layer names
* Add options for trying to loacate and modify JavaScript
  that might affect layer visibility (in Adobe Reader).
* Error handling...
* Cleanup... better ways of using pikedpdf..?
2019-05-16 19:39:29 +02:00