PDFs are not loaded within Iframe

The PDF-XChange Viewer for End Users
+++ FREE +++

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

Post Reply
krisrajz
User
Posts: 5
Joined: Tue Apr 07, 2015 6:31 pm

PDFs are not loaded within Iframe

Post by krisrajz »

PDFViewer.aspx

<html>
<body>
<iframe src="downloadpdf.aspx?docid=number"></iframe>
<iframe src="downloadpdf.aspx?docid=number"></iframe>
</body>
</html>

downloadpdf.aspx

if (Request.QueryString["DocId"] == null)
throw new ApplicationException("Invalid request.");

DocumentDescriptorEntity file = GetFile(Convert.ToInt32(Request.QueryString["DocId"]));
string path = Files.GetFile(file.DocumentFileName, file.DateCreated);

if (!file.DocumentFileName.EndsWith("pdf"))
{
DownloadFile(file.DocumentId);
return;
}

Response.Buffer = false;
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "inline;filename=" + file.DocumentName);
Response.AddHeader("Content-Length", file.DocumentSize.ToString());
Response.TransmitFile(path);
Response.End();

When I hit downloadpdf.aspx?docid=number with a valid number files are downloaded, but when I hit pdfviewer.aspx it does not shows pdf using PDF Exchange viewer. It inconsistently displays image.
Disassociating pdf extention with pdf viewer downloads both the pdf files.

Any help would be appreciated much.

Using IE 9 64 bit with PDF Exchange Viewer 64 bit v 2.5.312.1 (yesterday downloaded and re-installed) on Windows 7 64 bit.
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: PDFs are not loaded within Iframe

Post by Will - Tracker Supp »

Hi krisrajz,

Thanks for the post - I've forwarded this on to the Dev. Team and they will get back to you as soon as they are able.

Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
krisrajz
User
Posts: 5
Joined: Tue Apr 07, 2015 6:31 pm

Re: PDFs are not loaded within Iframe

Post by krisrajz »

After I reinstall the latest version of PDF Exchange Viewer 64 bit it stopped opening in Internet Explorer!
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17941
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PDFs are not loaded within Iframe

Post by Tracker Supp-Stefan »

Hello krisrajz,

It should not be happening like this.
Can you please check if any of the tips in these KB articles will help?
How do I make sure PDF-XChange Viewer/Editor is the default application/plugin for viewing online PDF documents in Internet Explorer?

How do I display a PDF in a web browser using the PDF-XChange Plugin?

Regards,
Stefan
krisrajz
User
Posts: 5
Joined: Tue Apr 07, 2015 6:31 pm

Re: PDFs are not loaded within Iframe

Post by krisrajz »

Another old version 2.5.212.0 is working

Does the new version of PDF Viewer has any validation like connection timeout while displaying streaming PDF?!
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: PDFs are not loaded within Iframe

Post by Vasyl-Tracker Dev Team »

Hi, krisrajz.
Another old version 2.5.212.0 is working
Strange.. No any changes we made with IE-plugin between 312 and 312.1 versions..
May be installer has an unknown issue. Please check it in next way - open the folder with installed 312.1 version and run the command line:
PDFXCview.exe /makeiassoc
then - try again to open pdf in IE.
If it will not help you - may be you can provide sample url for test and reproduce the issue on our side because is too difficult to reproduce it only on our side..

Thanks.
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.
krisrajz
User
Posts: 5
Joined: Tue Apr 07, 2015 6:31 pm

Re: PDFs are not loaded within Iframe

Post by krisrajz »

Still no respite!
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: PDFs are not loaded within Iframe

Post by Vasyl-Tracker Dev Team »

It means that it:

PDFXCview.exe /makeiassoc

did not help you?
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.
krisrajz
User
Posts: 5
Joined: Tue Apr 07, 2015 6:31 pm

Re: PDFs are not loaded within Iframe

Post by krisrajz »

No, it did not.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: PDFs are not loaded within Iframe

Post by John - Tracker Supp »

Then I am afraid we are going to need you to provide a URL as Vasyl previously requested ;
If it will not help you - may be you can provide sample url for test and reproduce the issue on our side because is too difficult to reproduce it only on our side..
Without this we cannot assist further ..
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: PDFs are not loaded within Iframe

Post by Vasyl-Tracker Dev Team »

Hi, krisrajz.

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: PDFs are not loaded within Iframe

Post by Corwin - Tracker Sup »

Hello krisrajz,

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

HTH.
Post Reply