-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
:root { | ||
--vp-c-brand-1: var(--vp-c-green-1); | ||
--vp-c-brand-2: var(--vp-c-green-2); | ||
--vp-c-brand-3: var(--vp-c-green-3); | ||
--vp-c-brand-soft: var(--vp-c-green-soft); | ||
} | ||
/*:root {*/ | ||
/* --vp-c-brand-1: var(--vp-c-green-1);*/ | ||
/* --vp-c-brand-2: var(--vp-c-green-2);*/ | ||
/* --vp-c-brand-3: var(--vp-c-green-3);*/ | ||
/* --vp-c-brand-soft: var(--vp-c-green-soft);*/ | ||
/*}*/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
There are dozens of times options in PDF.js, and they all belong to four kinds for now. You may wonder why there are so many options, and what they mean at the first time. This document will help you to understand them. | ||
|
||
Let's crack on them one by one! | ||
|
||
### [Option Kinds](https://github.com/mozilla/pdf.js/blob/34506f8874ce86ea21b9db54d0552947208bf4bb/web/app_options.js#L43) | ||
|
||
- VIEWER | ||
- API | ||
- WORKER | ||
- PREFERENCE | ||
|
||
### Important options | ||
|
||
- `defaultUrl` | ||
- `locale` | ||
- `workerSrc` | ||
- `sandboxBundleSrc` | ||
|
||
#### defaultUrl | ||
|
||
- Type `URL | string | Uint8Array` | ||
|
||
The url of the PDF file. If you got [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issue when loading a PDF file from a different origin, see details at [origin match error](../pitfalls#origin-not-match) section in common pitfalls page . | ||
|
||
#### locale | ||
|
||
- Type `string` | ||
- Default `en-US` | ||
|
||
The locale of the viewer, it easy to switch a different locale by setting this option. See all supported locales in folder [l10n](https://github.com/mozilla/pdf.js/tree/master/l10n). |
2 changes: 0 additions & 2 deletions
2
docs/learned-knowledge/application.md → docs/learned-knowledge/parts/application.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
# PDFViewerApplication | ||
|
||
The global `PDFViewerApplication` object is the entry of the default viewer of PDF.js, it glues all the modules | ||
together, and provides the API for the user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#### `documentinit` |