// Signature format: 2.0 package android.graphics.pdf { public final class PdfRenderer implements java.lang.AutoCloseable { ctor public PdfRenderer(@NonNull android.os.ParcelFileDescriptor) throws java.io.IOException; ctor @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") public PdfRenderer(@NonNull android.os.ParcelFileDescriptor, @NonNull android.graphics.pdf.LoadParams) throws java.io.IOException; method public void close(); method @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") public int getDocumentLinearizationType(); method @IntRange(from=0) public int getPageCount(); method @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") public int getPdfFormType(); method @NonNull public android.graphics.pdf.PdfRenderer.Page openPage(@IntRange(from=0) int); method public boolean shouldScaleForPrinting(); method @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") public void write(@NonNull android.os.ParcelFileDescriptor, boolean) throws java.io.IOException; field @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") public static final int DOCUMENT_LINEARIZED_TYPE_LINEARIZED = 1; // 0x1 field @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") public static final int DOCUMENT_LINEARIZED_TYPE_NON_LINEARIZED = 0; // 0x0 field @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") public static final int PDF_FORM_TYPE_ACRO_FORM = 1; // 0x1 field @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") public static final int PDF_FORM_TYPE_NONE = 0; // 0x0 field @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") public static final int PDF_FORM_TYPE_XFA_FOREGROUND = 3; // 0x3 field @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") public static final int PDF_FORM_TYPE_XFA_FULL = 2; // 0x2 } public final class PdfRenderer.Page implements java.lang.AutoCloseable { method @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") @NonNull public java.util.List applyEdit(@NonNull android.graphics.pdf.models.FormEditRecord); method public void close(); method @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") @NonNull public android.graphics.pdf.models.FormWidgetInfo getFormWidgetInfoAtIndex(@IntRange(from=0) int); method @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") @NonNull public android.graphics.pdf.models.FormWidgetInfo getFormWidgetInfoAtPosition(int, int); method @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") @NonNull public java.util.List getFormWidgetInfos(); method @FlaggedApi("android.graphics.pdf.flags.enable_form_filling") @NonNull public java.util.List getFormWidgetInfos(@NonNull int[]); method @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") @NonNull public java.util.List getGotoLinks(); method @IntRange(from=0) public int getHeight(); method @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") @NonNull public java.util.List getImageContents(); method @IntRange(from=0) public int getIndex(); method @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") @NonNull public java.util.List getLinkContents(); method @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") @NonNull public java.util.List getTextContents(); method @IntRange(from=0) public int getWidth(); method public void render(@NonNull android.graphics.Bitmap, @Nullable android.graphics.Rect, @Nullable android.graphics.Matrix, int); method @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") public void render(@NonNull android.graphics.Bitmap, @Nullable android.graphics.Rect, @Nullable android.graphics.Matrix, @NonNull android.graphics.pdf.RenderParams); method @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") @NonNull public java.util.List searchText(@NonNull String); method @FlaggedApi("android.graphics.pdf.flags.enable_pdf_viewer") @Nullable public android.graphics.pdf.models.selection.PageSelection selectContent(@NonNull android.graphics.pdf.models.selection.SelectionBoundary, @NonNull android.graphics.pdf.models.selection.SelectionBoundary); field public static final int RENDER_MODE_FOR_DISPLAY = 1; // 0x1 field public static final int RENDER_MODE_FOR_PRINT = 2; // 0x2 } }