summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-02-20 22:01:19 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-02-27 14:08:02 +0100
commit5dc382759fb49d7f47e6337f774f85986f2a83ba (patch)
tree585966f53a593da5634495e404db064ebc3b73d0 /source/pdf
parent24fed9639fa23cb59c56515f60c0000e841ab938 (diff)
downloadmupdf-5dc382759fb49d7f47e6337f774f85986f2a83ba.tar.xz
Don't set a (useless) rectangle when creating annotations.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-annot-edit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c
index e6f5f0d7..92a3646d 100644
--- a/source/pdf/pdf-annot-edit.c
+++ b/source/pdf/pdf-annot-edit.c
@@ -109,7 +109,6 @@ pdf_create_annot(fz_context *ctx, pdf_page *page, enum pdf_annot_type type)
fz_try(ctx)
{
int ind_obj_num;
- fz_rect rect = {0.0f, 0.0f, 0.0f, 0.0f};
const char *type_str;
pdf_obj *annot_arr;
@@ -125,12 +124,10 @@ pdf_create_annot(fz_context *ctx, pdf_page *page, enum pdf_annot_type type)
}
pdf_dict_put(ctx, annot_obj, PDF_NAME_Type, PDF_NAME_Annot);
-
pdf_dict_put_name(ctx, annot_obj, PDF_NAME_Subtype, type_str);
- pdf_dict_put_rect(ctx, annot_obj, PDF_NAME_Rect, &rect);
/* Make printable as default */
- pdf_dict_put_drop(ctx, annot_obj, PDF_NAME_F, pdf_new_int(ctx, doc, PDF_ANNOT_IS_PRINT));
+ pdf_dict_put_int(ctx, annot_obj, PDF_NAME_F, PDF_ANNOT_IS_PRINT);
annot = pdf_new_annot(ctx, page);
annot->ap = NULL;