Description
title: The ability to customise the UI when embedding a PDF
date: 2023-03-05T09:35:18.276Z
submitter: PRIVATE
number: 640462562171250b3d8f1d34
tags: [ ]
discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/
status: [ discussing || in-progress || complete ]
related:
- title:
url:
type: [ article || explainer || draft || spec || note || discussion ]
Embedding a pdf in an iframe today displays the pdf using the web browsers native capabilities. This experience is different between browsers but the UI of this is not customisable. In order to have control over the UI shown to a user, a third party pdf render needs to be shipped with the application codebase. e.g pdfjs
It would be great to not have to ship a pdf renderer with an application codebase just to have control over what UI is shown consistently across browsers when browsers already have pdf rendering capabilities.
A standardised way of instructing the browser to show no UI, detail explicit functionality or even supply our own UI akin to the window controls overlay api would be fantastic.
If posted, this will appear at https://webwewant.fyi/wants/640462562171250b3d8f1d34/