Attach (recommended) or Link to PDF file here:
Configuration:
- Web browser and its version:
- Operating system and its version:
- PDF.js version:
- Is a browser extension:
Steps to reproduce the problem:
-
on file viewer.js
|
event.initCustomEvent("webviewerloaded", true, true, {}); |
listen event and motify appOptions
-
on file app.js
|
const apiParameters = AppOptions.getAll(OptionKind.API); |
get config for api
-
but app_options.js has not option for httpHeaders ,
|
function getDocument(src) { |
support this option
What is the expected behavior? (add screenshot)
suport custom httpHeader for viewer.js
i can only hook xhr, fetch for hack this moment.
What went wrong? (add screenshot)
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):