Update README.md

This commit is contained in:
Simon Segerblom Rex 2019-05-20 19:45:59 +02:00
parent 84fa57c3b5
commit e6d178f1e5
1 changed files with 15 additions and 4 deletions

View File

@ -1,19 +1,30 @@
pdflayers
=========
**pdflayers** is a tool for changing default visibility of PDF layers (OCGS, Optional Content Groups).
**pdflayers** is a tool for changing default visibility of PDF layers
(OCGs, Optional Content Groups).
Installation
------------
Currently **pdflayers** just consists of a simple python script, so you manually have to install the dependencies:
```shell
python3 -m pip install --user pikepdf
python3 -m pip install --user https://github.com/SimonSegerblomRex/pdflayers
```
Usage
-----
```
python3 pdflayers.py <input file> <output file> --show <name of layer to be visible in putput>
pdflayers <input file> <output file> --show <layer names>
```
or
```
python -m pdflayers <input file> <output file> --show <layer names>
```
Acknowledgements
----------------
[pikepdf](https://github.com/pikepdf/pikepdf) is doing most of the work.