Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cups-pdf-postprocess
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Radek Hušek
cups-pdf-postprocess
Commits
eb3ec848
Commit
eb3ec848
authored
7 years ago
by
Radek Hušek
Browse files
Options
Downloads
Patches
Plain Diff
Readme
parent
d3756116
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+38
-0
38 additions, 0 deletions
README.md
with
38 additions
and
0 deletions
README.md
0 → 100644
+
38
−
0
View file @
eb3ec848
CUPS pdf postprocess
====================
This is a simple utility acting as postprocesor of cups-pdf virtual printer.
Requirements
------------
-
Python 3 (should be trivial to modify for Python 2)
-
PyQt5
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
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.
Syntax is
`("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
```
To add the script into context menu soft-link cups-pdf-postprocess-your-wrapper.desktop
into appropriate place for your desktop enviroment (in case of KDE4 this is
`~/.kde4/share/kde4/services/ServiceMenus`
). You may need to copy it and fix path
to shell wrapper.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment