createPDFFromMultipleImages method
Future<String?>
createPDFFromMultipleImages({
- required List<
String> inputPaths, - required String outputPath,
- PdfFromMultipleImageConfig config = const PdfFromMultipleImageConfig(),
Creates a PDF from multiple image files.
This method sends a request to the native platform to create a PDF from the
images specified in the inputPaths
parameter. The resulting PDF is saved in the
outputPath
directory.
Parameters:
inputPaths
: A list of file paths of the images to be converted into a PDF.outputPath
: The directory path where the created PDF should be saved.config
: A configuration object that specifies how to process the images.rescale
: The scaling configuration for the images (default is the original image).keepAspectRatio
: Indicates whether to maintain the aspect ratio of the images (default istrue
).
Returns:
- A
Future<String?>
representing the result of the operation. By default, this throws an UnimplementedError.
Implementation
Future<String?> createPDFFromMultipleImages({
required List<String> inputPaths,
required String outputPath,
PdfFromMultipleImageConfig config = const PdfFromMultipleImageConfig(),
}) {
throw UnimplementedError(
'createPDFFromMultipleImage() has not been implemented.');
}