skia2/include
Dominic Mazzoni 656cefe65d Add initial support for generating tagged PDFs.
Adds an interface for the document creator to pass in a tree
of tags indicating the structure of the document, each with a type
(from a predetermined enum of possible types) and a node ID.
It also adds a setNodeId function to SkCanvas so that page content
can be associated with a particular tag. If both the tag tree and
marked content are present, Skia can now output a properly tagged
PDF.

An example program is included. When used properly, the PDF generated
by this patch is valid and the tags are parsed properly by Adobe
Acrobat. It handles many corner cases like content that spans more
than one page, or tags that don't correspond to any marked content, or
marked content that doesn't correspond to any tags.

However, it doesn't implement all of the features of PDF accessibility
yet, there are some additional attributes that can be associated with
some tags that need to be supported, too, in order to properly tag
things like figures and tables.

Bug: skia:8148
Change-Id: I2e448eca8ded8e1b29ba685663b557ae7ad7e23e
Reviewed-on: https://skia-review.googlesource.com/141138
Reviewed-by: Hal Canary <halcanary@google.com>
2018-09-27 19:35:40 +00:00
..
android Alternate between two SkBitmaps in SkAnimatedImage 2018-05-23 20:49:42 +00:00
atlastext include: whitespace changes for clang-format 2018-09-19 14:54:57 +00:00
c C API: document sk_matrix_t 2017-03-21 18:04:34 +00:00
codec Reland "Switch SkCodec to use skcms plus fixes"" 2018-08-27 16:16:14 +00:00
config remove unused parts of SkTypes.h 2018-06-08 23:53:57 +00:00
core Handle dividing by zero in ComputeComplexity 2018-09-25 22:31:22 +00:00
docs Add initial support for generating tagged PDFs. 2018-09-27 19:35:40 +00:00
effects converted overdraw effect to new FP system 2018-09-04 13:37:25 +00:00
encode Move SkNoncopyable to include/private. 2018-07-17 21:39:51 +00:00
gpu Remove (unused) GrBlend.cpp, and some GrColor helpers 2018-09-20 15:25:17 +00:00
pathops fixup winding contours 2018-08-17 14:01:51 +00:00
ports SkImageGeneratorCG.h to only expose factory method. 2018-09-19 21:20:35 +00:00
private Introduce SkRGBA4f, templated on SkAlphaType 2018-09-21 20:37:04 +00:00
svg Add a SkWStream-based SkSVGCanvas factory 2017-09-19 20:33:19 +00:00
utils remove SkRandom::next64() 2018-09-06 12:46:46 +00:00