1 ///////////////////////////////////////////////////////////////////////////////
2 // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
3 ///////////////////////////////////////////////////////////////////////////////
4 
5 // This file is a snapshot of an AIDL file. Do not edit it manually. There are
6 // two cases:
7 // 1). this is a frozen version file - do not edit this in any case.
8 // 2). this is a 'current' file. If you make a backwards compatible change to
9 //     the interface (from the latest frozen version), the build system will
10 //     prompt you to update this file with `m <name>-update-api`.
11 //
12 // You must not make a backward incompatible change to any AIDL file built
13 // with the aidl_interface module type with versions property set. The module
14 // type is used to build AIDL files in a way that they can be used across
15 // independently updatable components of the system. If a device is shipped
16 // with such a backward incompatible change, it has a high risk of breaking
17 // later when a module using the interface is updated, e.g., Mainline modules.
18 
19 package androidx.pdf.models;
20 @JavaPassthrough(annotation="@androidx.annotation.RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY)")
21 interface PdfDocumentRemote {
create(in ParcelFileDescriptor pfd, String password)22   int create(in ParcelFileDescriptor pfd, String password);
numPages()23   int numPages();
getPageDimensions(int pageNum)24   androidx.pdf.models.Dimensions getPageDimensions(int pageNum);
renderPage(int pageNum, int pageWidth, int pageHeight, boolean hideTextAnnots)25   android.graphics.Bitmap renderPage(int pageNum, int pageWidth, int pageHeight, boolean hideTextAnnots);
renderTile(int pageNum, int tileWidth, int tileHeight, int scaledPageWidth, int scaledPageHeight, int left, int top, boolean hideTextAnnots)26   android.graphics.Bitmap renderTile(int pageNum, int tileWidth, int tileHeight, int scaledPageWidth, int scaledPageHeight, int left, int top, boolean hideTextAnnots);
getPageText(int pageNum)27   String getPageText(int pageNum);
getPageAltText(int pageNum)28   List<String> getPageAltText(int pageNum);
searchPageText(int pageNum, String query)29   androidx.pdf.models.MatchRects searchPageText(int pageNum, String query);
selectPageText(int pageNum, in androidx.pdf.models.SelectionBoundary start, in androidx.pdf.models.SelectionBoundary stop)30   androidx.pdf.models.PageSelection selectPageText(int pageNum, in androidx.pdf.models.SelectionBoundary start, in androidx.pdf.models.SelectionBoundary stop);
getPageLinks(int pageNum)31   androidx.pdf.models.LinkRects getPageLinks(int pageNum);
getPageGotoLinks(int pageNum)32   List<androidx.pdf.models.GotoLink> getPageGotoLinks(int pageNum);
isPdfLinearized()33   boolean isPdfLinearized();
getFormType()34   int getFormType();
cloneWithoutSecurity(in ParcelFileDescriptor destination)35   boolean cloneWithoutSecurity(in ParcelFileDescriptor destination);
saveAs(in ParcelFileDescriptor destination)36   boolean saveAs(in ParcelFileDescriptor destination);
releasePage(int pageNum)37   void releasePage(int pageNum);
38 }
39