pdflayers/README.md

39 lines
879 B
Markdown
Raw Permalink Normal View History

pdflayers
=========
2019-05-20 17:45:59 +00:00
**pdflayers** is a tool for changing default visibility of PDF layers
(OCGs, Optional Content Groups).
Installation
------------
```shell
2019-05-21 08:54:26 +00:00
python3 -m pip install --user pdflayers
```
Usage
-----
```
2019-05-21 08:54:26 +00:00
pdflayers <input file> <output file> --show <layer name(s)>
```
2019-05-20 17:45:59 +00:00
or
```
2019-05-21 08:54:26 +00:00
python3 -m pdflayers <input file> <output file> --show <layer name(s)>
2019-05-20 17:45:59 +00:00
```
Acknowledgements
----------------
[pikepdf](https://github.com/pikepdf/pikepdf) is doing most of the work.
2019-05-21 08:20:42 +00:00
References
----------
2019-05-21 08:54:26 +00:00
* [PDF 1.7 Reference](https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf)
* [Acrobat JavaScript API Reference](https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf)
* [Acrobat DC SDK Documentation](https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_Dev_Overview%2FIntroduction8.htm)