diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-07-29 11:43:57 +0100 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-07-29 11:43:57 +0100 |
commit | 0d6739f742310aee9e3aa8ca06895849d7e64648 (patch) | |
tree | 2dc2825397d8fa6307d1302056f81a3435318329 /source/pdf/pdf-form.c | |
parent | 9eb5dbcb3c884a1573d1a78b00dd345635fec0db (diff) | |
download | mupdf-0d6739f742310aee9e3aa8ca06895849d7e64648.tar.xz |
Add support for freetext annotations
This initial commit doesn't entirely complete the task:
1) There are a couple of ucs<->winansi conversions left out,
2) The text displayed by the appearance string can slightly
overflow the annotation rectangle.
Diffstat (limited to 'source/pdf/pdf-form.c')
-rw-r--r-- | source/pdf/pdf-form.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index f6e2f721..1ba2cd82 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -1,7 +1,5 @@ #include "mupdf/pdf.h" -#define SMALL_FLOAT (0.00001) - enum { F_Invisible = 1 << (1-1), @@ -474,6 +472,9 @@ void pdf_update_appearance(pdf_document *doc, pdf_annot *annot) break; } break; + case FZ_ANNOT_FREETEXT: + pdf_update_free_text_annot_appearance(doc, annot); + break; case FZ_ANNOT_STRIKEOUT: case FZ_ANNOT_UNDERLINE: case FZ_ANNOT_HIGHLIGHT: |