Questions tagged [ppd]

PostScript Printer Description (PPD) files are created by vendors to describe the entire set of features and capabilities available for their PostScript printers.

PostScript Printer Description (PPD) files are created by vendors to describe the entire set of features and capabilities available for their PostScript printers. A PPD also contains the PostScript code (commands) used to invoke features for the print job. As such, PPDs function as drivers for all PostScript printers, by providing a unified interface for the printer's capabilities and features. For example, a generic PPD file for all models of HP Color LaserJet contains:

*% =================================
*% Basic Device Capabilities
*% =================================
*LanguageLevel: "2"
*ColorDevice: True
*DefaultColorSpace: CMYK
*TTRasterizer: Type42
*FileSystem: False
*Throughput: "10"

which specifies that the printer understands PostScript Level 2, is a color device, and so forth. The PPD can describe allowable paper sizes, memory configurations, the minimum font set for the printer, and even specify a tree-based user interface for printer-specific configuration.

15 questions
14
votes
4 answers

What's the easiest way to add custom page sizes to a .ppd?

I would like to add custom page sizes to my printer's .ppd (PostScript printer definition) file. What do I have to add to get a new page size working properly?
joeforker
  • 40,459
  • 37
  • 151
  • 246
3
votes
1 answer

How to handle empty paper tray selection code in a PPD file?

I'm writing a program which adds paper tray selection commands into a PostScript file. now I'd like to add them regarding a user-selected PPD file, which should contain the paper tray selection commands. for example, in a specific PPD I find the…
metagen
  • 43
  • 1
  • 6
2
votes
0 answers

How can I find the minimum printer margins?

Problems: I am printing custom size scenes, the printing must work on a variety of printers, standard or with custom sizes, or roll-fed (particularly this). Some of the custom printers are edge-to-edge. The user-defined canvas may or may not match…
Thalia
  • 13,637
  • 22
  • 96
  • 190
1
vote
1 answer

How can I download the original PPD files that I used when installing via ppm? (Perl)

I used the tool ppm to install several Perl modules (i.e. PPD files): PPM> query Alien-wxWidgets [0.52 ] Developer version of wxWidgets binaries Class-Load [0.08 ] a working (require "Class::Name") and more Class-Singleton [1.4 …
slm
  • 15,396
  • 12
  • 109
  • 124
1
vote
1 answer

How to place printer driver parameters in postscript print file?

i have a postscript file, which has heavily printer driver setting dependencies. I am trying to bundle printer settings into my postscript printfile and passthrough it to the printer. The passthrough works just fine with `lpr -l . But i am not able…
cguenther
  • 1,579
  • 1
  • 10
  • 14
1
vote
1 answer

Ghostscript output to file with ESC-P sequences

For a project (printing nanofluids with an Epson printer) I want to see the the code that the computer sends to the printer. I am running Ubuntu 16.04 and have an Epson Stylus SX600FW printer. Using Ghostscript 9.18 I am trying to print a simple…
rinkert
  • 6,593
  • 2
  • 12
  • 31
1
vote
2 answers

Is this the best way to get the size of a Paper via CUPS?

I've got a CUPS job control file (these can be found at /var/spool/cups/cnnnnn). I need to get the actual dimensions of the print that was made. This is the way I've figured out to do it: Get the paper name using the media attribute. (e.g.…
Redwood
  • 66,744
  • 41
  • 126
  • 187
1
vote
2 answers

How to enable duplex printing on HP 7610 with Linux (Ubuntu 13.04)

I have equipped my HP 7610 printer with the duplex extension, but the configuration dialogs of Ubuntu and Kubuntu still have the duplex option greyed out. Even re-installing the printer does not help. It seems the printer doesn't tell the computer…
Holger Jakobs
  • 984
  • 3
  • 11
  • 32
0
votes
0 answers

Can a Postscript Printer Definition read external files?

(This question is for Windows 10/11, but could apply to other OS's that use Postscript PPDs.) Does a Postscript Printer Definition (PPD) have support for the external file read capabilities of the Postscript language? I am researching a problem…
Dale Mahalko
  • 187
  • 8
0
votes
0 answers

Linux add printers via terminal using lpadmin command

I use cups to add printer to my Linux machine it is easy to add via localhost:631 on the browser but i wanna add it using terminal alone there is a command to do that lpadmin -p printername -v device_uri -m everywhere when I run this command uli get…
Tobito
  • 1
0
votes
0 answers

Empty file with Ghostscript PDF printer and "big" page size

I need to generate PS (or PDF) files from CAM350 (an application that manage Gerber files) running on Windows 7 x64. From CAM350 there is no way to save PS or PDF files so I use a "Ghostscript PDF printer" (output to ":FILE" port) installed using…
0
votes
1 answer

cups adding printer with ppd file not working

I'm trying to add a printer on a yocto build with cups and the command line. this is the command I'm entering: sudo lpadmin -p Deskjet_3050A -E -v usb://HP/Deskjet%203050A%20J611%20series?serial=CN15J4C3NF05PJ&interface=1 -m…
Gert Hermans
  • 769
  • 1
  • 9
  • 30
0
votes
1 answer

Cant find CPOS80250 Linux Drivers .ppd

I recently bought the CPOS80250 thermal printer but cant find the linux drivers. I am trying to install it on a raspberry pi 2 but cant find the ppd file anywhere. Anyone with leads?
nick
  • 333
  • 1
  • 4
  • 15
0
votes
1 answer

Determine media size from ppd file

Ive got Dymo labelwriter 400. It works like a charm with a glabels on ubuntu. I am currently writing software to create automatic labels. for that I need to know the size of the png I want to print. The paper I use is: Large Address, which is…
Darek
  • 2,861
  • 4
  • 29
  • 52
-1
votes
1 answer

Need to write a python function to change two specific value in a xml file

I need to change the value of the parameters P_ModelName and P_ModelYear in the below xml code to some value which is in variable Var_modelname and Var_modelyear through python function. Var_modelname = OEM_2020 Var_modelyear = 2020 please help…
Kumar
  • 1
  • 1