[gs-cvs] rev 8259 - in trunk/gs: doc lib
alexcher at ghostscript.com
alexcher at ghostscript.com
Sun Sep 30 12:46:26 PDT 2007
Author: alexcher
Date: 2007-09-30 12:46:25 -0700 (Sun, 30 Sep 2007)
New Revision: 8259
Modified:
trunk/gs/doc/Use.htm
trunk/gs/lib/pdf_main.ps
Log:
Add an option that controls rendering of PDF annotations. By default
annotations are rendered as before.
DIFFERENCES:
None.
Modified: trunk/gs/doc/Use.htm
===================================================================
--- trunk/gs/doc/Use.htm 2007-09-29 05:53:34 UTC (rev 8258)
+++ trunk/gs/doc/Use.htm 2007-09-30 19:46:25 UTC (rev 8259)
@@ -622,12 +622,20 @@
</dl>
<dl>
+<dt><b><tt>-dShowAnnots=false</tt></b>
+<dd>
+Don't enumerate anntoations associated with the page objects through
+<b><tt>Annots</tt></b> attribute. Annotations are shown by default.
+</dl>
+
+
+<dl>
<dt><b><tt>-dShowAcroForm</tt></b>
<dd>
-Show the content of the Interactive Form Dictionary (AcroForm dictionary).
-By default, AcroForm is not shown because some field types are not yet
-implemented. Adobe Acrobat doesn't always skips AcroForm, but it is
-not known yet when it does.
+Show annotations referred from the Interactive Form Dictionary (AcroForm dictionary).
+By default, AcroForm is not enumerated because Adobe Acrobat doesn't do this.
+This option may be useful for debugging or recovery of incorrect PDF files
+that don't associate all annotations with the page objects.
</dl>
<dl>
Modified: trunk/gs/lib/pdf_main.ps
===================================================================
--- trunk/gs/lib/pdf_main.ps 2007-09-29 05:53:34 UTC (rev 8258)
+++ trunk/gs/lib/pdf_main.ps 2007-09-30 19:46:25 UTC (rev 8259)
@@ -1453,7 +1453,9 @@
} ifelse
grestore
% Draw the annotations
- /Annots knownoget { { oforce drawannot } forall } if
+ //systemdict /ShowAnnots .knownget not { //true } if {
+ /Annots knownoget { { oforce drawannot } forall } if
+ } if
//systemdict /ShowAcroForm .knownget { //true eq } { //false } ifelse {
Trailer /Root oget /AcroForm knownoget { draw_acro_form } if
} if
More information about the gs-cvs
mailing list