native_pdf_kit 0.3.1
native_pdf_kit: ^0.3.1 copied to clipboard
Fast, dependency-free native PDF rendering, imaging, optimization and page operations for Flutter. Direct FFI to CoreGraphics/ImageIO on Apple and JNIgen to PdfRenderer on Android, no platform channel [...]
0.3.1 #
- Example app: pick a real PDF or image from device storage (
file_selector), preview pages, and run OCR with live progress and extracted text. - Add a screenshot integration driver for iOS and Android.
- README screenshots and a file-picking walkthrough.
- No core API changes.
0.3.0 #
- Optimizer: PDF 1.5 xref streams, hybrid files,
/ObjStmobject streams, incremental-update/Prevchains and PNG/TIFF predictors. - Optimizer: converts 8-bit DeviceRGB/DeviceGray Flate images to JPEG, in
addition to
DCTDecodedownsampling. PdfTextExtractor.extractPagesreturns per-page text in one parse; Flate predictors are supported.- New companion package
native_pdf_kit_ocr0.1.0: Apple Vision + PDFKit, Android ML Kit Text Recognition v2, optional LiteRT + PP-OCRv5, realtime progress, cancellation, line boxes. - Example app: live OCR demo and Android/iOS device integration tests.
- Android release build verified with ML Kit and LiteRT 2.3.0; iOS simulator and device builds verified with Vision/PDFKit.
- Tests: 16 core tests plus 7 macOS OCR tests and 3 Android device tests.
0.2.0 #
- In-house PDF optimizer: classic xref parsing, object garbage collection, maximum-effort Flate recompression, and JPEG image downsampling through the native codecs. Unsupported files are returned unchanged.
- Best-effort text-layer extraction (
PdfTextExtractor). - Page operations: rotate, reorder, remove and split/extract
(
PdfPageEditor.rotate,reorderPdfPages). - Cross-document merge with object renumbering (
mergePdfs). - Document metadata read/write (
PdfMetadataEditor). - iOS deployment target lowered to 13.0; Android API 21+; SPM manifest fixed.
- Verified release builds: iOS device (
--no-codesign) and Android release APK. - Deterministic Android binding generation without a hard-coded SDK path.
0.1.0 #
First release.
- iOS/macOS: direct FFI to CoreGraphics for PDF page count, page size and rasterization.
- iOS/macOS: ImageIO-based image resizing and JPEG/PNG encoding.
- Android: JNIgen bindings to
PdfRenderer,BitmapandBitmapFactoryfor the same page and image operations. - JPEG rendering honours page rotation and flattens transparency to white.
- Native image compression applies EXIF orientation before resizing.
- Capability flags report unsupported features explicitly.
- macOS test dylib builder and an iOS/macOS example app.