diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-15 22:42:15 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-06-22 17:05:04 +0200 |
commit | 8fc19912a4898ca6993a2acf92116e621d140f7a (patch) | |
tree | 5f85f35767de47bcd7b7a3e32ce4fb867f7735db /source/pdf/pdf-object.c | |
parent | 7d2407571d8c8851b67af5ddd0429467c7048b16 (diff) | |
download | mupdf-8fc19912a4898ca6993a2acf92116e621d140f7a.tar.xz |
Create appearance streams for annotations.
Now handles more annotation types, and does not use the pdf-write device.
Handles many of the usual annotation properties, such as border width,
color, interior color, line ending styles.
* Ink
* Highlight, Underline, Strike-Out, Squiggly
* Line (with arrow-heads)
* Polygon
* PolyLine
* Square
* Circle
* Caret
* Text (needs better icons)
* FileAttachment (needs better icons)
* Sound (needs better icons)
* Stamp
* FreeText
Partially complete:
* Widget (treats everything like a plain text field)
Not done, but on the to-do list:
* /BS style (solid/dashed/bevel/inset/underline)
* /BS dash pattern
Not done and not on the list:
* Movie
* Screen
* Printer's Mark
* Trap Network
* Watermark
* /Border corner radii (ignored by acrobat)
* /BE cloudy border effect
Diffstat (limited to 'source/pdf/pdf-object.c')
-rw-r--r-- | source/pdf/pdf-object.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c index b00bf286..ec66376a 100644 --- a/source/pdf/pdf-object.c +++ b/source/pdf/pdf-object.c @@ -2122,6 +2122,18 @@ int pdf_obj_refs(fz_context *ctx, pdf_obj *obj) /* Convenience functions */ +pdf_obj *pdf_dict_get_inheritable(fz_context *ctx, pdf_obj *dict, pdf_obj *key) +{ + pdf_obj *val = NULL; + while (!val && dict) + { + val = pdf_dict_get(ctx, dict, key); + if (!val) + dict = pdf_dict_get(ctx, dict, PDF_NAME(Parent)); + } + return val; +} + void pdf_dict_put_bool(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int x) { pdf_dict_put(ctx, dict, key, x ? PDF_TRUE : PDF_FALSE); |