PdfDocument

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.

Nested types

Extended in the framework by

Constructors

public PdfDocument() empty body source

Methods

public Page startPage(PageInfo pageInfo) source
public void finishPage(Page page) source
public void writeTo(OutputStream out) throws IOException source
public List<PageInfo> getPages() source
public void close() source

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.