Skip to content

Commit 6a4789f

Browse files
committed
Version 2.4.0
## Version 2.4.0 - August 25, 2025 - Improved: Updated PDF.js library to 5.4.54 for stability and performance.
1 parent be00864 commit 6a4789f

Some content is hidden

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

47 files changed

+7742
-2072
lines changed

APIDocs.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
* [Parameters](#parameters-6)
4545
* [rotateAllPages](#rotateallpages)
4646
* [Parameters](#parameters-7)
47+
* [rotatePages](#rotatepages)
48+
* [Parameters](#parameters-8)
4749
* [toggleFullScreen](#togglefullscreen)
4850
* [PdfJs](#pdfjs)
4951
* [TypedArray](#typedarray)
@@ -507,6 +509,14 @@ Rotates all pages by delta degree.
507509

508510
* `delta` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** The degree to add to the rotation.
509511

512+
### rotatePages
513+
514+
Rotates all pages or current page according to current rotation mode, by delta degree.
515+
516+
#### Parameters
517+
518+
* `delta` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** The degree to add to the rotation.
519+
510520
### toggleFullScreen
511521

512522
Toggles full screen mode.

dist/docs/index.html

Lines changed: 71 additions & 2 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.2.3 | Documentation</title>
5+
<title>pdfjskit 2.4.0 | 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.2.3</code></div>
19+
<div class='mb1'><code>2.4.0</code></div>
2020
<input
2121
placeholder='Filter'
2222
id='filter-input'
@@ -210,6 +210,12 @@ <h3 class='mb0 no-anchor'>pdfjskit</h3>
210210
#rotateAllPages
211211
</a></li>
212212

213+
<li><a
214+
href='#pdfviewerrotatepages'
215+
class='regular pre-open'>
216+
#rotatePages
217+
</a></li>
218+
213219
<li><a
214220
href='#pdfviewertogglefullscreen'
215221
class='regular pre-open'>
@@ -3124,6 +3130,69 @@ <h3 class='fl m0' id='pdfviewer'>
31243130

31253131

31263132

3133+
</section>
3134+
3135+
</div>
3136+
</div>
3137+
3138+
<div class='border-bottom' id='pdfviewerrotatepages'>
3139+
<div class="clearfix small pointer toggle-sibling">
3140+
<div class="py1 contain">
3141+
<a class='icon pin-right py1 dark-link caret-right'></a>
3142+
<span class='code strong strong truncate'>rotatePages(delta)</span>
3143+
</div>
3144+
</div>
3145+
<div class="clearfix display-none toggle-target">
3146+
<section class='p2 mb2 clearfix bg-white minishadow'>
3147+
3148+
3149+
3150+
<p>Rotates all pages or current page according to current rotation mode, by delta degree.</p>
3151+
3152+
<div class='pre p1 fill-light mt0'>rotatePages(delta: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a>)</div>
3153+
3154+
3155+
3156+
3157+
3158+
3159+
3160+
3161+
3162+
3163+
3164+
<div class='py1 quiet mt1 prose-big'>Parameters</div>
3165+
<div class='prose'>
3166+
3167+
<div class='space-bottom0'>
3168+
<div>
3169+
<span class='code bold'>delta</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a>)</code>
3170+
The degree to add to the rotation.
3171+
3172+
</div>
3173+
3174+
</div>
3175+
3176+
</div>
3177+
3178+
3179+
3180+
3181+
3182+
3183+
3184+
3185+
3186+
3187+
3188+
3189+
3190+
3191+
3192+
3193+
3194+
3195+
31273196
</section>
31283197

31293198
</div>

0 commit comments

Comments
 (0)