Pakete, Repositories und App-Kategorien suchen

Paketdetailsv2.12.1

pdfrx

pdfrx ist ein leistungsfähiger und schneller PDF-Anzeige- und Bearbeitungs-Plugin, der auf PDFium basiert. Unterstützt das Anzeigen, Bearbeiten und Kombinieren von PDFs unter Android, iOS, Windows, macOS, Linux und Web.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
686.000
Likes
357
Pub-Punkte
160

Paket installieren

flutter pub add pdfrx

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

pdfrx ist ein leistungsstarker PDF-Viewer und Manipulations-Plugin für Flutter, der PDFium nutzt, um schnell auf mehreren Plattformen zu rendern und zu verarbeiten. Es ermöglicht Benutzern, PDF-Dokumente nahtlos auf Android, iOS, Web, macOS, Windows und Linux anzusehen, zu bearbeiten und zusammenzufügen. Für Entwickler, die eine robuste PDF-Funktionalität mit minimalem Setup suchen, bietet pdfrx eine native Art von Erfahrung mit Unterstützung für Anmerkungen, Textauswahl und Seitennavigation. Seine plattformübergreifende Kompatibilität macht es ideal für Anwendungen, die zuverlässige PDF-Verarbeitung ohne plattformspezifischen Code erfordern.

Anwendungsfälle

  • Anzeigen von PDFs in mobilen und Desktop-Apps
  • Mehrere PDF-Dateien kombinieren
  • Interaktive Bearbeitung von PDF-Inhalten
  • PDFs in Webanwendungen integrieren
  • Erstellen von Dokumentenverwaltungstools
  • Annotation-Funktionen in Apps aktivieren

Hauptmerkmale

  • Aufbau auf PDFium für Geschwindigkeit und Zuverlässigkeit
  • Plattformübergreifende Unterstützung (Android, iOS, Web, macOS, Windows, Linux)
  • Unterstützung für PDF-Editierung und Zusammenführung
  • Native Leistung mit Flutter-Integration
  • Textauswahl- und Suchfunktionen
  • Anmerkungs- und Markierungstools

Geeignet für

  • Entwickler, die dokumentenintensive Apps erstellen
  • Bildung oder Unternehmenssoftware, die PDF-Verarbeitung erfordert
  • Apps, die Mehrplattform-PDF-Unterstützung benötigen
  • Teams, die eine leichte PDF-Lösung benötigen
  • Projekte, die eine schnelle PDF-Wiedergabe erfordern

Hinweise

  • Benötigt native Abhängigkeiten für einige Plattformen
  • Eingeschränkte Anpassung der PDF-Rendernutzerschnittstelle
  • Kann die App-Größe aufgrund der Einbeziehung von PDFium erhöhen
  • Erweiterte PDF-Funktionen erfordern möglicherweise zusätzliche Konfiguration
  • Die Web-Unterstützung hängt von der Browser-Kompatibilität ab
  • Die Leistung variiert bei großen oder komplexen PDFs

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

pdfrx

This repository contains multiple Dart/Flutter packages for PDF rendering, viewing, and manipulation:

Requirements

  • Dart packages require Dart 3.13 or later.
  • Flutter packages require Flutter 3.47 or later.
  • Apple platform integrations target iOS 15 or later and macOS 12 or later.

Packages

pdfrx_engine

A platform-agnostic PDF rendering and manipulation API built on top of PDFium.

  • Pure Dart package (no Flutter dependencies)
  • Provides low-level PDF document API for viewing and editing
  • Supports page re-arrangement, PDF combining, image import, and document manipulation
  • Can be used in CLI applications or non-Flutter Dart projects
  • Supports all platforms: Android, iOS, Windows, macOS, Linux

View repo | API reference

pdfrx

A cross-platform PDF viewer and manipulation plugin for Flutter.

  • Flutter plugin with UI widgets
  • Built on top of pdfrx_engine
  • Provides high-level viewer widgets and overlays
  • Includes text selection, search, zoom controls, and more
  • Supports PDF editing features like page manipulation, document combining, and image import

View repo | API reference

pdfrx_coregraphics

⚠️ EXPERIMENTAL - CoreGraphics-backed renderer for pdfrx on iOS/macOS.

  • Uses PDFKit/CoreGraphics instead of PDFium on Apple platforms
  • Drop-in replacement for teams preferring the system PDF stack
  • Maintains full compatibility with pdfrx widget API
  • iOS and macOS only

View repo | API reference

pdfium_dart

Low-level Dart FFI bindings for the PDFium library.

  • Pure Dart package with auto-generated FFI bindings using ffigen
  • Provides direct access to PDFium's C API from Dart
  • Provides PDFium as a Dart native asset, downloaded and bundled at build time
  • Includes getPdfium() for resolving PDFium from a custom module path, Flutter-packaged library, or bundled native asset
  • Coordinates with pdfium_flutter so iOS/macOS Flutter apps use the PDFium XCFramework instead of bundling a duplicate dylib
  • Used as a foundation by higher-level packages

View repo | API reference

pdfium_flutter

Flutter FFI plugin for PDFium integration on native Flutter platforms.

  • Supports Android, iOS, Windows, macOS, and Linux
  • Provides the platform packaging needed to deploy PDFium in Flutter apps
  • Uses Dart native assets for Android, Linux, and Windows
  • Uses the iOS/macOS PDFium XCFramework through CocoaPods or Swift Package Manager
  • Includes low-level PDFium FFI bindings

View repo | API reference

When to Use Which Package

  • Use pdfrx if you're building a Flutter application and need PDF viewing and manipulation capabilities with UI
  • Use pdfrx_engine if you need PDF rendering and manipulation without Flutter dependencies (e.g., server-side PDF processing, CLI tools, PDF combining utilities)
  • Use pdfrx_coregraphics (experimental) if you want to use CoreGraphics/PDFKit instead of PDFium on iOS/macOS
  • Use pdfium_flutter if you're building Flutter apps or plugins that need direct PDFium access on native platforms
  • Use pdfium_dart if you need low-level PDFium FFI bindings for pure Dart projects

Getting Started

For Flutter Applications

Add pdfrx to your pubspec.yaml:

dependencies:
  pdfrx: ^2.6.5
For Pure Dart Applications

Add pdfrx_engine to your pubspec.yaml:

dependencies:
  pdfrx_engine: ^0.6.1

Documentation

Comprehensive documentation is available in the doc/ directory, including:

  • Getting started guides
  • Feature tutorials
  • Platform-specific configurations
  • Code examples

Development

This is a monorepo managed with pub workspaces. Just do dart pub get on some directory inside the repo to obtain all the dependencies.

Example Applications

PDF Viewer

The example viewer application is located in packages/pdfrx/example/viewer/. It demonstrates the full capabilities of the pdfrx Flutter plugin.

cd packages/pdfrx/example/viewer
flutter run
PDF Combine

The packages/pdfrx/example/pdf_combine/ application demonstrates PDF page manipulation and combining features:

  • Drag-and-drop interface for page re-arrangement
  • Visual thumbnails of PDF pages
  • Support for combining multiple PDF documents
  • Platform file drag-and-drop support
cd packages/pdfrx/example/pdf_combine
flutter run

Contributing

Contributions are welcome! Please read the individual package READMEs for specific development guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Kategorien

Abhängigkeiten

Abhängigkeiten 13 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden