Home > Software design >  How see .doc/.docx and .pdf preview in a flutter mobile app
How see .doc/.docx and .pdf preview in a flutter mobile app

Time:06-14

the question is this. I have a list of documents retrieved from an api (jpg, doc, pdf) that come to me in binary format (unit8list). How do I preview doc and pdf files? For images I have already solved using MemoryImage () but I don't know which library or widget to use for .doc / .docx and pdf files. Thanks in advance :D

CodePudding user response:

You can use open_file package to open and view files. Here is the URL. Check this out :) https://pub.dev/packages/open_file

CodePudding user response:

The following package should work perfectly for displaying .pdf files: https://pub.dev/packages/advance_pdf_viewer. You can open any file with https://pub.dev/packages/open_file

  • Related