Class of snx.android.hwui · Pdf.java
public final class Pdf
A PDF document of display lists, the HLE of Skia's PDF backend (SkPDF), which Android's PdfDocument draws through. Each page's operations (docs/platforms/android-apps/hwui.md) become PDF's own: paths filled and stroked with the paint's color and alpha, clips, transforms, images of the bitmaps' pixels, and glyphs in their font, which the file carries (only the glyphs the pages use) with a map back to the text. A page draws as the renderer draws it: gradients and bitmap shaders are their colors' average, a clip of difference does not clip, and a layer multiplies its alpha into what it holds.
public void addPage(DisplayList list, int width, int height) sourceA page of width by height, its drawing the list's
public int pageCount() sourcepublic void writeTo(OutputStream out) throws IOException sourceThe document: its pages, then the fonts, images and graphics states they use
Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.