Closed x0ul closed 1 year ago
Hi,
the thing I know for sure is ippeveps
is not supposed to create every output you can imagine - its purpose is to convert any->Postscript. ippevepcl
works the same way.
IIUC -F
sets the output format but it is expected to be passed to a filter defined by -c
parameter, which will be run on incoming file and create the desired output. Or you can use -f
parameter and if there is possible conversion path in CUPS MIME database, CUPS will start filters for you and send the result to the ippeveprinter.
@michaelrsweet do I understand it correctly?
@zdohnal Yes, ippeveprinter is just a front end for the filter program you specify with '-c', and the '-F' option tells that program what format to convert to, in the event that is supports multiple formats (like ippsample's "ipptransform" program).
Generally speaking CUPS will convert to one of the supported formats reported by ippeveprinter (via the '-f' option), e.g., image/pwg-raster, which then get passed to the filter program ('-c') which converts it to the output format.
Ok, so I would update the man page to reflect this.
Ah, got it, thanks for the speedy replies :)
Is your feature request related to a problem? Please describe. The manual for ippeveprinter (https://openprinting.github.io/cups/doc/man-ippeveprinter.html) says:
and also...
While I see the argument supplied to
-F
eventually make its way to theOUTPUT_FORMAT
environment variable, this has no actual effect on the file produced.This StackOverflow post (https://stackoverflow.com/questions/69883878/setting-up-a-print-to-disk-system-with-ippeveprinter) suggests passing
-c ippeveps
toippeveprinter
to get format conversions working, but concedes that one is only able to output PostScript regardless of the arguments given toippeveprinter
.Describe the solution you'd like I would like the
-F
argument to control the format of the file output as indicated in the documentation.Describe alternatives you've considered I could use script something up using programs like ps2pdf and ImageMagick to convert the output into various image formats.
Additional context The
OUTPUT_FORMAT
environment variable is filled byippeveprinter
in with the value of-F
argument. I wrote a very short script:and passed it using
-c
toippeveprinter
to verify, eg.,ippeveprinter -F "some/thing" ...
yieldsOUTPUT_TYPE=some/thing
in the/tmp/env
file.I searched the source of
ippeveps.c
(https://github.com/OpenPrinting/cups/blob/a8eaa67dd10dbaa7856b436ad921ad748f7de0bb/tools/ippeveps.c) and found no mentions ofOUTPUT_FORMAT
. Everything I see hard-codes output formats to PostScript.