pdf_utils 3.2.1
pdf_utils: ^3.2.1 copied to clipboard
A comprehensive Flutter plugin for PDF manipulation, including professional invoice generation, image-to-PDF conversion, and PDF-to-image extraction.
3.2.1 #
- New Feature: Native PDF Printing: Launch the system print dialog directly from the plugin (Android).
- Advanced Watermarking: Support for inline images via
{image}tag, opacity control, background colors, and 10 placement options (9-grid + custom coordinates). - Enhanced Page Numbering: Support for inline logo images via
{image}tag. - Refactored API: Introduced typesafe enums (
PdfTextPlacement,PdfWatermarkPlacement) for all positioning and alignment parameters. - Bug Fixes: Improved tag consumption logic to ensure placeholders like
{image}are stripped even if the source image is missing.
3.2.0 #
- New Feature: Smart Blank Page Removal: Efficiently identifies and removes empty pages by scanning for both text and graphical objects.
- New Feature: Dynamic Page Numbering & Custom Headers: Add text with
{n}and{total}placeholders at 6 different placements (Top/Bottom, Left/Center/Right). - Enhanced Navigation Feature: Added cards for Page Numbering and Blank Page Removal in the example application's manipulation section.
3.1.0 #
- New Feature: PDF Page Insertion: Insert images (JPG/PNG) or other PDF pages into an existing document at any 0-based index or using
beforePage/afterPageconvenience methods. - New Feature: Smart PDF Resizing: Rescale PDF pages to target dimensions (e.g., A4) while maintaining aspect ratio and centering the content on a white background.
- New Feature: Selective Page Resizing: Apply resizing to a specific page range or individual pages while keeping others at their original size.
- Enhanced Example App: Added interactive examples for page swapping, page insertion, and A4 resizing in the manipulation feature section.
- Improved Inline Documentation: Added comprehensive DartDoc for all new methods to assist developers.
3.0.0 #
Note:
- Major Refactor: PDFBox Integration: Tried Replacing ENgine with iText7 but it was working as expected, but the issue is license. It doesn't provide free license for commercial use, so Migrated the core engine back to PDFBox (Apache 2.0 license) for full legal compliance and maximum efficiency . And exploring iText7 helped me to add many more fature out of pdfbox. I'm just trying to add features that are not offered by pdfbox directly.
- Breaking Change: Enhanced API Structure: Unified and streamlined the
PdfUtilsAPI with cleaner models (PdfValidity,PdfPageSize) and more consistent method naming across Dart and Native.
New Features:
- New Feature: Smart PDF Compression: Significantly reduce PDF file size by removing structural bloat and optimizing images natively via PDFBox.
- New Feature: Native PDF Watermarking: Professional text watermarking with customizable transparency, rotation, and colors.
- New Feature: PDF Security Analysis: Retrieve detailed security permissions and validity via
getValidity. - New Feature: Detailed Page Metrics: Discover architectural dimensions (width/height) for every page via
getPagesSize. - Optimized Page Manipulation: Reorder, delete, and rotate pages in a single high-speed native pass via
manipulatePages. - Improved Performance: Lightning-fast native image-to-PDF and merging implementations using optimized PDFBox-android APIs.
- Project Structure: Cleaned up the Android source into modular helper classes for better maintainability and professional codebase.
- Documentation: Split documentation into feature-specific files in the
docfolder.
Imroved Features:
- Improved PDF Compression: Reduced PDF file size by removing structural bloat and optimizing images natively via PDFBox.
- Improved PDF Watermarking: Professional text watermarking with customizable transparency, rotation, and colors.
- Improved PDF Security Analysis: Retrieve detailed security permissions and validity via
getValidity. - Improved PDF Page Metrics: Discover architectural dimensions (width/height) for every page via
getPagesSize. - Improved Page Manipulation: Reorder, delete, and rotate pages in a single high-speed native pass via
manipulatePages. - Improved Performance: Lightning-fast native image-to-PDF and merging implementations using optimized PDFBox-android APIs.
- Improved Project Structure: Cleaned up the Android source into modular helper classes for better maintainability and professional codebase.
- Improved Documentation: Split documentation into feature-specific files in the
docfolder.
2.2.0 #
- New Feature: PDF Compression: Added capability to reduce PDF file size by optimizing images and removing fonts via
PdfUtils.compressPdf. - New Feature: PDF Watermarking: Added professional text watermarking support with customizable rotation, opacity, and positioning via
PdfUtils.watermarkPdf. - New Feature: PDF Splitting: Divide PDFs by page count or specific page numbers via
PdfUtils.splitPdfByPageCountandPdfUtils.splitPdfByPageNumbers. - New Feature: Page Manipulation: Reorder, delete, and rotate specific pages via
PdfUtils.manipulatePages. - Native Enhancements: Integrated iText7 for advanced PDF operations on Android.
2.1.0 #
- Improved Example App: Refactored to feature-based structure for better readability.
- Remove PDF Password: Added support and example for removing (unlocking) PDF passwords.
- Android/Gradle Upgrades: Upgraded Gradle and internal dependencies for better compatibility.
- Flutter Optimizations: Updated dependencies and improved method channel handling.
2.0.0 #
- Standalone Implementation: Removed external dependencies (
pdf_workerandflutter_pdf_text). - Native PDF Processing: Integrated PDFBox (Android) and PDFKit (iOS) natively for faster and more reliable processing.
- New Features:
- PDF Protection (Lock/Unlock) with password.
- PDF Merging (Combine multiple PDFs).
- Choose specific pages from a PDF to merge.
- High-performance Native PDF to Image conversion.
- PDF to Long Image conversion.
- Full Text extraction, metadata retrieval, and page count.
- Bug Fixes: Fixed several minor issues in text extraction and page rendering.
1.0.0 #
- Initial release.
- Professional invoice generation with customizable models.
- Image to PDF conversion.
- PDF to Image extraction with progress tracking.
- Full DartDoc documentation.
- Example application.