** Changed in: cups-pdf (Ubuntu)
Status: Fix Committed = Fix Released
--
add/remove the PDF printer in CUPS at installation/removal time
https://bugs.launchpad.net/bugs/82674
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
Packages for testing are here:
http://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/cups-pdf/
Will soon appear in Gutsy.
** Changed in: cups-pdf (Ubuntu)
Assignee: Martin-Éric Racine = Till Kamppeter
Status: Confirmed = Fix Committed
--
add/remove the PDF printer in CUPS at
I'd appreciate the diff being submitted directly to Debian to avoid
pointless forks and instead make everyone benefit from it. Thanks!
--
add/remove the PDF printer in CUPS at installation/removal time
https://bugs.launchpad.net/bugs/82674
You received this bug notification because you are a
I have attached a debdiff of my changes now. This should help you to add
the changes to the Debian package.
** Attachment added: debdiff of my changes
http://launchpadlibrarian.net/8831177/cups-pdf_2.4.6-3ubuntu1_2.4.6-3ubuntu2.debdiff
--
add/remove the PDF printer in CUPS at
Note that CUPS-PDF 2.4.6-1 (Gutsy) already performs a fair dose of auto-
detection. Adding the printer is now only a two-click process. Not quite
the fully automated installation, but almost.
--
add/remove the PDF printer in CUPS at installation/removal time
https://bugs.launchpad.net/bugs/82674
** Changed in: cups-pdf (Ubuntu)
Assignee: (unassigned) = Martin-Éric Racine
--
add/remove the PDF printer in CUPS at installation/removal time
https://launchpad.net/bugs/82674
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
There should be a special print queue for generating PDF files. Sending
a job to this queue should generate a PDF file from the document sent
into the queue. The PDF file should be easily accessible for the sender
of the job, but other users should not be able to read it.
The package cups-pdf
Till, thanks for your overview of the situation.
CUPS-PDF already provides a generic PostScript PPD which upstream and I
heavily edited to include only the bare minimum.
We could indeed create a printer called PDF at installation time and
delete it at removal time, then restart CUPS to refresh
Such a PDF printer makes only sense one the local machine, where the
printer queue is defined, therefore CUPS should be advised to no
broadcast it into the network. This is done by adding -o printer-is-
shared=no to the lpadmin command:
lpadmin -p PDF -E -v cups-pdf:/ -m
Detecting all cups-pdf devices is easy, to take down all these queues
simply do
for q in `LC_ALL=C lpstat -v | grep 'cups-pdf:/' | cut -d ':' -f 1 | cut -d ' '
-f 3`; do
lpadmin -x $q
done
For setting the PDF printer as default check at first whether there is
already a default printer with
The script magic you propose for prerm should work well as-is.
For postinst, what I would use:
lpadmin -p PDF -E -v cups-pdf:/ -m PostscriptColor.ppd -o
PageSize=$(paperconf) -o printer-is-shared=no
paperconf(1) from libpaper-utils (added to Depends) tells us the default
paper size.
What I
Steps for Post-install:
Check whether there is already a CUPS-PDF queue with LC_ALL=C lpstat -v
| grep 'cups-pdf:/'. If so, assign the name of the first queue found to
$queue and skip the next paragraph.
Assign PDF to the variable $queue, then start a while loop checking
LC_ALL=C lpstat -v | cut
Note that with -m in the lpadmin you have to give the PPD path
exactly as shown in the output of lpinfo -m. If you want to give an
absolute path, use -P (uppercase P) instead.
--
add/remove the PDF printer in CUPS at installation/removal time
https://launchpad.net/bugs/82674
--
ubuntu-bugs
13 matches
Mail list logo