diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-07-12 21:18:45 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-19 19:41:23 +0100 |
commit | d54763bcd644364c19d3a6a12f889127df583e01 (patch) | |
tree | 379843a30fbb263e811ac6cbe3d2a4abe13b6fb3 /source/tools | |
parent | d541fc4b9eced1b788377df8c7edfd9b8dea4094 (diff) | |
download | mupdf-d54763bcd644364c19d3a6a12f889127df583e01.tar.xz |
Update band writer (especially PSD) to cope with spots
PSD writer now outputs spot colors. Ensure subtractive
colorspaces are stored with proper polarity. The CMYK
and spot components need to be 255-X in the PSD format
Store PSD format resources using correct Pascal style strings.
Photoshop will fail to open if the the ICC profile resource
name is not in proper format.
(Incorporates fixes from Michael).
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/mudraw.c | 2 | ||||
-rw-r--r-- | source/tools/muraster.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 1959dddc..9725311d 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -825,7 +825,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in } if (bander) { - fz_write_header(ctx, bander, pix->w, totalheight, pix->n, pix->alpha, pix->xres, pix->yres, output_pagenum++, pix->colorspace); + fz_write_header(ctx, bander, pix->w, totalheight, pix->n, pix->alpha, pix->xres, pix->yres, output_pagenum++, pix->colorspace, pix->seps); } } diff --git a/source/tools/muraster.c b/source/tools/muraster.c index cbc8be27..2724a598 100644 --- a/source/tools/muraster.c +++ b/source/tools/muraster.c @@ -615,7 +615,7 @@ static int dodrawpage(fz_context *ctx, int pagenum, fz_cookie *cookie, render_de pix = fz_new_pixmap_with_bbox(ctx, colorspace, &ibounds, NULL, 0); fz_set_pixmap_resolution(ctx, pix, x_resolution, y_resolution); } - fz_write_header(ctx, render->bander, pix->w, total_height, pix->n, pix->alpha, pix->xres, pix->yres, pagenum, pix->colorspace); + fz_write_header(ctx, render->bander, pix->w, total_height, pix->n, pix->alpha, pix->xres, pix->yres, pagenum, pix->colorspace, pix->seps); for (band = 0; band < bands; band++) { @@ -718,7 +718,7 @@ static int try_render_page(fz_context *ctx, int pagenum, fz_cookie *cookie, int { int w = render->ibounds.x1 - render->ibounds.x0; int h = render->ibounds.y1 - render->ibounds.y0; - fz_write_header(ctx, render->bander, w, h, render->n, 0, 0, 0, 0, NULL); + fz_write_header(ctx, render->bander, w, h, 0, render->n, 0, 0, 0, 0, NULL); } fz_catch(ctx) { |