UPdf class abstract

PDF shortcuts: open a viewer, read text, read metadata; pure Dart, all platforms. UPdf.show(url: url)

Constructors

UPdf()

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

extractText({String? filePath, Uint8List? bytes, String? url, String password = "", int startPage = 0, int endPage = -1}) → Future<String>
All text of a PDF (for search or AI).
info({String? filePath, Uint8List? bytes, String? url, String password = ""}) → Future<UDocMetadata?>
Title, author, page count and other metadata.
open({String? base64Pdf, Uint8List? bytes, String? url, String? filePath, String? asset, String password = "", int initialPage = 0, String? title, String? annotationData, void onAnnotationsChanged(String data)?, bool allowCopy = true, bool secure = false, UDocWatermark? watermark}) → Future<void>
Pushes a full-screen reader with every feature enabled.
show({String? base64Pdf, Uint8List? bytes, String? url, String? filePath, String? asset, String password = "", int initialPage = 0, String? title}) → Future<void>
Opens a full-screen PDF viewer from url/bytes/file/asset/base64. UPdf.show(url: "https://x.com/a.pdf")