[meta] Support official Parameters for Opening PDF Files, iframe & otherwise
Categories
(Firefox :: PDF Viewer, enhancement)
Tracking
()
People
(Reporter: hayashi.nicholas, Unassigned)
References
(Depends on 2 open bugs)
Details
(Keywords: meta)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Steps to reproduce:
Background: (steps to reproduce at bottom of this section)
This document: https://pdfobject.com/pdf/pdf_open_parameters_acro8.pdf
Provides a list of parameters you can provide in a url in order to do various tasks to a .pdf file on load, such as:
- zoom the pdf
- fit the pdf to screen
- search text within the pdf
- toggle on/off the various toolbars
There are a number of these which seem to not be supported, which are supported on Google Chrome v108, for example.
search
, zoom
and page
as parameters appear to be working as expected. However, the following, are not when opening the pdf via an iframe:
- scrollbar
- view
- viewrect
- highlight
- toolbar
- statusbar
- navpanes
Steps to reproduce:
- Open any .pdf via an iframe's
src
attribute, appending any of the above options to the end of the url as specified here: https://pdfobject.com/pdf/pdf_open_parameters_acro8.pdf - Observe the behavior not being as described in the linked document
Actual results:
For each of the non-functioning listed options, nothing was observed on the page/in the iframe.
Expected results:
I would expect at least most of these to work.
In particular, the fact the toolbar, statusbar, navpanes, and view functionality don't work is a bummer. I have an application where the inconsistency in both behavior and look between Chrome and Firefox is not ideal.
There appear to be only two other (very inactive) bugs filed about this, and they were for specific parameters in the adobe document:
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Looks like pdf bugs are tracked on github. There's
https://github.com/mozilla/pdf.js/issues/2784 for navpanes and toolbar
https://github.com/mozilla/pdf.js/issues/10772 for viewrect
I imagine some/all of the others have existing issues too.
Comment 2•2 years ago
|
||
We are tracking issues on Bugzilla and GitHub (preferably Bugzilla).
Updated•1 year ago
|
Description
•