Why can't I embed the pdf in my web page anymore
For weeks I have been using:
pdfParam = "search="" + searchString + ""&toolbar=0&messages=0&navpanes=0&view=Fit";
url = url + "#" + Server.UrlPathEncode( pdfParam );
if ( openType == "OpenOnPage" )
{
var x = GetPDF( GetPDFDiv() );
x.Text = "<object " +
"class=\"Object\" " +
"width=\"100%\" " +
"height=\"980x\" " +
"type=\"application/x-pdf\" " +
"data=\"" + url + "\" " +
"> " + "
This browser does not support embedded PDFs. Click here to view it. couldn't figure out to put html text in here
ShowPDF();
}
Today, the PDF showed for a moment, and then an error from PDF said the "Adobe PDF Reader DC stopped working". I was able to remove the pdfParams and then it showed ok, but the main thing I was trying to accomplish was search for a string so that the pdf was positioned to it.
So then I uninstalled the Reader and downloaded and installed the latest one. Now I get the "This browser doesn't support..." message and it doesn't show in the page at all. If I switch it to using an iframe, it shows, but I don't know how to use the parameters with an iframe.
This is on
Windows 10 - Creators Update
IE 11.0.15063.0 update versions 11.40
Adobe Acrobat Reader DC 17.009.20044
