Commit 19ea2a1b authored by Leonardo Taccari's avatar Leonardo Taccari Committed by Sebastian Ramacher

Ignore separations (fixes #1)

parent 327c9000
......@@ -36,8 +36,7 @@ pdf_page_render_to_buffer(mupdf_document_t* mupdf_document, mupdf_page_t* mupdf_
fz_drop_device(mupdf_page->ctx, device);
fz_colorspace* colorspace = fz_device_bgr(mupdf_document->ctx);
fz_separations* seps= fz_page_separations(mupdf_page->ctx, mupdf_page->page);
fz_pixmap* pixmap = fz_new_pixmap_with_bbox_and_data(mupdf_page->ctx, colorspace, irect, seps, 1, image);
fz_pixmap* pixmap = fz_new_pixmap_with_bbox_and_data(mupdf_page->ctx, colorspace, irect, NULL, 1, image);
fz_clear_pixmap_with_value(mupdf_page->ctx, pixmap, 0xFF);
device = fz_new_draw_device(mupdf_page->ctx, fz_identity, pixmap);
......@@ -47,7 +46,6 @@ pdf_page_render_to_buffer(mupdf_document_t* mupdf_document, mupdf_page_t* mupdf_
fz_drop_pixmap(mupdf_page->ctx, pixmap);
fz_drop_display_list(mupdf_page->ctx, display_list);
fz_drop_separations(mupdf_page->ctx, seps);
return ZATHURA_ERROR_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment