diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2011-03-08 08:27:54 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2011-03-08 08:27:54 +0000 |
commit | d36e6d74ce15d2dbe2efb61970145dca8b57d5db (patch) | |
tree | cc7f945c18e82a1fbe649b42db938e33afa0eb92 | |
parent | 22f66b74ceb101f2be74c2dcd4847f2cb3d89f4a (diff) |
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.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12259 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r-- | gs/Resource/Init/gs_cidfn.ps | 4 | ||||
-rw-r--r-- | gs/base/gdevpdfp.c | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gs/Resource/Init/gs_cidfn.ps b/gs/Resource/Init/gs_cidfn.ps index 44828342b..519180bd9 100644 --- a/gs/Resource/Init/gs_cidfn.ps +++ b/gs/Resource/Init/gs_cidfn.ps @@ -169,7 +169,9 @@ pop % .cidfonttypes % 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. diff --git a/gs/base/gdevpdfp.c b/gs/base/gdevpdfp.c index 9bdf55675..6e4db0a5a 100644 --- a/gs/base/gdevpdfp.c +++ b/gs/base/gdevpdfp.c @@ -115,6 +115,14 @@ static const gs_param_item_t pdf_param_items[] = { 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 }; |