PspdfkitProcessor class

This class is used to generate PDF documents from HTML,templates, patterns and images.

Constructors

PspdfkitProcessor(MethodChannel _channel)

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

generatePdf(List<NewPage> pages, String outputPath) Future<String?>
Generate PDF from Images, Template, and Patterns. pages: NewPages to be added to the PDF. outputPath: The path to the output file. Returns the path to the generated PDF path or null if the input is invalid or if the PDF generation fails.
generatePdfFromHtmlString(String html, String outPutFile, [dynamic options]) Future<String?>
Generates a PDF from HTML string.
generatePdfFromHtmlUri(Uri htmlUri, String outPutFile, [dynamic options]) Future<String?>
Generates a PDF from HTML URI. htmlUri: The URI to the HTML file to be converted to PDF. The URI can be for a local file or a remote file. outPutFile: The path to the output file. Returns the path to the generated PDF file or null if the input is invalid or if the PDF generation fails.
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 Properties

instance PspdfkitProcessor
Returns the singleton instance of PspdfkitProcessor.
no setter