summaryrefslogtreecommitdiff
path: root/pdf/pdf_annot.c
diff options
context:
space:
mode:
authorPaul Gardiner <paul@glidos.net>2012-04-04 15:16:58 +0100
committerPaul Gardiner <paul@glidos.net>2012-05-08 14:36:13 +0100
commitbecbdb02dfaf5861f405e2be25366500c297dcea (patch)
tree74c779ab9420ff35682085d68988561cd69a96c3 /pdf/pdf_annot.c
parent786f0a940645a8aa161ad169945c984700a0b8ed (diff)
downloadmupdf-becbdb02dfaf5861f405e2be25366500c297dcea.tar.xz
Forms: create apearance streams for text fields when not present in the file
Diffstat (limited to 'pdf/pdf_annot.c')
-rw-r--r--pdf/pdf_annot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pdf/pdf_annot.c b/pdf/pdf_annot.c
index 5b08990f..fc0ec42d 100644
--- a/pdf/pdf_annot.c
+++ b/pdf/pdf_annot.c
@@ -368,9 +368,12 @@ pdf_load_annots(pdf_document *xref, pdf_obj *annots, fz_matrix page_ctm)
{
obj = pdf_array_get(annots, i);
+ pdf_synthesize_missing_appearance(xref, obj);
+
rect = pdf_dict_gets(obj, "Rect");
ap = pdf_dict_gets(obj, "AP");
as = pdf_dict_gets(obj, "AS");
+
if (pdf_is_dict(ap))
{
pdf_hotspot *hp = &xref->hotspot;