From 56864bf8a93b996cde3b6212e0f8e543032096ba Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 14 Nov 2017 12:36:41 +0000 Subject: Ensure that after_text functions get ctm. Also wrap their contents in q/Q, so they can't screw up the rest of the stream. --- include/mupdf/pdf/interpret.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/pdf/interpret.h b/include/mupdf/pdf/interpret.h index f7104499..cbe1d665 100644 --- a/include/mupdf/pdf/interpret.h +++ b/include/mupdf/pdf/interpret.h @@ -248,7 +248,7 @@ pdf_processor *pdf_new_filter_processor(fz_context *ctx, pdf_document *doc, pdf_ typedef int (pdf_text_filter_fn)(fz_context *ctx, void *opaque, int *ucsbuf, int ucslen, fz_matrix *trm, fz_rect *bbox); -typedef void (pdf_after_text_object_fn)(fz_context *ctx, void *opaque, pdf_document *doc, pdf_processor *chain); +typedef void (pdf_after_text_object_fn)(fz_context *ctx, void *opaque, pdf_document *doc, pdf_processor *chain, const fz_matrix *ctm); /* pdf_new_filter_processor_with_text_filter: Create a filter -- cgit v1.2.3