Hi,
I've been trying the PDF-X-Change Viewer SDk right now on my MVC asp.net application. So far the SDK is promising based on what we are trying to accomplish before buying it. Right now our current asp app we used the <iframe> to load the PDF file from the server by getting the bytes. I need to know how to auto load the PDF file located in a server in View-ActionResult.
See below codes we want to replace it with PDF-X-Change VIewer instead of the Adobe Reader browser (IE).
public ActionResult Index(string docName)
{
var fullFileName = path;
Byte[] bytes;
using (FileStream fs = new FileStream(fullFileName, FileMode.Open, FileAccess.Read))
{
using (BinaryReader br = new BinaryReader(fs))
{
bytes = br.ReadBytes((Int32)fs.Length);
}
}
Response.Buffer = true;
Response.Charset = string.Empty;
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.AddHeader("Content-disposition", "inline");
return File(bytes, "application/pdf");
}
Thank you in advance.
Regards,
BigJRofC
PDF-XChange Viewer SDK in MVC asp.net
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- Vasyl-Tracker Dev Team
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: PDF-XChange Viewer SDK in MVC asp.net
Hi BigJRofC.
If you can, please provide url for reproducing the trouble on our side. Thanks.
Best
Regards.
If you can, please provide url for reproducing the trouble on our side. Thanks.
Best
Regards.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
- Vasyl-Tracker Dev Team
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: PDF-XChange Viewer SDK in MVC asp.net
Hi, BigJRofC.
We prepared one test-url for opening pdf inside IFrame, from asp.net script.
http://sdk.dreamsoft-sg.net/testiframe.pdf/iframe.php
Can you try if its working for you? Because it works correctly for me..
Cheers.
We prepared one test-url for opening pdf inside IFrame, from asp.net script.
http://sdk.dreamsoft-sg.net/testiframe.pdf/iframe.php
Can you try if its working for you? Because it works correctly for me..
Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: PDF-XChange Viewer SDK in MVC asp.net
Hello BigJRofC,
Please try to register PDFXCviewIEPlugin.dll with regsvr32 command and report back if it helps.
HTH.
Please try to register PDFXCviewIEPlugin.dll with regsvr32 command and report back if it helps.
HTH.