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

패키지 상세v1.0.8

easy_pdf_viewer

PDF 파일을 처리하기 위한 플러터 플러그인입니다. Android 및 iOS에서 모두 작동합니다

AndroidiOS
30일 다운로드
6.6천
좋아요
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 개

소스 저장소

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

아직 데이터가 없습니다.