flutter_pdf_viewer | A native PDF viewer for flutter | iOS library
kandi X-RAY | flutter_pdf_viewer Summary
kandi X-RAY | flutter_pdf_viewer Summary
A native PDF viewer for flutter.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of flutter_pdf_viewer
flutter_pdf_viewer Key Features
flutter_pdf_viewer Examples and Code Snippets
Community Discussions
Trending Discussions on flutter_pdf_viewer
QUESTION
I am working on a iOS/Android/Web app where I am generating a PDF based on user input using the pdf plugin here: https://pub.dev/packages/pdf. On iOS and Android, I have access to the file system, so I am able to save the generated pdf first, and then open it with any pdf display plugin.
However, for Flutter web, as far as I know, there is no access to any type of file system. All the pdf render plugins that I've seen assume that the pdf file is either stored in a file, or on the web. I looked at:
- flutter_full_pdf_viewer: ^1.0.6
- flutter_pdf_viewer: ^0.6.1
- pdf_render: ^0.57.2
How can I display this app-generated pdf on flutter web? Is there a way to spoof the Uint8List data as a file, or perhaps another way to approach this? (The only thing I can think of to solve this is by uploading the file to the web after generating it in order to display it, but it seems like overkill.)
...ANSWER
Answered 2020-Apr-23 at 19:58We can do it without additional plug-ins, because the web browser itself can display (or download) pdf
document:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flutter_pdf_viewer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page