PdfCombiner class

The PdfCombiner class provides functionality for combining multiple PDF files.

It communicates with the platform-specific implementation of the PDF combiner using the PdfCombinerPlatform interface. This class exposes a method to combine PDFs and handles errors that may occur during the process.

Constructors

PdfCombiner.new()

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 Properties

isMock bool
A boolean flag to indicate whether mocking is enabled. When set to true, isolates will not be executed, allowing tests to pass without performing actual PDF merging operations.
getter/setter pair

Static Methods

createImageFromPDF({required String inputPath, required String outputDirPath, ImageFromPdfConfig config = const ImageFromPdfConfig(), PdfCombinerDelegate? delegate}) Future<ImageFromPDFResponse>
For Creating a Image from PDF paths selected file path (String). Example user/android.downlaod/MYPDF.pdf outputPath is output path with filename, example /user/android/download/ABC.pdf Optional params maxWidth : default set to 360, maxHeight : default set to 360, createOneImage : default set to true.
createPDFFromMultipleImages({required List<String> inputPaths, required String outputPath, PdfFromMultipleImageConfig config = const PdfFromMultipleImageConfig(), PdfCombinerDelegate? delegate}) Future<PdfFromMultipleImageResponse>
Creates a PDF from multiple image files.
generatePDFFromDocuments({required List<String> inputPaths, required String outputPath, PdfCombinerDelegate? delegate}) Future<GeneratePdfFromDocumentsResponse>
Combines multiple files into a single PDF. The input files can be either PDFs or images.
mergeMultiplePDFs({required List<String> inputPaths, required String outputPath, PdfCombinerDelegate? delegate}) Future<MergeMultiplePDFResponse>
Combines multiple PDF files into a single PDF.