Figure 2 shows the data flow of a typical command job. PostScript printer drivers typically do not require their own command filter since CUPS includes a generic PostScript command filter that supports all of the standard functions using PPD-defined commands.
It also allows you to easily support multiple devices from a single source file. Listing 1 shows a driver information file for a black-and-white PostScript printer. PostScript drivers require the attributes listed in Table 1. If not specified, the defaults for CUPS drivers are used.
A typical PostScript driver information file would include the following attributes:. PageSize , etc. Query commands are included in driver information files as attributes. For example, the example in Listing 1 uses the following definition for the PageSize query command:. Query commands can span multiple lines, however no single line may contain more than characters.
Once imported, you can modify, localize, and regenerate the PPD files easily. Type the following command to import the PPD file mydevice. If you have a whole directory of PPD files that you would like to import, you can list multiple filenames or use shell wildcards to import more than one PPD file on the command-line:.
If the driver information file already exists, the new PPD file entries are appended to the end of the file. Each PPD file is placed in its own group of curly braces within the driver information file. Normally a PostScript printer driver will not utilize any additional print filters. For drivers that provide additional filters such as a CUPS command file filter for doing printer maintenance, you must also list the following Filter directive to handle printing PostScript files:. To use the standard PostScript command filter, specify commandtops as the path to the command filter.
Plotters move papers, vinyl, or various other materials around on algebraic coordinates to draw, print, or cut smooth, mathematically pure vector shapes with a stylus or knife blade.
Because plotters are engineered to move around based on precise math, the instructions on how to create typography and other shapes are fairly easy for a PC to communicate to the device. The challenge was this: no existing model of PC to print technology could create vector-based, clean typography AND graphics at the same time. What were all the clever geeks supposed to do? Xerography, AKA photocopying, was the development printers were looking for. Toner adheres to the static electricity, and is pressed onto the paper, creating artwork without the use of dot matrix style pixels.
And because this printing process was fundamentally different from any of the comparatively crude methods listed above, Xerography was a logical way to print clean type and graphics at the same time. There was one simple engineering problem that had to be solved—how do you create instructions for a printer that can easily do both at once? The pair had worked together at Xerox and had created page description language or PDL called Interpress.
Interpress solved this engineering problem—it was a system of translating images and complicated shapes into data the printer can use to turn out high quality printed artwork. Leaving Xerox PARC, the pair developed a flagship product in Postscript, which has remained, even to this day, a graphics industry standard.
Postscript, as the name sort of suggests, is actually a Turing-complete programming language. Directions are written out in a human-readable way, and communicated to the printer, which creates the high quality art from the instructions.
We start to see pretty quickly what kind of instructions Postscript is giving the printer, and just how simple the directions are. This large middle section of gobbledygook is actually hexadecimal code that defines an image. Entire photographic mages can also be re-written as postscript this way—the filetype is called Encapsulated Post Script, or EPS. Nowadays, not all printers use Postscript, but all of them have to have some kind of translation layer to turn text and image data into printed material.
We usually call these programs printer drivers —and nowadays they come from the manufacturer, and are a proprietary software. In some form or fashion, this Is an crucial piece of what all printers need to communicate with PCs—even though the printers we use in our homes are solving very different problems than the first laser printers. IBM , photographer unknown, assumed fair use. Adobe software by Seven Block, available under Creative Commons. The new printer by Erin Sparling, available under Creative Commons.
Use Google Fonts in Word. Use FaceTime on Android Signal vs. Customize the Taskbar in Windows What Is svchost. Best Smartwatches. Best Gaming Laptops. Chapters by various authors on various topics, including excellent coverage of halftoning. Using findfont and setfont but forgetting to scalefont in between. Using the level-2 selectfont avoids this problem and is more concise.
Failing to set a point with moveto , or setting the point outside of the page. For US letter paper 8. So it's easy to remember roughly x but a smidge shorter and wider. So is roughly the center of the page little high, little left. Forgetting to call showpage. If you preview a ps program with gs and it does not end in showpage , gs may display an image for you.
And yet, the file will mysteriously fail to produce any output when you try to convert to pdf or something else. As authors of the standard, these products are considered "the standard implementation" for the purpose of describing differences among PostScript implementations.
Acrobat Distiller has a GUI front-end to select the input postscript program and render its output as a pdf. Distiller also has some limited support for using the output text stream for reporting errors and other program output.
Ghostscript and Xpost both work in a command-line mode. The postscript program file to run can be mentioned on the command-line gs program. Options may be used to render the graphics somewhere else like a disk file or suppress the graphics entirely and use postscript just as a text scripting language. The various interpreters each have their own installation and setup instructions and it would be wasteful and prone to falling out-of-date to reproduce them here.
Ghostscript is available for all major platforms and Linux distributions, in source or binary form, under the GNU license or under other license arrangements with the authors, Artifex software.
Ghostscript implements the full PostScript 3 standard.
0コメント