I am working on a iOS/Android/Web app where I am getting a PDF url from server.I want to
preview pdf on flutter web in Flutter web but I am not able to preview it from url.
Asked
Active
Viewed 449 times
0
mahooresorkh
- 507
- 4
- 12
Sheikh Raj
- 21
- 6
-
why don't you open the pdf link on a browser instead (for android/ios) or new tab (if web). please follow this to do the same for web: https://stackoverflow.com/questions/16925481/opening-a-new-tab-to-read-a-pdf-file – androCoder-BD Mar 10 '22 at 15:38
-
May be you can follow this https://stackoverflow.com/questions/62476108/how-to-load-and-present-a-pdf-file-from-the-web-in-flutter – Yu Yu Mar 11 '22 at 04:53
-
@androCoder-BD if i will use it in new tab with url it will expose the link which i don't want . However, I found my solution for that i used syncfusion_flutter_pdfviewer library by using this library i can open pdf from url. – Sheikh Raj Mar 18 '22 at 18:52
-
@YuYu thank for solution. – Sheikh Raj Mar 18 '22 at 18:57
1 Answers
0
take a look at this package pdf flutter package It is a complete PDF package/solution for flutter. But you just need to look at the viewing part. See their example. Supports all the platforms.
androCoder-BD
- 470
- 7
- 13