⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 openmeetings组件之GS openmeetings组件之GS openmeetings组件之GS
💻
字号:
*******************************************************************************  File:     @(#)$Id: README,v 1.10 2001/08/19 08:52:32 Martin Rel $  Contents: Notes on the PPD files in the pcl3 distribution  Author:   Martin Lottermoser, Greifswaldstrasse 28, 38124 Braunschweig,            Germany. E-mail: Martin.Lottermoser@t-online.de.********************************************************************************									      **	Copyright (C) 2001 by Martin Lottermoser			      **	All rights reserved						      **									      ********************************************************************************Purpose and Format of PPD Files, Document Managers**************************************************Some PostScript commands (e.g., for duplex printing) are not concerned withwhat appears on the page but control the way a document is printed independentof its contents. Such commands are usually not created by the applicationgenerating the PostScript document but are inserted at the user's request whenactually printing the file. In addition, some PostScript interpreters differ inthe commands needed to achieve a particular effect, hence a PostScript filemight have to be adapted for a certain device if it was orginally generated fora different one. This post-processing of PostScript files is the job of aPostScript "document manager" or "print manager". It obtains its informationfrom a PPD (PostScript Printer Description) file for the printer selected.The most useful kind of document manager is a preprocessor for a spooler. Thispreprocessor parses the PostScript file to determine its current settings, asksthe user which special features (e.g., duplex printing, output quality,stapling, etc.) are desired, extends or modifies the file with commandsextracted from the PPD file, and passes the modified file to the spooler.There exist also spooler-integrated document managers where the user interfaceis detached from the editing component; in these cases the interface passes theinformation it has collected to the spooling interface in some spooler-specificmanner and later a backend inserts appropriate PostScript commands.Primitive document manager implementations don't bother about parsing thePostScript file but merely prepend the new PostScript commands to the file;such commands will not take effect if the file already contains invocations ofthe same feature. Beware of this in particular in the case of Windows-generatedPostScript files which usually contain explicit settings for the resolution.You might consider adding definitions for ghostscript's FIXEDRESOLUTIONvariable to the *Resolution statements in the PPD file if you have such adocument manager.PPD files contain also some information which is relevant for softwaregenerating PostScript files. A case in point is the list of supported mediasizes: it can be used by PostScript-generating programs to present a user witha list of choices for the document to be composed, and it is also used by thedocument manager to replace the size's invocation code with the commandsrequired to obtain this size on the printer selected. It can be confusing ifyou have a PPD-based user interface to a print system which accepts PostScriptas well as non-PostScript files and where the interface does not clearlydistinguish between these two steps (document composition and printing); youmight get the impression that you can alter the page size after the PostScriptfile has been generated. (A similar case is page orientation.) Actually,PostScript does provide functionality for doing this (PageSize recoverypolicies), but altering the size selection commands is logically wrong and doesnot give a usable result in general.The PPD file format is defined by Adobe:      Adobe Systems Incorporated      "PostScript Printer Description File Format Specification"      Version 4.3      9 February 1996      Document ID: PN LPS5003This specification can be obtained from http://www.adobe.com.The PPD Files for pcl3**********************The PPD files distributed with pcl3 are not complete descriptions of thedevices implemented by ghostscript with the pcl3 driver. Their main purpose isto provide some essential support for document managers acting aspreprocessors. This makes it possible to create printing interfaces which areeasier to use than ghostscript's command line interface. As a consequence,you will find no *OpenUI/*CloseUI entries for device parameters like"SendBlackLast" or "PJLLanguage": the values of these parameters are notjob-specific but printer-specific properties and should be given as additionsin other PPD statements or in the call to ghostscript.PPD files can include other PPD files. For pcl3, the include structure lookslike this (inclusion is from top to bottom):	gs-pcl3-<subdevice>.ppd	|	gs-pcl3-common.ppd	|	gs.ppd	|	gs-<gs version>.ppd	|	gs-common.ppdSeveral of the files gs-pcl3-<subdevice>.ppd and in particular those where<subdevice> is not an acceptable argument to "-sSubdevice" are valid forseveral subdevices. If you are unsure which file to select, check the initialcomments or the *ModelName statement in a file to discover the subdevicessupported by that file.The gs-pcl3-<subdevice>.ppd files assume that the PostScript file generated bythe document manager is passed to a ghostscript executable with optionsselecting pcl3 and the intended subdevice and without altering the defaultstate of the device as far as it is reflected in the PPD file. If this does notagree with your environment, use a local PPD customization file for thenecessary adaptations.If you're using CUPS, device and subdevice selection should happen via the*cupsFilter statement and the filter called. The gs-pcl3-<subdevice>.ppd filesalready contain *cupsFilter statements using the cups-pcl3 filter. If you'reusing a different filter, modify the statements as needed, otherwise read theinitial comments in the file cups-pcl3.Installation of the Files*************************1.  Create a file called gs.ppd for describing site-specific settings of your    ghostscript installation. It should contain at least the following    statements:      *PPD-Adobe: "4.3"      *DefaultPaperDimension: <size>      *Include: "gs-<gs version>.ppd"    Replace "<size>" with the default page size configured for your ghostscript    installation. Usually, this is either "A4" or "Letter". In the case of A4    you would therefore write:      *DefaultPaperDimension: A4    You might also wish to insert other statements here which describe settings    which are relevant for a document manager. For example, if your document    manager downloads fonts to the PostScript interpreter if it is of the    opinion that the latter does not have a particular font used in a document    (this is the case for CUPS), you should compose a PPD file with a list of    fonts accessible to your ghostscript installation and insert it or an    *Include statement for it at this point. You can use the fonts.ppd file in    this directory as a model (or as a temporary substitute); it contains a    list of ghostscript's usual standard fonts. If the programs accessing the    PPD file use it only for determining whether a font is accessible to the    interpreter or not, you can also simply use the list of font descriptions    resulting from running gs on:      /scratch 200 string def      (*)      {	(*Font ) print print (: Standard "\(0.0\)" Standard Disk\n) print      }      scratch /Font resourceforall    (put this into a file and run "gs -q -dBATCH -sDEVICE=bit" on it). This    output will contain information which is wrong, but it will list all fonts    known to your ghostscript installation.    Don't forget to also replace <gs version> with your ghostscript's version    number. If there is no gs-<gs version>.ppd file for your gs version, use    one of the existing gs-<gs version>.ppd files as a model.2.  The PPD specification distinguishes between printer models (e.g., the    HP DeskJet 540) and printer instances (e.g., the second printer in    room 12). The PPD file for an instance can be generated by creating a local    instance-specific customization file which includes the model's PPD file.    If your document manager has an interface for instance installation, it is    sufficient to give it the relevant gs-pcl3-<subdevice>.ppd files which    describe models. Otherwise you usually have to create a customization file    under the name of the instance, containing just      *PPD-Adobe: "4.3"      *ShortNickName: "<short text>"      *NickName: "<text>"      *Include: "gs-pcl3-<subdevice>.ppd"    with <text> describing the printer instance (<short text> should basically    have the same content but consist of at most 31 characters) and <subdevice>    being replaced to generate the name of the pcl3 PPD file you wish to use    for this printer.    If you wish to extend or override other settings in the    gs-pcl3-<subdevice>.ppd file, add these statements in the customization    file between the first and the last statement above.    The pcl3 PPD files contain *InputSlot definitions only for those media    sources ("Cassette" and "ManualFeed") which are available independent of    your "InputAttributes" definitions. If you configure a print queue such    that other sources are available as well, read the comments on the    *InputSlot entry in gs-pcl3-common.ppd.    You can't use local customization files with CUPS up to at least version    1.1.8 because the CUPS PPD scanner (a) does not support the *Include    statement and (b) violates the PPD specification in either taking the    last occurrence of a keyword as the correct instance or collecting all    instances instead of disregarding every except the first. Modify the    installed instance files in this case if you need some customization, for    example to change the "*NickName" value (which actually CUPS should do when    you give it a description for the print queue at creation time).3.  Copy all PPD files needed into a directory where they will be found by your    document manager.    If your document manager does not support the "*Include" statement, use the    script "catppd" for this purpose:	catppd <top PPD file> <target directory or file>    The script requires that all the files referenced from <top PPD file> must    be accessible from the current working directory under the name given in    the "*Include" statement. In the case of pcl3's PPD files this means that    you must call it from the "ppd" directory. If you are installing model    files you may specify any gs-pcl3-*.ppd file for <top PPD file> with the    exception of gs-pcl3-common.ppd. If you are installing instance files, use    catppd only on your customization files.    For CUPS up to at least version 1.1.8 you'll have to use catppd and you    should copy the files into the .../cups/model directory. You must also    remove the second "*OpenUI *MediaType: ... *CloseUI *MediaType" section    from the copied gs-pcl3-unspec.ppd file.4.  If you are using the "unspec" or "unspecold" subdevices, check whether the    PPD file supports all the features you need. You will also almost certainly    find some features or values there which are not supported by your printer.    It is probably best to create your own PPD file in this case.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -