From bcce8e5dc38509c5aa43174a0d6e0341444f1d87 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Thu, 4 Jan 2018 15:11:24 +0000 Subject: Perform document signing via fz_stream and fz_output This change achieves two goals. It allows signing to be performed even when the document is obtained other than from a disk file. It also reestablishes to a working state signing of file-based documents, a feature that was broken due to complete_signatures being called after certain tables, avaialble via the output options object, had been destroyed. --- include/mupdf/pdf/crypt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/pdf/crypt.h b/include/mupdf/pdf/crypt.h index f66fe0d2..46970870 100644 --- a/include/mupdf/pdf/crypt.h +++ b/include/mupdf/pdf/crypt.h @@ -37,7 +37,7 @@ pdf_signer *pdf_read_pfx(fz_context *ctx, const char *sigfile, const char *passw pdf_signer *pdf_keep_signer(fz_context *ctx, pdf_signer *signer); void pdf_drop_signer(fz_context *ctx, pdf_signer *signer); pdf_designated_name *pdf_signer_designated_name(fz_context *ctx, pdf_signer *signer); -void pdf_write_digest(fz_context *ctx, pdf_document *doc, const char *filename, pdf_obj *byte_range, int digest_offset, int digest_length, pdf_signer *signer); +void pdf_write_digest(fz_context *ctx, fz_output *out, pdf_obj *byte_range, int digest_offset, int digest_length, pdf_signer *signer); /* pdf_signature_widget_byte_range: retrieve the byte range for a signature widget -- cgit v1.2.3