

usr/sbin/cupsfilter -p laserjet2200.ppd -m application/vnd.cups-raster -o number-up=2 test.ps > out.ps 2> log

application/pdf is the default output without anything for -m specified, but, depending on the filtering chain,Īre also possibly wanted for this option. The cupsfilter -m option allows files at each stage of the filtering process to be produced and examined. In this case the -p option would be /etc/cups/ppd/ because is readable by such a user. For a user with root privileges the command cupsfilter would suffice. usr/lib/cups/daemon/cups-driverd cat gutenprint.5.2://hp-lj_2200/expert > laserjet2200.ppdįor a modern printer a PPD may be obtained fromĬommands using /usr/sbin/cupsfilter are intended for a user who has obtained a PPD as described above. A searchable list of PPDs on the system is available to a user with Let's suppose the print queue is for a LaserJet 2200 using the Gutenprint PPD. That is, printing with those printers having print queues set up with vendor drivers.
Pdfinfo market k601 service manual pdf#
The pdftopdfandPageRotation wiki page uses this technique to track rotation of pages in a PDF document from the Page rot: attribute.īy default pdfinfo will display only information about the first page in a PDF file. It is a useful tool for examining information extracted from a PDF submited to CUPS and comparing it to a PDF produced by the filtering system. The use examples described on this page use the Debian 11 (bullseye) version of cupsfilter and its documentation, but there is very little difference in the utility's behaviour on previous distributions. Often the only way to view a file which is classified by the file utility as data is to send it to the printer without passing through the filtering system. It is sufficient to put the binary in /usr/local/bin for it to function. Viewing the file which is actually sent to the printer (the printer-ready file) may or may not be possible because it depends on whether it is PostScript, PDF, PCL, raster data or vendor-specific data. The bottom left of the window has buttons for moving forwards and backwards in a document or use the SPACE and BACK keys from the keyboard. Zooming in and out is mouse-driven with its left and right buttons or the - and = keys can be used. The rasterview executable produced would be put in /usr/local/bin. The executable can be compiled after installing the g++ and libfltk1.3-dev packages and doing The following command would do this for you:
Pdfinfo market k601 service manual code#
For successful compiling you are advised to obtain source code which has a version greater than v1.5. The source code for RasterView may be downloaded from the principal CUPS developer's web site. The PWG format is based on CUPS raster and Apple Raster is very similar to PWG raster. CUPS, PWG and Apple raster output viewing is handled by rasterview. PDF and PostScript can be viewed by gv, xpdf, mupdf, evince, okular or zathura. The ease of examining the output from cupsfilter at a particular stage of a filtering process depends on the file type produced. However, when a PPD is called for, as it is with the -e option, root privileges may be required. When tracking down a problem with printing the cupsfilter utilty is a useful tool to complement what is produced by an error_log.Ī user can access much of what cupsfilter offers when it is executed as /usr/sbin/cupsfilter. Please see the WARNING or NOTES section in the filter manual. The filters in /usr/lib/cups/filter can also be used as standalone programs to examine the conversions but this is not generally encouraged.

We can use cupsfilter to examine the state of the filter conversions at each stage of the filtering process and determine whether behaviour is reasonabl and correct. The processing is identical to that done by CUPS and the filter subsystem when a file makes its way to the printer and ink or toner is put on paper except there isn't paper output. The idea behind it is to use the filter subsystem (provided in the cups, cups-server-common, cups-daemon, cups-filters and cups-filters-core-drivers packages) to convert a file to a specific format. Obtaining the File which is Sent to the PrinterĬupsfilter comes with the cups package.
