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 <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2012-02-25 14:51:01 -08:00
parent 8aa01db9b4
commit 13ac842709

View File

@ -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 );