Skip to content

Commit 0aa970b

Browse files
committed
Version 2.4.8
## Version 2.4.8 - **Improved:** Updated PDF.js library to 5.4.149 for stability and performance. - **Improved:** Created toggle-able sub-menus for scrollMode and spreadMode buttons to reduce crowdedness of the vertical toolbar. - **Improved:** Default value for `options.language` will now be `navigator.language || "en-US"`. So if this option is not set, it will try to use the browser's current language. - **Improved:** Stability of some page events (new `PageUtil` class).
1 parent f3d1cfc commit 0aa970b

125 files changed

Lines changed: 5935 additions & 4672 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

APIDocs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Renders PDF.js viewer in an iframe but updates UI theme and structure for a neat
7878
Relative paths will be considered relative to the host page.
7979
If not set, script version (.js) will try to use same directory of the script, module version (.mjs) will use `"pdfjskit"`. (optional, default `"pdfjskit"`)
8080
* `options.language` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The display (user interface) language of the component.
81-
It can be set to the two-letter language names like `"en"`, `"de"`, `"fr"` etc. or to specific languages like `"en-US"`, `"de-DE"`, `"fr-FR"` etc. (optional, default `"en-US"`)
81+
It can be set to the two-letter language names like `"en"`, `"de"`, `"fr"` etc. or to specific languages like `"en-US"`, `"de-DE"`, `"fr-FR"` etc. (optional, default `navigator.language||"en-US"`)
8282
* `options.license` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The license info (JSON) you received when you purchased.
8383
The evaluation version is the same as the purchased one – the trial version simply becomes licensed when you apply the license.
8484
If not set, you will see license reminder every time you load a document. {
@@ -253,6 +253,7 @@ Renders PDF.js viewer in an iframe but updates UI theme and structure for a neat
253253
* `options.permissions.viewAnnotations` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Ability to view annotations of the document. Note that this can also effect displaying of the signatures in the document so be aware when you disable it. (optional, default `true`)
254254
* `options.permissions.editAnnotations` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Ability to edit annotations of the document. Tools like Add Signature, Highlight, Draw, Add Image will be available. If no ViewAnnotations permission, then you can add new annotations but not view and edit existing ones. (optional, default `true`)
255255
* `options.permissions.fillForms` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Ability to fill values into form fields of the document. Requires also ViewAnnotations permission. (optional, default `true`)
256+
* `options.permissions.editComments` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Ability to edit comments of the document. This is disabled by default as it's not stable yet. (optional, default `false`)
256257
* `options.searchOptions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** The text search options of the viewer.If you specify a search term, an automatic search will be done when the document is displayed,
257258
i.e. the specified term will be searched and the term(s) will be highlighted in the pages.
258259
For example, if you launch the viewer from a search results page, you can pass the same search term to the viewer.

dist/docs/index.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset='utf-8'>
5-
<title>pdfjskit 2.4.5 | Documentation</title>
5+
<title>pdfjskit 2.4.8 | Documentation</title>
66
<meta name='description' content='PdfJsKit is a PDF Viewer built on top of PDF.js, with modern UI and new features which supports integration for all JS frameworks.'>
77
<meta name='viewport' content='width=device-width,initial-scale=1'>
88
<link href='assets/bass.css' rel='stylesheet'>
@@ -16,7 +16,7 @@
1616
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
1717
<div class='py1 px2'>
1818
<h3 class='mb0 no-anchor'>pdfjskit</h3>
19-
<div class='mb1'><code>2.4.5</code></div>
19+
<div class='mb1'><code>2.4.8</code></div>
2020
<input
2121
placeholder='Filter'
2222
id='filter-input'
@@ -435,7 +435,7 @@ <h3 class='fl m0' id='pdfviewer'>
435435
<tr>
436436
<td class='break-word'><span class='code bold'>options.language</span> <code class='quiet'><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></code>
437437

438-
(default <code>&quot;en-US&quot;</code>)
438+
(default <code>navigator.language||&quot;en-US&quot;</code>)
439439
</td>
440440
<td class='break-word'><span>The display (user interface) language of the component.
441441
It can be set to the two-letter language names like
@@ -1296,6 +1296,17 @@ <h3 class='fl m0' id='pdfviewer'>
12961296

12971297

12981298

1299+
<tr>
1300+
<td class='break-word'><span class='code bold'>options.permissions.editComments</span> <code class='quiet'><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">Boolean</a></code>
1301+
1302+
(default <code>false</code>)
1303+
</td>
1304+
<td class='break-word'><span>Ability to edit comments of the document. This is disabled by default as it's not stable yet.
1305+
</span></td>
1306+
</tr>
1307+
1308+
1309+
12991310

13001311

13011312

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)