PdfCombinerWeb class
Web implementation of the PdfCombinerPlatform. This class handles the interaction between the Flutter app and JavaScript functions for merging PDFs, creating PDFs from images, and converting PDFs to images.
- Inheritance
-
- Object
- PlatformInterface
- PdfCombinerPlatform
- PdfCombinerWeb
Constructors
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
-
createImageFromPDF(
{required String inputPath, required String outputPath, int maxWidth = 360, int maxHeight = 360, bool createOneImage = true}) → Future< List< String> > -
Creates an image or multiple images from a PDF file.
override
-
createPDFFromMultipleImages(
{required List< String> inputPaths, required String outputPath, int? maxWidth, int? maxHeight, bool? needImageCompressor}) → Future<String> -
Creates a single PDF from multiple images.
override
-
mergeMultiplePDFs(
{required List< String> inputPaths, required String outputPath}) → Future<String> -
Merges multiple PDFs into one PDF.
override
-
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
-
registerWith(
Registrar registrar) → void - Registers the PdfCombinerWeb instance as the platform implementation. This method is called by the Flutter framework to link the platform interface with the web implementation.