flutter_pdf_annotations 1.0.1
flutter_pdf_annotations: ^1.0.1 copied to clipboard
A Flutter plugin for annotating PDFs natively on iOS and Android. Supports drawing, highlighting, image stamping, and saving.
1.0.1 #
- Updated package description.
1.0.0 #
- Initial stable release.
- Open PDFs from file path, raw bytes, URL, or Flutter asset.
- Freehand pen annotations with custom colour, stroke width, and eraser.
- Highlight tool with adjustable opacity.
- Image stamping — place, resize, and confirm/delete image overlays per page.
- Undo stack for all annotation types.
- Save annotated PDF to a caller-specified path; auto-generated path when omitted.
- Share annotated PDF via the native share sheet.
- Typed result API (
PdfAnnotationResult) — distinguish success, cancellation, and errors without try/catch. PDFAnnotationConfigfor initial pen colour, highlight colour, stroke width, and image assets.- Android implementation using
PdfRendererwith a customDrawingViewoverlay. - iOS implementation using
PDFKitwith ink annotations and CoreGraphics flattening. - Platform interface (
FlutterPdfAnnotationsPlatform) for testability and future platform support. - Temp files created for
openFromBytes/openFromUrl/openFromAssetare automatically deleted after the session. - 10-minute session timeout — Dart
Futurenever hangs indefinitely.