diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2014-02-14 14:09:41 +0000 |
---|---|---|
committer | Paul Gardiner <paul.gardiner@artifex.com> | 2014-02-14 14:29:56 +0000 |
commit | 3f0004acad7da3fcac4687844cb36e2b1ee855b0 (patch) | |
tree | 084f97ec66920088e966d2a027ea9b7f1eca4318 /source/pdf/pdf-annot.c | |
parent | 520dbcb30f9f303fa13f4f2dbd5e7589dd5d7ca6 (diff) | |
download | mupdf-3f0004acad7da3fcac4687844cb36e2b1ee855b0.tar.xz |
Add function for creating form fields (widgets)
This feature is being implemented mostly for the purpose of permitting
the addition to a page of invisible signatures.
Also change pdf_create_annot to make freshly created annotations
printable by default.
Diffstat (limited to 'source/pdf/pdf-annot.c')
-rw-r--r-- | source/pdf/pdf-annot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c index 8e4fd9b1..0aada455 100644 --- a/source/pdf/pdf-annot.c +++ b/source/pdf/pdf-annot.c @@ -732,6 +732,9 @@ pdf_create_annot(pdf_document *doc, pdf_page *page, fz_annot_type type) pdf_dict_puts_drop(annot_obj, "Subtype", pdf_new_name(doc, type_str)); pdf_dict_puts_drop(annot_obj, "Rect", pdf_new_rect(doc, &rect)); + /* Make printable as default */ + pdf_dict_puts_drop(annot_obj, "F", pdf_new_int(doc, F_Print)); + annot = fz_malloc_struct(ctx, pdf_annot); annot->page = page; annot->rect = rect; |