CUPS testprint.ps content exceeds free printable space on A4 paper #3060

Closed
michaelrsweet opened this Issue Jan 13, 2009 · 3 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Jan 13, 2009

Version: 1.3.9
CUPS.org User: jsmeix.suse

On the CUPS test page testprint.ps the "x" at the end
of the CUPS version number "v1.3.x" prints into
the ruler at the right border.

Additionally the rightmost "the" in the next line
prints very near to the ruler at the right border.

The attached patch changes testprint.ps so that
the printout fits better inside the free printable space
(i.e. the space within the rules) at least for me on A4 paper.

Collaborator

michaelrsweet commented Jan 13, 2009

CUPS.org User: mike

Fixed in Subversion repository.

Collaborator

michaelrsweet commented Jan 13, 2009

"testprint.ps.diff":

--- /usr/share/cups/data/testprint.ps.orig 2008-12-09 20:43:33.000000000 +0100
+++ /usr/share/cups/data/testprint.ps 2009-01-13 15:46:04.000000000 +0100
@@ -567,16 +567,16 @@
pageWidth 17 mul % Center of page
pageHeight 10 mul % Bottom of page
moveto % Position text

  • (Printed Using CUPS v1.3.x) show
  • (Printed with CUPS v1.3.x) show

pageWidth 17 mul % Left side of page
pageHeight 8 mul % Move down...
2 copy moveto % Position text
smallFont setfont % Font

  • (Copyright 2007-2008 Apple Inc., All Rights Reserved. CUPS and the CUPS logo are the) show
  • (Copyright 2007-2008 Apple Inc., All Rights Reserved. CUPS and the CUPS logo are) show
    pageHeight 2 add sub % Move down...
    2 copy moveto % Position text
  • (trademark property of Apple Inc., 1 Infinite Loop, Cupertino, CA 95014, USA.) show
  • (the trademark property of Apple Inc., 1 Infinite Loop, Cupertino, CA 95014, USA.) show
    pageHeight 2 mul 4 add sub % Move down...
    moveto % Position text
    (Need help? Contact your operating system vendor or visit "http://www.cups.org/".) show
Collaborator

michaelrsweet commented Jan 13, 2009

"str3060.patch":

Index: data/testprint.ps

--- data/testprint.ps (revision 8235)
+++ data/testprint.ps (working copy)
@@ -6,7 +6,7 @@
%%DocumentSuppliedResources: procset testprint/1.3
%%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman
%%Creator: Michael Sweet, Apple Inc.
-%%CreationDate: D:20070606214000+0500
+%%CreationDate: D:20090113092400+0800
%%Title: Test Page
%%EndComments
%%BeginProlog
@@ -14,7 +14,7 @@
%
% PostScript test page for the Common UNIX Printing System ("CUPS").
%
-% Copyright 2007-2008 Apple Inc.
+% Copyright 2007-2009 Apple Inc.
% Copyright 1993-2007 Easy Software Products
%
% These coded instructions, statements, and computer programs are the
@@ -565,18 +565,18 @@

% Draw the copyright notice at the bottom...
pageWidth 17 mul % Center of page

  • pageHeight 10 mul % Bottom of page
  • pageHeight 9.5 mul % Bottom of page
    moveto % Position text
  • (Printed Using CUPS v1.3.x) show
  • (Printed with CUPS v1.3.x) show

pageWidth 17 mul % Left side of page

  • pageHeight 8 mul % Move down...
  • pageHeight 7.5 mul % Move down...
    2 copy moveto % Position text
    smallFont setfont % Font
  • (Copyright 2007-2008 Apple Inc., All Rights Reserved. CUPS and the CUPS logo are the) show
  • (Copyright 2007-2009 Apple Inc., All Rights Reserved. CUPS and the CUPS logo are) show
    pageHeight 2 add sub % Move down...
    2 copy moveto % Position text
  • (trademark property of Apple Inc., 1 Infinite Loop, Cupertino, CA 95014, USA.) show
  • (the trademark property of Apple Inc., 1 Infinite Loop, Cupertino, CA 95014, USA.) show
    pageHeight 2 mul 4 add sub % Move down...
    moveto % Position text
    (Need help? Contact your operating system vendor or visit "http://www.cups.org/".) show

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment