DocutainSdkDocument class

Constructors

DocutainSdkDocument()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getImageBytes(int page, {PageSourceType pageSourceType = PageSourceType.cutFilter}) Future<Uint8List?>
Generates a JPG from the loaded or scanned page and returns it as Uint8List which you can use for further processing, for example wrapping it in ByteData.
loadFile(String path, {String? password}) Future<bool>
This method loads a file from the given path. If it is an encrypted PDF file, you need to provide the password.
pageCount() Future<int>
Returns the page count of the currently loaded document.
writeImage(int page, String path, String fileName) Future<File?>
Generates a JPG from the loaded or scanned page and saves it to a local file. Provide the page which you want to export as JPG file and the path and fileName where to save it.
writePDF(String path, String fileName, {bool overwrite = true, dynamic pdfPageFormat = PDFPageFormat.fitToPages}) Future<File?>
Generates a PDF Document from the scanned document.