Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Radek Hušek
cups-pdf-postprocess
Commits
ac0d5019
Commit
ac0d5019
authored
Oct 18, 2017
by
Radek Hušek
Browse files
fix README
parent
a88ed70e
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
ac0d5019
...
...
@@ -16,25 +16,26 @@ Setup
This script can be use either directly (e.g. via context menu) or through cups-pdf.
First copy file
`cups-pdf-postprocess.sh`
and edit it for your needs. When invoked by
First copy file
`cups-pdf-postprocess.conf`
to /etc/cups/ and edit it for your needs.
When invoked by
cups, the script does not have any knowledge about running X, so you have to
set atleast
`DISPLAY`
(and probaly also
`XAUTHORITY`
) variable. Also you can specify
list of your custom printer in here-document at end of file.
set atleast
`DISPLAY`
(and probaly also
`XAUTHORITY`
) variable.
Syntax is
`("name of printer", ["command", "first argument"]),`
(it will be
Syntax is of printers section
`("name of printer", ["command", "first argument"]),`
(it will be
interpreted as part of Python list literal). There will be appended aditional
`lp`
-like parameters when acually executing command.
To use it through cups, install pdf-cups, setup a new virtual printer and
then modify
`/etc/cups/cups-pdf.conf`
:
```
PostProcessing /path/to/cups-pdf-postprocess-your-wrapper.
sh
PostProcessing /path/to/cups-pdf-postprocess-your-wrapper.
py
```
*NOTE:*
Ubuntu requires modifying AppArmor settings to allow cups-pdf to execute
this script by adding something like
```
/path/to/cups-pdf-postprocess-your-wrapper.
sh
ux,
/path/to/cups-pdf-postprocess-your-wrapper.
py
ux,
```
into cups-pdf profile.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment