diff options
author | Igor Melichev <igor.melichev@artifex.com> | 2004-06-30 14:50:52 +0000 |
---|---|---|
committer | Igor Melichev <igor.melichev@artifex.com> | 2004-06-30 14:50:52 +0000 |
commit | 6fe34d4b26f97210cc1a43f02a183c28991da0b4 (patch) | |
tree | 71226ff12ae1d50dc0f87beb20e53f6623e31655 /gs/src/gdevpdti.c | |
parent | 5be0cd192da1c72cc74a752acab83deebd2c3cd0 (diff) |
Fix (pdsfwrite) : Compression of XObjects implicitely depended on CompressFonts.
DETAILS :
This patch makes the dependence explicit.
Have no idea which distiller parameter must controll patterns and forms,
so keeping the old dependence.
With OrderResources=true pages now depend on CompressPages.
EXPECTED DIFFERENCES :
None.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@5128 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gdevpdti.c')
-rw-r--r-- | gs/src/gdevpdti.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gs/src/gdevpdti.c b/gs/src/gdevpdti.c index c816c766d..391047b41 100644 --- a/gs/src/gdevpdti.c +++ b/gs/src/gdevpdti.c @@ -385,7 +385,8 @@ pdf_start_charproc_accum(gx_device_pdf *pdev) { pdf_char_proc_t *pcp; pdf_resource_t *pres; - int code = pdf_enter_substream(pdev, resourceCharProc, gs_next_ids(1), &pres, false); + int code = pdf_enter_substream(pdev, resourceCharProc, gs_next_ids(1), &pres, + false, pdev->CompressFonts); if (code < 0) return code; @@ -446,7 +447,7 @@ pdf_set_charproc_attrs(gx_device_pdf *pdev, gs_font *font, const double *pw, int */ int pdf_enter_substream(gx_device_pdf *pdev, pdf_resource_type_t rtype, - gs_id id, pdf_resource_t **ppres, bool reserve_object_id) + gs_id id, pdf_resource_t **ppres, bool reserve_object_id, bool compress) { int sbstack_ptr = pdev->sbstack_depth; stream *s, *save_strm = pdev->strm; @@ -475,7 +476,7 @@ pdf_enter_substream(gx_device_pdf *pdev, pdf_resource_type_t rtype, pdev->strm = s; code = pdf_begin_data_stream(pdev, &writer, DATA_STREAM_NOT_BINARY | DATA_STREAM_NOLENGTH | - (pdev->CompressFonts ? DATA_STREAM_COMPRESS : 0), 0); + (compress ? DATA_STREAM_COMPRESS : 0), 0); if (code < 0) { pdev->strm = save_strm; return code; |