pdf_merger 0.0.2 pdf_merger: ^0.0.2 copied to clipboard
A new Flutter plugin fro merge PDF.
pdf_merger #
A new Flutter plugin for merge List of PDF files.
Method #
String response;
// Platform messages may fail, so we use a try/catch PlatformException.
try {
response = await PdfMerger.platformVersion(paths : filesPath, outputDirPath: outputDirPath);
print("File" + response);
} on PlatformException {
print('Failed to get platform version.');
}
Response -> "Success" when file save successfully otherwise "Error" message come.
paths -> List
Usage #
See Example. Use with file picker and add permission handler before calling pdf_merger.
file_picker
https://pub.dev/packages/file_picker
permission_handler
https://pub.dev/packages/permission_handler
Support #
Android & IOS