패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.12.1

pdfrx

pdfrx는 PDFium을 기반으로 구축된 풍부하고 빠른 PDF 뷰어 및 조작 플러그인입니다. Android, iOS, Windows, macOS, Linux 및 웹에서 PDF 보기, 편집, 결합을 지원합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
68.6만
좋아요
357
Pub 점수
160

패키지 설치

flutter pub add pdfrx

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

pdfrx는 PDFium을 활용하여 여러 플랫폼에서 빠른 렌더링과 처리를 가능하게 하는 고성능 PDF 뷰어 및 조작 플러그인입니다. Android, iOS, Web, macOS, Windows, Linux에서 PDF 문서를 원활하게 보기, 편집하고 결합할 수 있습니다. 최소한의 설정으로 강력한 PDF 기능을 원하는 개발자를 위해 설계되었으며, 주석, 텍스트 선택, 페이지 탐색을 지원하는 네이티브와 유사한 경험을 제공합니다. 크로스플랫폼 호환성 덕분에 플랫폼별 코드 없이 신뢰할 수 있는 PDF 처리가 필요한 애플리케이션에 이상적입니다.

사용 사례

  • 모바일 및 데스크톱 앱에서 PDF 보기
  • 여러 PDF 파일 병합
  • 인터랙티브 PDF 콘텐츠 편집
  • 웹 애플리케이션에 PDF 통합하기
  • 문서 관리 도구 만들기
  • 앱에서 주석 기능 사용 활성화

주요 기능

  • 속도와 신뢰성의 기반으로 PDFium을 사용
  • 크로스 플랫폼 지원 (Android, iOS, Web, macOS, Windows, Linux)
  • PDF 편집 및 병합 지원
  • 플러터 통합을 통한 네이티브 성능
  • 텍스트 선택 및 검색 기능
  • 주석 및 마크업 도구

적합한 대상

  • 문서가 많은 앱을 개발하는 개발자
  • PDF 처리가 필요한 교육 또는 기업용 소프트웨어
  • 다중 플랫폼 PDF 지원이 필요한 앱
  • 경량 PDF 솔루션을 원하는 팀
  • 빠른 PDF 렌더링이 필요한 프로젝트

고려 사항

  • 일부 플랫폼에 대해 원격 종속성이 필요합니다
  • PDF 렌더링 UI의 사용자 정의 제한
  • PDFium 포함으로 인해 앱 크기가 증가할 수 있습니다
  • 고급 PDF 기능은 추가 구성이 필요할 수 있습니다
  • 웹 지원은 브라우저 호환성에 따라 달라집니다
  • 대규모 또는 복잡한 PDF에서는 성능이 다를 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

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.

카테고리

의존성

의존성 목록 13 개

소스 저장소

이 패키지를 사용하는 프로젝트