PdfDocument writes the display list of each page as a PDF (snx.android.hwui.Pdf, the HLE of Skia's PDF backend):
the shapes as PDF paths, filled and stroked with the paint, the clips and transforms, the alphas as graphics states,
a bitmap's pixels as an image with its alpha, and glyphs in their font. The file carries the font with only the glyphs
the pages draw, at their own IDs (snx.android.hwui.TrueType, TrueType outlines), and a ToUnicode map from its cmap,
so a reader can copy and search the text. A page draws as the renderer does: the limits below hold for it too, and a
bitmap that only a canvas drew into has no pixels on the CPU to write, which writeTo refuses with an exception.
Made from docs/platforms/android-apps/hwui.md at 69237645142c. GPL-3.0-or-later.