diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2012-06-08 11:05:52 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2012-06-08 11:05:52 +0100 |
commit | 304d22a1744fa6ac07355703069cacd54f0c3ac4 (patch) | |
tree | d42fba409d4863fe21601574b617ab826c6a89c9 | |
parent | 1c8138bc1db9b3627a2ba1047568c385568061d0 (diff) | |
download | ghostpdl-304d22a1744fa6ac07355703069cacd54f0c3ac4.tar.gz |
Move 'HighLevelDevice' from pdfwrite to gdevvec.c so vector devices inherit it.
The 'HighLevelDevice' parameter was only defined for pdfwrite/ps2write, here
we remove it from there and instead put it in the 'vector' device, so that
all deices based on the vector device will have the paramter set.
No differences expected
-rw-r--r-- | gs/base/gdevpdfb.h | 1 | ||||
-rw-r--r-- | gs/base/gdevpdfp.c | 1 | ||||
-rw-r--r-- | gs/base/gdevpdfx.h | 1 | ||||
-rw-r--r-- | gs/base/gdevvec.c | 9 |
4 files changed, 8 insertions, 4 deletions
diff --git a/gs/base/gdevpdfb.h b/gs/base/gdevpdfb.h index c1a3e20e6..1e8e3c3e7 100644 --- a/gs/base/gdevpdfb.h +++ b/gs/base/gdevpdfb.h @@ -263,7 +263,6 @@ const gx_device_pdf PDF_DEVICE_IDENT = 0, /* PDFACompatibilityPolicy */ true, /* DetectDuplicateImages */ false, /* AllowIncrementalCFF */ - true, /* HighLevelDevice */ !PDF_FOR_OPDFREAD, /* WantsToUnicode */ PDF_FOR_OPDFREAD, /* AllowPSRepeatFunctions */ true, /* IsDistiller (true even for ps2write!) */ diff --git a/gs/base/gdevpdfp.c b/gs/base/gdevpdfp.c index 30638efd2..eedb63b54 100644 --- a/gs/base/gdevpdfp.c +++ b/gs/base/gdevpdfp.c @@ -115,7 +115,6 @@ static const gs_param_item_t pdf_param_items[] = { 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("WantsToUnicode", gs_param_type_bool, WantsToUnicode), pi("AllowPSRepeatFunctions", gs_param_type_bool, AllowPSRepeatFunctions), pi("IsDistiller", gs_param_type_bool, IsDistiller), diff --git a/gs/base/gdevpdfx.h b/gs/base/gdevpdfx.h index dd59351f0..d0b2db928 100644 --- a/gs/base/gdevpdfx.h +++ b/gs/base/gdevpdfx.h @@ -722,7 +722,6 @@ struct gx_device_pdf_s { int PDFACompatibilityPolicy; bool DetectDuplicateImages; bool AllowIncrementalCFF; - bool HighLevelDevice; bool WantsToUnicode; bool AllowPSRepeatFunctions; bool IsDistiller; diff --git a/gs/base/gdevvec.c b/gs/base/gdevvec.c index ecff2d230..0add28524 100644 --- a/gs/base/gdevvec.c +++ b/gs/base/gdevvec.c @@ -946,6 +946,7 @@ gdev_vector_get_params(gx_device * dev, gs_param_list * plist) int code = gx_default_get_params(dev, plist); int ecode; gs_param_string ofns; + bool bool_true = 1; if (code < 0) return code; @@ -954,6 +955,8 @@ gdev_vector_get_params(gx_device * dev, gs_param_list * plist) ofns.persistent = false; if ((ecode = param_write_string(plist, "OutputFile", &ofns)) < 0) return ecode; + if ((ecode = param_write_bool(plist, "HighLevelDevice", &bool_true)) < 0) + return ecode; return code; } @@ -965,8 +968,12 @@ gdev_vector_put_params(gx_device * dev, gs_param_list * plist) int code; gs_param_name param_name; gs_param_string ofns; - bool open = dev->is_open; + bool open = dev->is_open, HighLevelDevice; + + code = param_read_bool(plist, (param_name = "HighLevelDevice"), &HighLevelDevice); + if (code < 0) + return code; switch (code = param_read_string(plist, (param_name = "OutputFile"), &ofns)) { case 0: |