[gs-commits] mupdf 1.16.1.42 Bug 701576: Sanitize cleaning loses Prope
[email protected] (Robin Watts)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit b1cc2167d698404014d79b9f3794af03312c7ec6 Author: Robin Watts <[email protected]> Date: Fri Sep 13 15:41:55 2019 +0100 Bug 701576: Sanitize cleaning loses Properties Resource entry. Copy across properties that are actually used. diff --git a/source/pdf/pdf-op-filter.c b/source/pdf/pdf-op-filter.c index 788e183..3a52a06 100644 --- a/source/pdf/pdf-op-filter.c +++ b/source/pdf/pdf-op-filter.c @@ -1755,9 +1755,10 @@ pdf_filter_EMC(fz_context *ctx, pdf_processor *proc) * pop one of the current ones, and pass the EMC on. */ if (p->pending_tags != NULL) pop_tag(ctx, p, &p->pending_tags); - else + else if (p->current_tags) { update_mcid(ctx, p); + copy_resource(ctx, p, PDF_NAME(Properties), pdf_to_name(ctx, p->current_tags->raw)); pop_tag(ctx, p, &p->current_tags); if (p->chain->op_EMC) p->chain->op_EMC(ctx, p->chain); http://git.ghostscript.com/?p=mupdf.git;a=commit;h=b1cc2167d698404014d79b9f3794af03312c7ec6 -- MuPDF library Artifex Software, Inc.