EnglishFrenchSpanish

OnWorks favicon

foomatic-rip - Online in the Cloud

Run foomatic-rip in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command foomatic-rip that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


foomatic-rip - Universal print filter/RIP wrapper

SYNOPSIS


General Options:
foomatic-rip [-v] [-q] <mode-specific options>

Spooler-less printing filter:
foomatic-rip [-P <printer> | --ppd <ppdfile> ] [-J <jobtitle> ] [-o <option>=<value>
[...]] [<files>]

CUPS filter:
foomatic-rip <jobid> <user> <jobtitle> <numcopies> <options> [<file>]

DESCRIPTION


foomatic-rip is a universal print filter which can be used as CUPS filter or stand-alone
for spooler-less, direct printing. It has the following features:

It translates PostScript and PDF from standard input or a file to the printer's native
language on standard output.

The translation is done with an external renderer, usually Ghostscript (gs(1)). If no
translation is needed (PostScript printer) the renderer's command line reduces to cat(1).
The way how this translation is done is described in a PPD file.

Printer capabilities, how to handle user options, and how to build the renderer command
line is always described by PPD files, these PPD files usually come from Foomatic or can
be the ones supplied by the manufacturers of PostScript printers. The PPD files are the
same for both CUPS and direct printing.

foomatic-rip works with CUPS and for direct printing (without spooler), where the latter
is mainly for testing and debugging. The mode is selected by the command line options and
environment variables which are supplied to foomatic-rip.

foomatic-rip does not only apply option settings supplied by the user through the command
line of the printing command, but also searches the entire job for embedded option
settings (only PostScript jobs). Here not only settings which affect the whole job are
taken into account, but also settings in the page headers, which are only valid for the
page where they were found, so applications which produce PostScript code with page-
specific printer option settings are fully supported.

DIRECT, SPOOLER-LESS PRINTING


Options
-v verbose mode for debugging. WARNING: This will create a file in /tmp that
contains the debugging information. This opens a security loophole and should
not be used in production.

-q quiet mode - minimal information output

-P <printer>
<printer> is the configured printer which should be used for this job.

--ppd <ppdfile>
The PPD file <ppdfile> should be applied for processing this job.

-o <option>=<value>
Option settings for this job.

<files> The file(s) to be printed.

foomatic-rip will print from standard input unless at least one file to be printed is
specified on the command line. If your printer PPD file is stored as
/etc/direct/<printer>.ppd or ~/.foomatic/direct/<printer>.ppd you can use it by simply
specifying "-P <printer>".

Put a line

*FoomaticRIPPostPipe: "| <command>"

into the PPD file, right after *PPD-Adobe: "4.3", where <command> is a command into which
you want to re-direct the output data. Due to the restrictions of PPD files <, >, and "
are not allowed in the <command>, replace them as follows:

Character Replacement
---------------------
< &lt;
> &gt;
" &quot;
' &apos;
& &amp;

This way you can print directly to your printer, use

*FoomaticRIPPostPipe: "| cat &gt; /dev/lp0"

or

*FoomaticRIPPostPipe: "| cat &gt; /dev/usb/lp0"

for local parallel or USB printers. To make normal users able to print this way add them
to the group lp and make sure that the appropriate printer device file /dev/... is group-
writable for the lp group.

for a TCP/Socket/JetDirect printer with the host name printer listening on port 9100 you
need this:

*FoomaticRIPPostPipe: "| /usr/bin/nc -w 1 printer 9100"

Note the "-w 1" in the "nc" command line, it makes "nc" exiting immediately after the data
is transferred to the printer.

*FoomaticRIPPostPipe: "| rlpr -Plp@printserver"

directs your jobs to the LPD printer queue lp on the machine named printserver.

See also http://www.openprinting.org/direct-doc.html

PRINTING WITH SPOOLER


See the documentation on the OpenPrinting Web site: http://www.openprinting.org/

CONFIGURATION FILE


The file /etc/foomatic/filter.conf is read whenever foomatic-rip is executed. It allows to
configure the behavior of foomatic-rip as follows (lines beginning with # are comments and
therefore get ignored):

debug: 0|1
Turns on (1) or off (0) the debug mode. This is equivalent to supplying the
--debug command line option. Default setting is 0.

ps_accounting: 0|1
Turns on (1) or off (0) inserting PostScript code for page accounting into
PostScript jobs. The inserted PostScript code makes Ghostscript generating
accounting output on stderr and CUPS can this way log each page which got
printed. The code will only be inserted if CUPS is the spooler. Default setting
is 1.

echo: [<path>/]<executable>
Sets the path to an echo(1) executable which supports -n.

gspath: [<path>/]<executable>
Sets the path to the Ghostscript (gs(1)) executable. To be used if Ghostscript
is at a non-standard location or if an alternative Ghostscript should be used.

execpath: <path>[:<path>]...
Sets the $PATH variable to be used by foomatic-rip.

cupsfilterpath: <path>[:<path>]...
Sets the directories (colon-separated) in which foomatic-rip searches for CUPS
filters.

preferred_shell: [<path>/]<executable>
Sets the preferred shell to use when executing FoomaticRIPCommandLine and
friends. Several PPD files use shell constructs that require a more modern shell
like bash, zsh, or ksh.

Use foomatic-rip online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad