7
Views
2
Comments
Solved
How can we use Js for viewing jpd,PDF and doc file on one click?

Hello guys 

can you help me to know how can I handle a click event to show jpg or docx or pdf file. Currently I am using forge component but I want to use JS instead. Can anyone help me?

2022-08-03 04-32-50
Ravi Punjwani
Solution

I'm assuming this is for a mobile app.

If you don't use a forge component, you then need to include a cordova plugin to allow doing these operations on your own.

Javascript may be your favourite, but it will also increase a lot of work which plugins do all by themselves under the hood and in a right way since many users trust them to use in their projects.

Do you have any particular reason for avoiding forge components to do this job?

UserImage.jpg
Nidhi Sardeshpande
Solution

Thanks Ravi

UserImage.jpg
Nidhi Sardeshpande
Solution

Thanks Ravi

2022-08-03 04-32-50
Ravi Punjwani
Solution

I'm assuming this is for a mobile app.

If you don't use a forge component, you then need to include a cordova plugin to allow doing these operations on your own.

Javascript may be your favourite, but it will also increase a lot of work which plugins do all by themselves under the hood and in a right way since many users trust them to use in their projects.

Do you have any particular reason for avoiding forge components to do this job?

UserImage.jpg
Nidhi Sardeshpande
Solution

Thanks Ravi

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