summaryrefslogtreecommitdiff
path: root/doc/genps.pl
diff options
context:
space:
mode:
Diffstat (limited to 'doc/genps.pl')
-rwxr-xr-xdoc/genps.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/genps.pl b/doc/genps.pl
index c7c23cf..67e0f36 100755
--- a/doc/genps.pl
+++ b/doc/genps.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl
## --------------------------------------------------------------------------
##
-## Copyright 1996-2009 The NASM Authors - All Rights Reserved
+## Copyright 1996-2012 The NASM Authors - All Rights Reserved
## See the file AUTHORS included with the NASM distribution for
## the specific copyright holders.
##
@@ -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 );