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

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

flutter_plugin_pdf_viewer

PDF फ़ाइलों के हैंडलिंग के लिए एक फ्लटर प्लगइन। दोनों एंड्रॉइड और आईओएस पर काम करता है

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

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

flutter pub add flutter_plugin_pdf_viewer

पैकेज अवलोकन

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

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

उपयोग

  • उपयोगकर्ता-जनित PDF प्रदर्शित कर रहा है
  • एप में डॉक्यूमेंटेशन देखना
  • इन्वॉइस या रसीद दिखाएं
  • डिजिटल पाठ्यपुस्तकों को पढ़ना
  • स्कैन किए गए दस्तावेज़ का रेंडरिंग

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

  • क्रॉस-प्लेटफ़ॉर्म समर्थन (Android और iOS)
  • Flutter विजेट्स के साथ सरल एकीकरण
  • कुशल PDF रेंडरिंग
  • ज़ूम और स्क्रॉल का समर्थन करता है
  • हल्का और तेज़

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

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

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

  • PDF संपादन का समर्थन नहीं करता है
  • केवल देखने के लिए सीमित
  • कोई बिल्ट-इन सर्च कार्यक्षमता नहीं है
  • कुछ उपकरणों पर बाहरी फ़ाइल एक्सेस की अनुमति की आवश्यकता होती है
  • बड़े PDF के साथ प्रदर्शन में भिन्नता हो सकती है

मूल README

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

flutter_plugin_pdf_viewer

A flutter plugin for handling PDF files. Works on both Android & iOS

Installation

Add flutter_plugin_pdf_viewer as a dependency in your pubspec.yaml file.

flutter_plugin_pdf_viewer: any

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('http://www.africau.edu/images/default/sample.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) {
    Scaffold(
        appBar: AppBar(
          title: Text('Example'),
        ),
        body: Center(
        child: _isLoading
            ? Center(child: CircularProgressIndicator())
            : PDFViewer(document: document)),
    );
  }

This code produces the following view:

Demo Screenshot 1

TODO

  • Allow password-protected files
  • Refactor PDFDocument.getAll() method
  • Increase page resolution
  • Add swipe to change page

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.

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 5 आइटम

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

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

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