[gs-commits] rev 12259 - in trunk/gs: Resource/Init base

ken at ghostscript.com ken at ghostscript.com
Tue Mar 8 08:27:55 UTC 2011


Author: ken
Date: 2011-03-08 08:27:54 +0000 (Tue, 08 Mar 2011)
New Revision: 12259

Modified:
   trunk/gs/Resource/Init/gs_cidfn.ps
   trunk/gs/base/gdevpdfp.c
Log:
Activate the new device parameters, and modify the resource code to use the first one
(AllowIncrementalCFF) instead of testing for the pdfwrite device name.

No differences expected.


Modified: trunk/gs/Resource/Init/gs_cidfn.ps
===================================================================
--- trunk/gs/Resource/Init/gs_cidfn.ps	2011-03-08 00:26:07 UTC (rev 12258)
+++ trunk/gs/Resource/Init/gs_cidfn.ps	2011-03-08 08:27:54 UTC (rev 12259)
@@ -169,7 +169,9 @@
 		% resource file, in which case the resource file will be
 		% closed.  So if the current output device is pdfwrite,
 		% don't use incremental loading.
-    currentdevice .devicename /pdfwrite eq { stop } if
+    currentdevice 1 dict dup /AllowIncrementalCFF dup put .getdeviceparams
+    dup type /booleantype eq {{stop}if}if
+    cleartomark
     currentfile fileposition
   } .internalstopped {
 		% File is not positionable, or uses hex data.

Modified: trunk/gs/base/gdevpdfp.c
===================================================================
--- trunk/gs/base/gdevpdfp.c	2011-03-08 00:26:07 UTC (rev 12258)
+++ trunk/gs/base/gdevpdfp.c	2011-03-08 08:27:54 UTC (rev 12259)
@@ -115,6 +115,14 @@
     pi("PreserveDeviceN", gs_param_type_bool, PreserveDeviceN),
     pi("PDFACompatibilityPolicy", gs_param_type_int, PDFACompatibilityPolicy),
     pi("DetectDuplicateImages", gs_param_type_bool, DetectDuplicateImages),
+    pi("AllowIncrementalCFF", gs_param_type_bool, AllowIncrementalCFF),
+    pi("HighLevelDevice", gs_param_type_bool, HighLevelDevice),
+    pi("Type32ToUnicode", gs_param_type_bool, Type32ToUnicode),
+    pi("WantsToUnicode", gs_param_type_bool, WantsToUnicode),
+    pi("AllowPSRepeatFunctions", gs_param_type_bool, AllowPSRepeatFunctions),
+    pi("IsDistiller", gs_param_type_bool, IsDistiller),
+    pi("PreserveSMask", gs_param_type_bool, PreserveSMask),
+    pi("PreserveTrMode", gs_param_type_bool, PreserveTrMode),
 #undef pi
     gs_param_item_end
 };



More information about the gs-commits mailing list