interactive_pdf_viewer 0.2.2 copy "interactive_pdf_viewer: ^0.2.2" to clipboard
interactive_pdf_viewer: ^0.2.2 copied to clipboard

A Flutter package for displaying PDFs with interactive features including text selection, page tracking, programmatic control, and sentence extraction capabilities.

Changelog #

0.2.2 Unreleased #

  • Removed Linux platform support to fix build issues
  • Clarified iOS-only implementation in documentation

0.2.1 #

  • Initial release with iOS support
  • Interactive PDF viewing capabilities using PDFKit
  • Text selection and extraction features
  • Page tracking and navigation
  • Support for loading PDFs from various sources

0.2.0 - 2024-03-20 #

Added #

  • Page tracking functionality:
    • Real-time page change events
    • Current page tracking
    • Total pages information
    • Smooth page transitions
  • Programmatic viewer control:
    • Static closePDF() method for programmatic closing
    • Error handling for viewer operations
    • State management improvements
  • Documentation updates:
    • Added examples for page tracking
    • Added examples for programmatic control
    • Updated API documentation

Changed #

  • Made closePDF() method static for consistency
  • Improved error handling in method channel calls
  • Enhanced example application with page tracking UI

0.1.0 - 2024-03-19 #

Added #

  • Initial release of Interactive PDF Viewer plugin
  • Support for iOS 13.0+ using PDFKit and SF Symbols
  • Basic PDF viewing capabilities:
    • Open PDFs from local storage
    • Open PDFs from URLs with progress tracking
    • Open PDFs from Flutter assets
  • Interactive features:
    • Single tap to select sentences
    • Double tap to clear selections
    • Visual highlighting of selected text
    • Save button for selected sentences
  • UI Components:
    • Custom close button (top left)
    • Save button for selected sentences (top right)
    • Full-screen PDF viewer
  • Method channel communication:
    • onSelectedSentencesChanged callback for sentence selection
    • onSaveSelectedSentences callback for save actions
  • Platform support:
    • iOS 13.0+ support
    • PDFKit integration
    • SF Symbols for UI elements

Known Limitations #

  • iOS-only support
  • Requires iOS 13.0+ for PDFKit and SF Symbols
  • Text highlighting covers entire lines
  • Text position information is approximated
  • Native text selection features not available

Future Improvements #

  • Implement precise text highlighting instead of line-based highlighting
  • Add support for native text selection on iOS devices
  • Improve text position accuracy
  • Add support for text search functionality
  • Implement text copying to clipboard
  • Add support for annotations and comments
2
likes
0
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for displaying PDFs with interactive features including text selection, page tracking, programmatic control, and sentence extraction capabilities.

Homepage
Repository (GitHub)
View/report issues

Topics

#pdf #interactive #text-selection #viewer-control #flutter

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, http, path_provider

More

Packages that depend on interactive_pdf_viewer

Packages that implement interactive_pdf_viewer