Class of android.graphics.pdf · PdfDocument.java · Android's reference
public class PdfDocument
A PDF document of pages. A page's canvas records a display list, as any canvas does, and finishPage makes it the page's content (snx.android.hwui.Pdf, the HLE of Skia's PDF backend), which writeTo writes with the fonts and images the pages use.
public PdfDocument() empty body sourcepublic Page startPage(PageInfo pageInfo) sourcepublic void finishPage(Page page) sourcepublic void writeTo(OutputStream out) throws IOException sourcepublic List<PageInfo> getPages() sourcepublic void close() sourceMade 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.