xref: /aosp_15_r20/prebuilts/sdk/35/public/api/framework-pdf-v.txt (revision 344a7f5ef16c479e7a7f54ee6567a9d112f9e72b)
1*344a7f5eSAndroid Build Coastguard Worker// Signature format: 2.0
2*344a7f5eSAndroid Build Coastguard Workerpackage android.graphics.pdf {
3*344a7f5eSAndroid Build Coastguard Worker
4*344a7f5eSAndroid Build Coastguard Worker  public final class PdfRenderer implements java.lang.AutoCloseable {
5*344a7f5eSAndroid Build Coastguard Worker    ctor public PdfRenderer(@NonNull android.os.ParcelFileDescriptor) throws java.io.IOException;
6*344a7f5eSAndroid Build Coastguard Worker    ctor public PdfRenderer(@NonNull android.os.ParcelFileDescriptor, @NonNull android.graphics.pdf.LoadParams) throws java.io.IOException;
7*344a7f5eSAndroid Build Coastguard Worker    method public void close();
8*344a7f5eSAndroid Build Coastguard Worker    method public int getDocumentLinearizationType();
9*344a7f5eSAndroid Build Coastguard Worker    method @IntRange(from=0) public int getPageCount();
10*344a7f5eSAndroid Build Coastguard Worker    method public int getPdfFormType();
11*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.graphics.pdf.PdfRenderer.Page openPage(@IntRange(from=0) int);
12*344a7f5eSAndroid Build Coastguard Worker    method public boolean shouldScaleForPrinting();
13*344a7f5eSAndroid Build Coastguard Worker    method public void write(@NonNull android.os.ParcelFileDescriptor, boolean) throws java.io.IOException;
14*344a7f5eSAndroid Build Coastguard Worker    field public static final int DOCUMENT_LINEARIZED_TYPE_LINEARIZED = 1; // 0x1
15*344a7f5eSAndroid Build Coastguard Worker    field public static final int DOCUMENT_LINEARIZED_TYPE_NON_LINEARIZED = 0; // 0x0
16*344a7f5eSAndroid Build Coastguard Worker    field public static final int PDF_FORM_TYPE_ACRO_FORM = 1; // 0x1
17*344a7f5eSAndroid Build Coastguard Worker    field public static final int PDF_FORM_TYPE_NONE = 0; // 0x0
18*344a7f5eSAndroid Build Coastguard Worker    field public static final int PDF_FORM_TYPE_XFA_FOREGROUND = 3; // 0x3
19*344a7f5eSAndroid Build Coastguard Worker    field public static final int PDF_FORM_TYPE_XFA_FULL = 2; // 0x2
20*344a7f5eSAndroid Build Coastguard Worker  }
21*344a7f5eSAndroid Build Coastguard Worker
22*344a7f5eSAndroid Build Coastguard Worker  public final class PdfRenderer.Page implements java.lang.AutoCloseable {
23*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.graphics.Rect> applyEdit(@NonNull android.graphics.pdf.models.FormEditRecord);
24*344a7f5eSAndroid Build Coastguard Worker    method public void close();
25*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.graphics.pdf.models.FormWidgetInfo getFormWidgetInfoAtIndex(@IntRange(from=0) int);
26*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.graphics.pdf.models.FormWidgetInfo getFormWidgetInfoAtPosition(int, int);
27*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.graphics.pdf.models.FormWidgetInfo> getFormWidgetInfos();
28*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.graphics.pdf.models.FormWidgetInfo> getFormWidgetInfos(@NonNull int[]);
29*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.graphics.pdf.content.PdfPageGotoLinkContent> getGotoLinks();
30*344a7f5eSAndroid Build Coastguard Worker    method @IntRange(from=0) public int getHeight();
31*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.graphics.pdf.content.PdfPageImageContent> getImageContents();
32*344a7f5eSAndroid Build Coastguard Worker    method @IntRange(from=0) public int getIndex();
33*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.graphics.pdf.content.PdfPageLinkContent> getLinkContents();
34*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.graphics.pdf.content.PdfPageTextContent> getTextContents();
35*344a7f5eSAndroid Build Coastguard Worker    method @IntRange(from=0) public int getWidth();
36*344a7f5eSAndroid Build Coastguard Worker    method public void render(@NonNull android.graphics.Bitmap, @Nullable android.graphics.Rect, @Nullable android.graphics.Matrix, int);
37*344a7f5eSAndroid Build Coastguard Worker    method public void render(@NonNull android.graphics.Bitmap, @Nullable android.graphics.Rect, @Nullable android.graphics.Matrix, @NonNull android.graphics.pdf.RenderParams);
38*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.graphics.pdf.models.PageMatchBounds> searchText(@NonNull String);
39*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.graphics.pdf.models.selection.PageSelection selectContent(@NonNull android.graphics.pdf.models.selection.SelectionBoundary, @NonNull android.graphics.pdf.models.selection.SelectionBoundary);
40*344a7f5eSAndroid Build Coastguard Worker    field public static final int RENDER_MODE_FOR_DISPLAY = 1; // 0x1
41*344a7f5eSAndroid Build Coastguard Worker    field public static final int RENDER_MODE_FOR_PRINT = 2; // 0x2
42*344a7f5eSAndroid Build Coastguard Worker  }
43*344a7f5eSAndroid Build Coastguard Worker
44*344a7f5eSAndroid Build Coastguard Worker}
45*344a7f5eSAndroid Build Coastguard Worker
46