custom_pdf_scanner 0.2.0
custom_pdf_scanner: ^0.2.0 copied to clipboard
Configurable local document & NID card scanner for Flutter with single/multi-page capture, OpenCV perspective crop & filters, reorderable list, and streaming PDF export.
0.2.0 #
- Added NID / ID Card Scan Mode (
ScanMode.nidCard):- Added
CustomPdfScanner.scanNidCard(...),CustomScannerConfig.nidCard(...), andNidScanConfig. - Added dedicated
NidScanScreenwith guided Front Side & Back Side card slots, one-tap Front ⇅ Back swap (swapFrontAndBack()), inline crop/rotate/retake controls, and interactive layout/size chips. - Added single-page composite PDF generation (
NidPdfLayout.topAndBottomSinglePageandsideBySideSinglePage) placing both Front and Back NID XObjects onto a single A4/Letter PDF sheet without re-encoding, plusNidCardPrintSizepresets (readableMedium,actualIsoId185.6 × 53.98 mm, andlargeFit). - Added ID-1 card framing guide overlay inside
MultiShotCameraScreen.
- Added
- Enhanced
example/app:- Added interactive
PDFViewPDF preview screen, Save-to-Device export, persistent local Scan History tab, and NID Card mode playground controls.
- Added interactive
0.1.0 #
- Initial release of
custom_pdf_scanner. - Single-Page & Multi-Page Capture (
ScanMode):- Multi-page batch capture with sequential background-isolate OpenCV processing and live
BatchProcessingProgressreporting. - Single-page capture modes (
SinglePageBehavior.immediatePdf,reviewThenPdf, andaddToPageList). - Pluggable capture backends (
CaptureBackend.auto,mlKiton Android inScannerMode.base, andcustomCamerawith live OpenCV boundary overlay, torch, and steady-edge auto-capture on Android & iOS).
- Multi-page batch capture with sequential background-isolate OpenCV processing and live
- OpenCV Perspective Crop & Document Filters (
dartcv4):- Automatic 4-corner Canny + Otsu document detection with safety margin and interactive manual 4-corner
CropQuadEditor. - Five filters:
magicColor,natural,grayscale,blackAndWhite(lossless Sauvola adaptive threshold), andoriginal. - Advisory pre- and post-processing quality diagnostics (
PageQualityEvaluator) for blur, motion, glare, exposure, and resolution.
- Automatic 4-corner Canny + Otsu document detection with safety margin and interactive manual 4-corner
- Embeddable Reorderable Page List & Controller:
CustomScannerControllerandScannedPagesReorderableViewsupporting drag-and-drop list/grid reordering, "+ Add More" batch/single appending, per-page crop/rotate/filter editing, and batch filter application (applyFilterToAll).
- Streaming Local PDF 1.4 Engine (
LocalPdfBuilder):- Zero-re-encode
/DCTDecodeJPEG passthrough for color and grayscale pages. - Lossless
/FlateDecode/DeviceGraystreams for crisp Black & White PNG pages. - Configurable
PdfPageSize(fitToImage,a4,letter,legal,custom),PdfPageOrientation,marginsPt,imageFit,dpi, SHA-256 checksums, and Unicode UTF-16BE PDF metadata.
- Zero-re-encode
- SDK Customization:
- Full configuration via
CustomScannerConfig,ScannerThemeData(light/dark + custom tokens),ScannerStrings(i18n),ScannerIcons, and custom widget builders.
- Full configuration via