पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv1.1.5

flutter_fullpdfview

एंड्रॉइड और आईओएस के लिए एक पीडीएफ व्यूअर, फिट नीति सहित। एंडिगो के flutter_pdfview पर आधारित।

30-दिन डाउनलोड
54
लाइक
27
Pub अंक
40

पैकेज इंस्टॉल करें

flutter pub add flutter_fullpdfview

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एंड्रॉइड और आईओएस पर PDF को दिखाने के लिए एक फ्लटर पैकेज, जिसमें कस्टमाइज़ किए गए फिट नीतियाँ हैं। flutter_pdfview पैकेज का एक विस्तार के रूप में बनाया गया, यह ज़ूमिंग, पैनिंग और प्रतिक्रियाशील लेआउट समायोजनों के समर्थन के साथ चिकनी, इंटरैक्टिव PDF देखने का अनुभव प्रदान करता है। ऐप में PDF रेंडरिंग को एकीकृत करने के लिए विश्वसनीय, क्रॉस-प्लेटफॉर्म समाधान ढूंढ रहे डेवलपर्स के लिए डिज़ाइन किया गया है, बिना विस्तृत कॉन्फ़िगरेशन के।

उपयोग

  • मोबाइल ऐप्स में दस्तावेज़ प्रदर्शित करना
  • उपयोगकर्ता द्वारा अपलोड किए गए PDF देखना
  • ईलेक्ट्रॉनिक पुस्तकों या मैनुअल को पढ़ना
  • शैक्षिक ऐप में PDF का एकीकरण
  • रेंडरिंग अनुबंध या फॉर्म

मुख्य विशेषताएँ

  • क्रॉस-प्लेटफॉर्म संगतता (Android और iOS)
  • बहुत फिट नीतियों का समर्थन
  • ज़ूम और पैन गेस्चर
  • हल्का और आसान एकीकरण
  • प्रतिक्रियाशील लेआउट संभालना

इनके लिए उपयुक्त

  • मोबाइल ऐप विकासकर्ता
  • दस्तावेज प्रबंधन ऐप्स
  • ई-लर्निंग प्लेटफॉर्म
  • सामग्री डिलीवरी ऐप्स
  • PDF-भारी उद्यम अनुप्रयोग

विचार योग्य बातें

  • फ़ाइल एक्सेस के लिए मूल प्लेटफ़ॉर्म की अनुमति की आवश्यकता होती है
  • Android और iOS पर सीमित (वेब/डेस्कटॉप समर्थन नहीं)
  • बड़े PDF फ़ाइलों के साथ प्रदर्शन में भिन्नता हो सकती है
  • कोई बिल्ट-इन PDF संपादन क्षमता नहीं है
  • नीचे के flutter_pdfview कार्यान्वयन पर निर्भर करता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

flutter_fullpdfview

Native PDF View for iOS and Android

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  flutter_fullpdfview: latest_version
2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Setup
iOS

Opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value YES.

4. Import it

Now in your Dart code, you can use:

import 'package:flutter_fullpdfview/flutter_fullpdfview.dart';

Options

Name Android iOS
onViewCreated V V
onRender V V
onPageChanged V V
onError V V
onPageError V X
gestureRecognizers V V
filePath V V
fitEachPage V V
defaultPage V V
dualPageMode V V
displayAsBook V V
dualPageWithBreak V V
enableSwipe V V
swipeHorizontal V V
password V V
nightMode V X
password V V
autoSpacing V V
pageFling V V
pageSnap V V
backgroundColor V V
fitPolicy V X

Only black and white are supported on Android and iOS at the moment!

Controller Options

Name Description Parameters Return
getPageCount Get total page count - Future<int>
getCurrentPage Get current page - Future<int>
setPage Go to/Set page int page Future<bool>
setPageWithAnimation Go to/Set page int page Future<bool>
resetZoom Go page and fitToWidth int page Future<bool>
getZoom Get the current zoom double zoom Future<double>
setZoom Set the current zoom double zoom Future<double>
getPageWidth Get the pdf width double width Future<double>
getPageHeight Get the pdf height double height Future<double>

Example

PDFView(
  filePath: path,
  enableSwipe: true,
  fitEachPage: true,
  swipeHorizontal: true,
  autoSpacing: false,
  pageFling: false,
  defaultPage: 8,
  dualPageMode: orientation == Orientation.landscape,
  displayAsBook: true,
  onRender: (_pages) {
    setState(() {
      pages = _pages;
      isReady = true;
    });
  },
  onError: (error) {
    print(error.toString());
  },
  onPageError: (page, error) {
    print('$page: ${error.toString()}');
  },
  onViewCreated: (PDFViewController pdfViewController) {
    _controller.complete(pdfViewController);
  },
  onPageChanged: (int page, int total) {
    print('page change: $page/$total');
  },
),

For production usage

If you use proguard, you should include this line.

-keep class com.shockwave.**

Dependencies

Android

apv Updated From: AndroidPdfViewer

iOS (only support> 11.0)

PDFKit

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।