PDF-XChange Viewer SDK in MVC asp.net

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
BigJRofC
User
Posts: 2
Joined: Thu Apr 16, 2015 11:51 pm

PDF-XChange Viewer SDK in MVC asp.net

Post by BigJRofC »

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
User avatar
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

Post by Vasyl-Tracker Dev Team »

Hi BigJRofC.

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.
User avatar
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

Post by Vasyl-Tracker Dev Team »

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.
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.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: PDF-XChange Viewer SDK in MVC asp.net

Post by Corwin - Tracker Sup »

Hello BigJRofC,

Please try to register PDFXCviewIEPlugin.dll with regsvr32 command and report back if it helps.

HTH.
Post Reply