Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I want to open a PDF from my mvc application however I don't just want it to open in a new tab. I need it to open in my company's Foxit PDF Editor.

I have been able to achieve something similar with word by using the below HTML below but I'm not sure how to modify this to my foxit application ?

<a href='ms-word:ofe|u|https://example.com/example.docx'>Edit</a>


There is a Foxit API however the license is expensive so this would be my preferred way.

What I have tried:

google, various modifications of the example code

<a href='foxitreader:http://example.pdf'>Edit</a>
Posted
Updated 5-Dec-22 8:32am
v2

1 solution

I don't think there's a way to force the file to open in a specific application outside of registering a custom URL protocol (ie. register foxitreader:// on the user's machine) or having a custom file extension (which the user could still choose to override in their operating system).

I'm not sure if mimicking a file's mime-type would work either.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900