Bug 434820

Summary: No support for HPGL printers/knife cutters/laser cutters
Product: [Fedora] Fedora Reporter: Alan Cox <alan>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 8Keywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-26 13:47:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alan Cox 2008-02-25 17:31:36 UTC
Description of problem:

Various plotters/knife cutters/laser cutters such as the Graphtec need HPGL or
filtered HPGL as input. Although all of the pipeline for this is free software
and exists our print system has no idea how to drive them

Expected Results:

Recognize the printer and/or offer generic/hpgl option

Produce a print pipeline of:

pstoedit -f plot-hpgl

Or for cutters that need filtering

pstoedit -f plot-hgpl | hpgl-distiller 


For anyone doing signmaking, laser cutting or similar this means you can then
print from inkscape and produce product without hacks

See also:  http://pldaniels.com/hpgl-distiller

Can provide a test environment.

Comment 1 Tim Waugh 2008-02-25 17:50:47 UTC
Sounds like you need to make a package that provides:

a) CUPS filter (man 7 filter) for converting application/postscript to
application/hpgl (or whatever).  Just need to parse arguments and work out
whether input comes from stdin or from a named file

b) PPD file(s) with the appropriate *cupsFilter line -- you can probably use
cupsddk to create one to suit.  Just need something like:

*cupsFilter: "application/vnd.cups-postscript 0 my-pstohpgl-filter"

None of this needs changes to system-config-printer or to cups.

Comment 2 Tim Waugh 2008-02-26 11:35:18 UTC
Let me know if you need further help with it.

Comment 3 Alan Cox 2008-02-26 13:34:06 UTC
I opened this bug against system-config-printer not cups. Re-opening.

This ought to be automatic, and/or an system-config-printer option for generic/hpgl



Comment 4 Tim Waugh 2008-02-26 13:47:44 UTC
It's nothing to do with system-config-printer -- nowadays that is just another
interface to CUPS, just like http://localhost:631/ and like /usr/sbin/lpadmin.

All you need to do is make yourself a cupshpgl package which just provides the
PPD and the filter. (...and then we can put it through the Fedora review process
etc)

See e.g. gutenprint-cups, which does something extremely similar.

No changes are needed in existing packages for this.