78
Views
1
Comments
[File Viewer Plugin] Save, print option and more
Question
file-viewer-plugin
Mobile icon
Forge asset by OutSystems

can we enable print/save or open in other native apps(adobe in case of PDF) with this plugin?


I see just "close view"when I opened the pdf.


Thanks

Krish

2020-05-07 18-53-00
Rui Barradas
 
MVP

Hello Krish,


Hope you're doing well.

The File Viewer Plugin allows you to open a file / document inside of your application, with preview mode or with applications that the user has installed on the device. This plugin provides an action that allows you to open a file when you specify the file path (URI) of the file. This means that the file needs to be previously saved in your device. Also, you can specify a URL instead if you want that file to be opened remotely.


However, this plugin does not allow you to save a file in your device.


For that, you should use the File Plugin:

https://www.outsystems.com/forge/component-overview/1633/file-plugin 


You can use the SaveFile client action from File Plugin to save a file in the mobile device. This action will return the file path (URI) of the saved file. After that, you may use the OpenDocument client action from the File Viewer Plugin to open that same file.


Hope that this helps you!


Kind regards,

Rui Barradas

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.