diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2013-09-14 20:59:56 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2013-09-15 20:50:46 +0930 |
commit | 5c0caa6f82374ec38a33d5f25a725f60bc121887 (patch) | |
tree | f72d0efad6b57d4592713831c7c863de4e5432dc /src/cairo-misc.c | |
parent | 2d6705671a900251f00c6b59375bd4d23ec6b4d0 (diff) | |
download | cairo-5c0caa6f82374ec38a33d5f25a725f60bc121887.tar.gz |
pdf: support JBIG2 mime data
JBIG2 images may have shared global data that is stored in a separate
stream in PDF. The CAIRO_MIME_TYPE_JBIG2 mime type is for the JBIG2
data for each image. All images that use global data must also set
CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID to a unique identifier. One of the
images must also set CAIRO_MIME_TYPE_JBIG2_GLOBAL to the global
data. The global data will be shared by all JBIG2 images with the same
CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID.
Diffstat (limited to 'src/cairo-misc.c')
-rw-r--r-- | src/cairo-misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c index bb37e1a0a..7575d42ce 100644 --- a/src/cairo-misc.c +++ b/src/cairo-misc.c @@ -156,6 +156,8 @@ cairo_status_to_string (cairo_status_t status) return "invalid operation during mesh pattern construction"; case CAIRO_STATUS_DEVICE_FINISHED: return "the target device has been finished"; + case CAIRO_STATUS_JBIG2_GLOBAL_MISSING: + return "CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID used but no CAIRO_MIME_TYPE_JBIG2_GLOBAL data provided"; default: case CAIRO_STATUS_LAST_STATUS: return "<unknown error status>"; |