diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-08-14 09:05:43 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-08-14 09:05:43 +0000 |
commit | e5a04f538929427aa1ca7a7ab866ac7a81c97a85 (patch) | |
tree | 5ea64c7491dedd81c8c2e55f30b267407378bd1d /Build/source/texk/dvipdfm-x/epdf.c | |
parent | 49ae64711459f3102127663d319523bb1782835e (diff) |
Support streams with DecodeParms (by S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@34930 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/epdf.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/epdf.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Build/source/texk/dvipdfm-x/epdf.c b/Build/source/texk/dvipdfm-x/epdf.c index 4aae4ee9ece..21f8af18329 100644 --- a/Build/source/texk/dvipdfm-x/epdf.c +++ b/Build/source/texk/dvipdfm-x/epdf.c @@ -50,14 +50,14 @@ #include "epdf.h" +static int rect_equal (pdf_obj *rect1, pdf_obj *rect2); +#if 0 #if HAVE_ZLIB #include <zlib.h> static int add_stream_flate (pdf_obj *dst, const void *data, long len); #endif -static int rect_equal (pdf_obj *rect1, pdf_obj *rect2); - static int concat_stream (pdf_obj *dst, pdf_obj *src); - +#endif /* * From PDFReference15_v6.pdf (p.119 and p.834) * @@ -358,7 +358,7 @@ pdf_get_page_content (pdf_obj* page) pdf_release_obj(content_new); pdf_release_obj(contents); return NULL; - } else if (concat_stream(content_new, content_seg) < 0) { + } else if (pdf_concat_stream(content_new, content_seg) < 0) { WARN("Could not handle content stream with multiple segments."); pdf_release_obj(content_seg); pdf_release_obj(content_new); @@ -378,7 +378,7 @@ pdf_get_page_content (pdf_obj* page) } /* Flate the contents if necessary. */ content_new = pdf_new_stream(STREAM_COMPRESS); - if (concat_stream(content_new, contents) < 0) { + if (pdf_concat_stream(content_new, contents) < 0) { WARN("Could not handle a content stream."); pdf_release_obj(contents); pdf_release_obj(content_new); @@ -866,6 +866,7 @@ pdf_copy_clip (FILE *image_file, int pageNo, double x_user, double y_user) return 0; } +#if 0 #define WBUF_SIZE 4096 #if HAVE_ZLIB static int @@ -964,3 +965,4 @@ concat_stream (pdf_obj *dst, pdf_obj *src) return -1; } +#endif
\ No newline at end of file |