From 13ac842709c2db2ed8402abcf1248c90a6df13e9 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 25 Feb 2012 14:51:01 -0800 Subject: [PATCH] doc: Allow repositioning the EPS logo Allow specifying an offset from the computed position of the EPS logo: \M{logoxadj}{adjustment} \M{logoyadj}{adjustment} The adjustment is given in Postscript points (1/72" = 0.352778 mm) and using the Postscript coordinate system, with the origin in the lower left. Signed-off-by: H. Peter Anvin --- doc/genps.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/genps.pl b/doc/genps.pl index c7c23cf4..222db8aa 100755 --- a/doc/genps.pl +++ b/doc/genps.pl @@ -1148,6 +1148,13 @@ if ( defined($metadata{epslogo}) && $x = ($psconf{pagewidth}-$width*$scale)/2; $y = ($psconf{pageheight}-$height*$scale)/2; + if ( defined($metadata{logoxadj}) ) { + $x += $metadata{logoxadj}; + } + if ( defined($metadata{logoyadj}) ) { + $y += $metadata{logoyadj}; + } + print "BeginEPSF\n"; print $x, ' ', $y, " translate\n"; print $scale, " dup scale\n" unless ( $scale == 1 ); -- 2.11.4.GIT