Simple browser-based PDF viewer with multiple rendering modes selected through query params.
https://addevin.github.io/pdf-viewer?file=https://pdfobject.com/pdf/sample.pdf&open-in=pdf-js&hide-tabs=false&hide-header=false&remove-timestamp=false&hide-git-url=false
Short aliases are supported for every query param. If both the full name and short alias are provided, the full name takes priority.
Required. The PDF URL to load.
Short alias: f
Use URL encoding when passing a full URL as a query param.
Example:
file=https://pdfobject.com/pdf/sample.pdf
Optional. Selects the active viewer mode.
Short alias: oi
Supported values:
mozilla-git-pdf-jspdf-jsgoogle-drive-pdfbrowser-pdf
If omitted, the viewer uses the last selected mode from local storage, or defaults to mozilla-git-pdf-js.
Optional. If true or 1, hides the entire header, including tabs and reload button.
Short alias: hh
Supported truthy values:
true1
Optional. If true or 1, hides only the tabs and keeps the reload button visible.
Short alias: ht
Supported truthy values:
true1
Optional. If true or 1, the viewer does not append the cache-busting t query param to the PDF URL.
Short alias: rt
Supported truthy values:
true1
Optional. If true or 1, hides the GitHub button in the header.
Short alias: hgu
Supported truthy values:
true1
- The viewer appends a
tquery param to the PDF URL for cache-busting unlessremove-timestampis truthy.