-
public class Document
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumDocument.PDFPageFormatAvailable PDF page formats when generating PDF documents.
-
Method Summary
Modifier and Type Method Description final static FilewritePDF(File file, Boolean overwrite, Document.PDFPageFormat pageFormat)This method generates a PDF document from the loaded or scanned pages. final static FilewritePDF(File file, Boolean overwrite)This method generates a PDF document from the loaded or scanned pages. final static FilewritePDF(File file)This method generates a PDF document from the loaded or scanned pages. final BooleanloadFile(String path, String password)This method loads a file from the given path. final BooleanloadFile(String path)This method loads a file from the given path. final BooleanloadFile(ByteArray bytes, String fileExtension, String password)This method loads a file from the given ByteArray. final BooleanloadFile(ByteArray bytes, String fileExtension)This method loads a file from the given ByteArray. final BooleanloadFile(Uri uri, String password)This method loads a file from the given Uri. final BooleanloadFile(Uri uri)This method loads a file from the given Uri. -
-
Method Detail
-
writePDF
@JvmOverloads() final static File writePDF(File file, Boolean overwrite, Document.PDFPageFormat pageFormat)
This method generates a PDF document from the loaded or scanned pages.
- Parameters:
file- the File where to save the PDF document.overwrite- if file already exist, indicate whether to override it or to append number, e.g.pageFormat- the PDF page format, refer to PDFPageFormat.
-
writePDF
@JvmOverloads() final static File writePDF(File file, Boolean overwrite)
This method generates a PDF document from the loaded or scanned pages.
- Parameters:
file- the File where to save the PDF document.overwrite- if file already exist, indicate whether to override it or to append number, e.g.
-
writePDF
@JvmOverloads() final static File writePDF(File file)
This method generates a PDF document from the loaded or scanned pages.
- Parameters:
file- the File where to save the PDF document.
-
loadFile
@JvmOverloads() final Boolean loadFile(String path, String password)
This method loads a file from the given path.
Only paths in internal app directory and it's subdirectories are supported.
- Parameters:
path- the path pointing to the file to be loaded.password- the password if file is encrypted.
-
loadFile
@JvmOverloads() final Boolean loadFile(String path)
This method loads a file from the given path.
Only paths in internal app directory and it's subdirectories are supported.
- Parameters:
path- the path pointing to the file to be loaded.
-
loadFile
@JvmOverloads() final Boolean loadFile(ByteArray bytes, String fileExtension, String password)
This method loads a file from the given ByteArray.
- Parameters:
bytes- the ByteArray of the file to be loaded.fileExtension- the extension of the file to be loaded, e.g.password- the password if file is encrypted.
-
loadFile
@JvmOverloads() final Boolean loadFile(ByteArray bytes, String fileExtension)
This method loads a file from the given ByteArray.
- Parameters:
bytes- the ByteArray of the file to be loaded.fileExtension- the extension of the file to be loaded, e.g.
-
loadFile
@JvmOverloads() final Boolean loadFile(Uri uri, String password)
This method loads a file from the given Uri.
- Parameters:
uri- the content Uri pointing to the file to be loaded.password- the password if file is encrypted.
-
loadFile
@JvmOverloads() final Boolean loadFile(Uri uri)
This method loads a file from the given Uri.
- Parameters:
uri- the content Uri pointing to the file to be loaded.
-
-
-
-