pdfeditor

Last updated:

0 purchases

pdfeditor Image
pdfeditor Images
Add to Cart

Description:

pdfeditor

PDFEditor #









Getting Started #
First, add the pdfeditor package to your pubspec dependencies.
To import pdf_editor_view:
import 'package:pdfeditor/pdf_editor_view.dart';
import 'package:pdfeditor/pdf_view_controller.dart';
copied to clipboard
To use PDFEditorView for show view :
late PDFViewController pdfViewController;

PDFEditorView(
urlFile: "https://pspdfkit.com/downloads/pspdfkit-flutter-quickstart-guide.pdf",
autoScales: true,
onViewCreated: (controller) {
pdfViewController = controller;
// this.pdfViewController = controller;
},
onError: (error) async {
log(error.message);
}
)
copied to clipboard
To use pdfViewController with an Action:
await pdfViewController.onSave();
// onSave for save when on change as check book in pdf
await pdfViewController.onClear();
// onClear for clear url local
copied to clipboard
To use PDFEditor.download for download file from server or api.
PDFEditor.download(url: urlServer,
savePath: tempDir.path + fileName,
onSuccess: (fileName){
log('✅ File has finished downloading. Try opening the file.');
},
onFailed: (e) async {
log(e.message);
},
onProgress: (progress){
log('Download progress: ${progress.toStringAsFixed(0)}% done.');
});
copied to clipboard

## Testing

See [example/test](https://github.com/ApisitKaewsasan/PDFEditor.git) for testing examples.
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.