Fix for 687129, pdfmark /DEST off by one page when used with /OUT pdfmark

Alex Cherepanov <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Organization Coscript Software
Message-ID <[email protected]>
Use [/XYZ null null null] as a default destination following
the Distiller example. The old destination was clearly wrong because it
positioned the bottom of the page on the top of the screen, effectively
displaying the next page.

_______________________________________________
gs-code-review mailing list
[email protected]
http://www.ghostscript.com/mailman/listinfo/gs-code-review
gdevpdfm.c.diff (text/plain, 602 B)
Index: gs/src/gdevpdfm.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdfm.c,v
retrieving revision 1.32
diff -b -u -r1.32 gdevpdfm.c
--- gs/src/gdevpdfm.c	20 Aug 2003 19:53:11 -0000	1.32
+++ gs/src/gdevpdfm.c	11 Nov 2003 04:46:38 -0000
@@ -137,7 +137,7 @@
     int len;
 
     if (view_string.size == 0)
-	param_string_from_string(view_string, "[/XYZ 0 0 1]");
+	param_string_from_string(view_string, "[/XYZ null null null]");
     if (page == 0)
 	strcpy(dstr, "[null ");
     else if (pdfmark_find_key("/Action", pairs, count, &action) &&
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.