Windows 10 has Edge as its default web browser in the place of Microsoft’s traditional web browser, the Internet Explorer, in all the devices. Also, Microsoft Edge is now the default pdf reader to open and view pdf files in Windows 10 supported workstations.

Display PDF within web browser. Ask Question Asked 8 years, 8 months ago. Open PDF in browser instead of downloading it. Actual Steps in Step Definition or Call Test Cases in Step Definition, What's the Best Practice? How do I get the hue, saturation and brightness values from a color? Set MS Edge as the default program for opening PDF files. 1.Reach Control panel, and open it. 2.On Control panel home, select Default Programs. 3.Select the “Associate a file type or protocol with a program” 4.Search for PDF entry, and select Change Program option. 5.When a pop-up appears on the screen, then select Microsoft Edge program to open PDF file. 6.Now, select and check on Always use this app to open.pdf. The ideal is that when users cick the url in the email, the PDF opens in a new web-browser window (and doesn't download to their desktop). Here is my question (well, actually two questions): a) Can anything be done to force the PDF to open in a new browser window.

Pdf

Unable to open PDF files in MS Edge?

The earlier versions of Windows platforms (Windows 7 or Windows 8) have a universal PDF supported that allow opening PDF files using Acrobat Reader, Adobe Acrobat, or Foxit Reader, or similar programs. But after making an upgrade to Windows 10, PDF files are automatically opened in PDF Explorer even if the Acrobat Reader is installed on the machine.

Microsoft Edge provides only minimal access controls (like zoom in, zoom out, print etc.), and lacks some convenient features, like, sending the PDF as an attachment with Outlook. MS Edge remains the default PDF reader even if the user reinstalls Acrobat Reader in order to access the PDF files. Amid the process, the file can become inaccessible, and MS Edge may indicate some error messages. Simply, Edge users often face issues while opening PDF files in their browser.

Change the default PDF viewing setting in MS Edge

Implement the following procedure to set the default PDF viewing settings in MS Edge:

Today's quick tip explains how to use special web protocols inside hypertext links to force web pages or files to open with particular browsers on Windows or iOS. Shown below is a screenshot of a. How to download and open a pdf file automatically just by clicking on the file in firefox and IE browser for windows 7 without the save/ open/cancel popup. Is there any functionality in test complete to achieve this automatic opening of a file without popup. If you don’t have another PDF file, you can also try opening the same PDF file in another web browser such as Chrome or Firefox to make sure that the PDF file is not corrupt. Check if you are running Windows 10 N or KN editions. By default, Windows 10 N and Windows 10 KN editions don’t support opening PDF files in Edge as these editions don’t come with Windows Media features.

Set MS Edge as the default program for opening PDF files

1.Reach Control panel, and open it.
2.On Control panel home, select Default Programs.
3.Select the “Associate a file type or protocol with a program”

4.Search for PDF entry, and select Change Program option.

5.When a pop-up appears on the screen, then select Microsoft Edge program to open PDF file.
6.Now, select and check on Always use this app to open .pdf.
7.Click OK to save the changes.
Switching to Acrobat XI /Reader XI
You may also change your default settings from MS Edge to Acrobat Reader XI, or similar program for opening PDF files. For this:
1.Select PDF file and then right click on it.
2.Select Open with option, and click Choose another app.
3.Select Adobe Acrobat option, when the dialog box is displayed on the screen.
4.Check mark the Always use this app to open .pdf box to save the settings for future use.

How to open Inaccessible PDF files?
If the user has changed the default PDF reader from Microsoft Edge to some other program while upgrading to Windows 10, use the following instructions to make Microsoft Edge as default PDF viewer again.

1.Select and right-click the PDF file.
2.Choose Open with, and then select Choose another app.
3.After selecting Choose another app, select Edge to make it default PDF reader.

However, if the user still faces problem to open PDF file, he may use some third-party PDF repair tool to repair PDF files and restore the file without any alterations.


Conclusion

Though Edge is the default PDF viewer in Windows 10, users often refrains to use Microsoft Edge PDF viewer due to various reasons. As the option to change the default settings is available, users try to switch to other PDF viewing programs like Acrobat Reader. However, many PDF inaccessibility issues are often encountered thereafter.

Active2 years, 4 months ago

How can I display a pdf within a web browser on an .html page?

CodeGuyCodeGuy
13k67 gold badges177 silver badges293 bronze badges

13 Answers

I use Google Docs embeddable PDF viewer. The docs don't have to be uploaded to Google Docs, but they do have to be available online.

rubyprince
14.2k8 gold badges51 silver badges93 bronze badges
bradenkeithbradenkeith
2,0461 gold badge15 silver badges25 bronze badges

instead of using iframe and depending on the third party, think about using flexpaper, or pdf.js.

I used pdf.js, it works fine for me.

here is the demo: http://mozilla.github.com/pdf.js/web/viewer.html

navinsnavins
2,5851 gold badge22 silver badges26 bronze badges

The simplest way is to create an iframe and set the source to the URL of the PDF.

(ducks mad HTML designers) Done it myself, works fine, cross browser (crawls into bunker).

WillWill
115k47 gold badges291 silver badges379 bronze badges

preffered using the object tag

note that you can change the width and height to any value you please visithttp://www.w3schools.com/tags/tag_object.asp

BAKARI SHEGHEMBEBAKARI SHEGHEMBE

The browser's plugin controls those settings, so you can't force it. However, you can do a simple <a href='whatver.pdf'> instead of <a href='whatever.pdf' target='_blank'>.

Browserjschorrjschorr

Can't Open Pdf In Browser

2,8031 gold badge13 silver badges20 bronze badges

You can also embed using JavaScript through a third-party solution like PDFObject.

Nils Magne LundeNils Magne Lunde
1,5911 gold badge12 silver badges20 bronze badges

As long as you host the PDF the target attribute is the way to go. In other words, for relative files, using the target attribute with _blank value will work just fine.

For absolute paths engines will go to the Unified Resource Locator and open it their. So, suppress the target attribute.

Browsers will make a rely good job in both cases.

ftcostaftcosta

You can use this code:

Or use Google Docs embeddable PDF viewer:

Hieu LeHieu Le
1,5951 gold badge17 silver badges22 bronze badges

You can also have this simple GoogleDoc approach.

This would create a new page for you to view the doc without distorting your flow.

Asuquo12Asuquo12

The simple solution is to put it in an iframe and hope that the user has a plug-in that supports it.

(I don't, the Acrobat plugin has been such a resource hog and source of instability that I make a point to remove it from any browser that it touches).

The complicated, but relative popular solution is to display it in a flash applet.

Quentin

Open Pdf With Adobe Instead Of Browser

Quentin
689k81 gold badges938 silver badges1093 bronze badges

We render the PDF file pages as PNG files on the server using JPedal (a java library). That, combined with some javascript, gives us high control over visualization and navigation.

Carles BarrobésCarles Barrobés

Pdf Open Test File

9,6133 gold badges37 silver badges57 bronze badges

Displaying content saved in PDF/DOC/DOCX file format is ideal for displaying the pdf/doc/docx file on your web page

Community
Abhishek SInghAbhishek SIngh
Mat BarnettMat Barnett

protected by CommunityDec 22 '16 at 17:54

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged htmlpdfbrowser or ask your own question.