mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-02 20:37:21 +02:00
Updated Frequently Asked Questions (markdown)
parent
4827d7df3a
commit
af469953d0
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<a name="file"></a>
|
<a name="file"></a>
|
||||||
## Can I specify a different PDF in the default viewer?
|
## Can I specify a different PDF in the default viewer?
|
||||||
You can modify the `DEFAULT_URL` variable in the `web/viewer.js` file or you can append the `?file=` query string to the viewer URL, e.g. `http://mozilla.github.com/pdf.js/web/viewer.html?file=compressed.tracemonkey-pldi-09.pdf`.
|
You can modify the `DEFAULT_URL` variable in the `web/viewer.js` file or you can append the `?file=` query string to the viewer URL, e.g. `http://mozilla.github.com/pdf.js/web/viewer.html?file=compressed.tracemonkey-pldi-09.pdf`. In the latter case, the PDF path/URL must be encoded using encodeURIComponent().
|
||||||
|
|
||||||
<a name="faq-xhr"></a>
|
<a name="faq-xhr"></a>
|
||||||
## Can I load a PDF from another server (cross domain request)?
|
## Can I load a PDF from another server (cross domain request)?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user