パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.0.8

easy_pdf_viewer

PDFファイルを処理するためのFlutterプラグイン。AndroidおよびiOSで動作します

AndroidiOS
30日間ダウンロード
6590
いいね数
77
Pub ポイント
140

パッケージをインストール

flutter pub add easy_pdf_viewer

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Easy PDF Viewer は、モバイルアプリケーションでのPDFファイルの表示と操作を簡素化することを目的としたFlutterプラグインです。AndroidおよびiOSの両方のプラットフォームをサポートしており、Flutterアプリ内でのPDFレンダリングに簡単な統合を提供します。クリーンでカスタマイズ可能なウィジェットを提供し、ズームやスクロールなどの基本的なナビゲーション機能を使ってPDFを表示できます。使いやすさを重視して開発されており、最小限のセットアップで既存のFlutterプロジェクトとスムーズに連携します。複雑な設定なしに軽量なPDF閲覧機能が必要なアプリに最適です。

用途

  • アプリケーションでPDFドキュメントを表示する
  • 教育ツールへのPDFの統合
  • ユーザーが作成したまたはダウンロードしたPDFを表示する
  • モバイルアプリにマニュアルやガイドを埋め込む
  • モバイル上で契約またはフォームをレンダリングする

主な機能

  • クロスプラットフォーム対応(Android および iOS)
  • PDF レンダリングのためのシンプルな API
  • 内蔵のズームおよびスクロール機能
  • 軽量で統合が簡単
  • カスタマイズ可能な UI コンポーネント

適している対象

  • ドキュメント中心のアプリを開発する開発者
  • 教育または企業向けアプリケーション
  • PDFプレビュー機能を必要とするアプリ
  • 迅速なPDF統合を求めるチーム
  • 開発期間が限られたプロジェクト

注意事項

  • 制限された高度なPDF編集機能
  • 組み込みのテキスト検索または注釈ツールなし
  • 大きなPDFファイルではパフォーマンスが異なる場合があります
  • レンダリングに外部ネイティブライブラリに依存しています
  • 非常に高解像度または複雑なPDFには最適化されていません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

easy_pdf_viewer

A flutter plugin for handling PDF files. Works on both Android & iOS. Originally forked from (https://github.com/lohanidamodar/pdf_viewer).

Pub Package

Installation

> flutter pub add easy_pdf_viewer

Android

No permissions required. Uses application cache directory.

iOS

No permissions required.

How-to:

Load PDF
// Load from assets
PDFDocument doc = await PDFDocument.fromAsset('assets/test.pdf');
 
// Load from URL
PDFDocument doc = await PDFDocument.fromURL('https://www.ecma-international.org/wp-content/uploads/ECMA-262_12th_edition_june_2021.pdf');

// Load from file
File file  = File('...');
PDFDocument doc = await PDFDocument.fromFile(file);
Load pages
// Load specific page
PDFPage pageOne = await doc.get(page: _number);
Pre-built viewer

Use the pre-built PDF Viewer

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Example'),
      ),
      body: Center(
          child: _isLoading
              ? Center(child: CircularProgressIndicator())
              : PDFViewer(document: document)),
    );
  }

This code produces the following view:

demo

Third-party packages used
Name Description
path_provider A Flutter plugin for finding commonly used locations on the filesystem. Supports iOS and Android.
flutter_cache_manager A CacheManager to download and cache files in the cache directory of the app. Various settings on how long to keep a file can be changed.
numberpicker NumberPicker is a custom widget designed for choosing an integer or decimal number by scrolling spinners.
flutter_advanced_networkimage An advanced image provider provides caching and retrying for flutter app. Now with zoomable widget and transition to image widget.

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。