summaryrefslogtreecommitdiff
path: root/gs/src/gdevpdfo.c
diff options
context:
space:
mode:
authorIgor Melichev <igor.melichev@artifex.com>2003-04-15 18:43:12 +0000
committerIgor Melichev <igor.melichev@artifex.com>2003-04-15 18:43:12 +0000
commit3af6df32a58c2ba41b95c488c0e8f4a60b09d0e7 (patch)
tree37985bbd99295fa840d2b4ba4e4f869646d42137 /gs/src/gdevpdfo.c
parent44dff0842c816fc0617623d74a2a5a5deec8982c (diff)
downloadghostpdl-3af6df32a58c2ba41b95c488c0e8f4a60b09d0e7.tar.gz
Fix (pdfwrite) : Compress charproc streams.
DETAILS: This patch mixes 3 changes : 1. Applying a compression to vector charprocs. Bitmap charprocs are left uncompresed. The written PDF should have same contents as before. 2. A preparation to Type 1 pattern accumulation with implementing a pdf_substream_save stack. Moved accum_char_proc_* fields to there. This change should be equivalent. 3. Renamed cos_write_stream_from_pipeline to cos_stream_from_pipeline, because the old name appears confusable. A new function with the old name is defined for another purpose. No regression changes expected. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3830 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gdevpdfo.c')
-rw-r--r--gs/src/gdevpdfo.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/gs/src/gdevpdfo.c b/gs/src/gdevpdfo.c
index db0a0dee2..9209cdbcc 100644
--- a/gs/src/gdevpdfo.c
+++ b/gs/src/gdevpdfo.c
@@ -1295,7 +1295,7 @@ cos_write_stream_alloc(cos_stream_t *pcs, gx_device_pdf *pdev,
/* Get cos stream from pipeline. */
cos_stream_t *
-cos_write_stream_from_pipeline(stream *s)
+cos_stream_from_pipeline(stream *s)
{
cos_write_stream_state_t *ss;
@@ -1304,3 +1304,13 @@ cos_write_stream_from_pipeline(stream *s)
ss = (cos_write_stream_state_t *)s->state;
return ss->pcs;
}
+
+/* Get cos write stream from pipeline. */
+stream *
+cos_write_stream_from_pipeline(stream *s)
+{
+ while(s->procs.process != cos_s_procs.process)
+ s = s->strm;
+ return s;
+}
+