diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2015-09-01 16:16:24 -0700 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2015-09-02 08:43:59 -0700 |
commit | 6034e61c32dd57e1bf257290b39b6634f7893230 (patch) | |
tree | 0d3ec0b28e2126de21f4c601507511072a0ca73c /source/gprf/gprf-skeleton.c | |
parent | b30cc7aa30c5400893cb9c5f70d5ce8ca21c3831 (diff) | |
download | mupdf-6034e61c32dd57e1bf257290b39b6634f7893230.tar.xz |
Add in support for icc profiles in gprf/gproof format
The default profile case (sRGB and SWOP CMYK) are indicated by
empty strings for those entries.
Diffstat (limited to 'source/gprf/gprf-skeleton.c')
-rw-r--r-- | source/gprf/gprf-skeleton.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/gprf/gprf-skeleton.c b/source/gprf/gprf-skeleton.c index e17c3e21..7d46348c 100644 --- a/source/gprf/gprf-skeleton.c +++ b/source/gprf/gprf-skeleton.c @@ -1,7 +1,8 @@ #include "mupdf/fitz.h" void -fz_write_gproof_file(fz_context *ctx, const char *pdf_file, fz_document *doc, const char *filename, int res) +fz_write_gproof_file(fz_context *ctx, const char *pdf_file, fz_document *doc, const char *filename, int res, + const char *print_profile, const char *display_profile) { int i; int num_pages = fz_count_pages(ctx, doc); @@ -46,8 +47,11 @@ fz_write_gproof_file(fz_context *ctx, const char *pdf_file, fz_document *doc, co fz_write_int32le(ctx, out, h); } - /* Filename */ + /* Filenames */ fz_write(ctx, out, pdf_file, strlen(pdf_file)+1); + fz_write(ctx, out, print_profile, strlen(print_profile) + 1); + fz_write(ctx, out, display_profile, strlen(display_profile) + 1); + } fz_always(ctx) { |