Baseline 2023
Newly available
The pdfViewerEnabled
read-only property of the Navigator
interface indicates whether the browser supports inline display of PDF files when navigating to them.
If inline viewing is not supported the PDF is downloaded and may then be handled by some external application.
Note: This method replaces a number of legacy methods of inferring support for inline viewing of PDF files.
Valuetrue
if the browser can display PDF files inline when navigating to the file (using either an internal viewer or a PDF viewer extension); otherwise false
.
To check PDF inline viewing support:
if (!navigator.pdfViewerEnabled) {
// The browser does not support inline viewing of PDF files.
}
Specifications Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4