https://bugzilla.novell.com/show_bug.cgi?id=231219 ------- Comment #9 from jsmeix@novell.com 2007-01-03 04:37 MST ------- I mentioned the support database articles only for general info about how the filtering works in CUPS. In general margins (i.e. how much is left unprinted) belong to the application which produces the PostScript (see comment #2). For plain text this is the CUPS filter "texttops" which inspects the PPD file to learn about the imageable area but usually it is whatever user application which usually don't care about the imageable area in the PPD file - have a look at https://bugzilla.novell.com/show_bug.cgi?id=148707#c1 If your application produces PostScript with only 2mm margin, it will not print completely on very most printers. Use 1cm margin on top, left and right and 2cm at the bottom so that it can be printed completely on very most printers (many inkjet printers cannot print too close to the bottom because the transportation mechanics must hold the paper). To test "texttops" with a particular PPD, provide it as environment variable (see "man filter") e.g.: export PPD=/etc/cups/ppd/epsonc70.ppd /usr/lib/cups/filter/texttops job user title 1 options <test1 >test1.ps or export PPD=/usr/share/cups/model/Postscript.ppd.gz /usr/lib/cups/filter/texttops job user title 1 options <test1 >test1.ps Now you will get a DEBUG message regarding the imageable area like DEBUG: Page = 595x842; 18,36 to 577,806 and in the PostScript you will see that the actual output is printed with 18 PostScript points margin on the left using a 11.333 high sized font so that the first line should reach at most up to 806. --------------------------------------------------------------------- /FN /cupsNormal findfont [12.000 0 0 11.333 0 0] makefont def .. /N { FN setfont moveto } bind def .. /S { show } bind def .. 18 795.884 N(12345671111111111111AAAAAAAAAAAA)S --------------------------------------------------------------------- Note: 795.884 + 11.333 = 807.217 which looks to be too high but the origin of the glyphs in a font is the baseline of the characters. Regarding scaling of PostScript my comment #2 was not correct: Since CUPS 1.2 there is a "fitplot" option, see the CUPS documentation http://localhost:631/help/options.html?TOPIC=Getting+Started&QUERY=#FITPLOT ---------------------------------------------------------------------------- The -o fitplot option specifies that the document should be scaled to fit on the page: lp -o fitplot filename lpr -o fitplot filename The default is to use the size specified in the file. Note: This feature depends upon an accurate size in the print file. If no size is given in the file, the page may be scaled incorrectly! ---------------------------------------------------------------------------- For example to test use a tiny imageable area like *ImageableArea A4/A4: "144 216 451 626" in the PPD (to be safe restart cupsd after each change) and print /usr/share/doc/packages/ghostscript-library/examples/colorcir.ps and /usr/share/doc/packages/ghostscript-library/examples/tiger.eps with "-o fitplot" (it works only for tiger.eps). Perhaps "-o fitplot" works for your PostScript, perhaps not. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.