PDFs are not loaded within Iframe
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
PDFs are not loaded within Iframe
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.
<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.
- 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
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,
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
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Re: PDFs are not loaded within Iframe
After I reinstall the latest version of PDF Exchange Viewer 64 bit it stopped opening in Internet Explorer!
- 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
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
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
Re: PDFs are not loaded within Iframe
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?!
Does the new version of PDF Viewer has any validation like connection timeout while displaying streaming PDF?!
- 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
Hi, krisrajz.
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.
Strange.. No any changes we made with IE-plugin between 312 and 312.1 versions..Another old version 2.5.212.0 is working
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.
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.
Re: PDFs are not loaded within Iframe
Still no respite!
- 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
It means that it:
PDFXCview.exe /makeiassoc
did not help you?
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.
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.
Re: PDFs are not loaded within Iframe
No, it did not.
- 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
Then I am afraid we are going to need you to provide a URL as Vasyl previously requested ;
Without this we cannot assist further ..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..
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
Best regards
Tracker Support
http://www.tracker-software.com
- 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
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.
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: PDFs are not loaded within Iframe
Hello krisrajz,
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.