pdfmake-rtl 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -15
- package/README.md +13 -19
- package/build/pdfmake.min.js +2 -2
- package/build/vfs_fonts.js +11 -11
- package/package.json +1 -1
- package/src/browser-extensions/index.js +61 -61
- package/src/printer.js +370 -370
- package/js/3rd-party/svg-to-pdfkit/source.js +0 -3823
- package/js/3rd-party/svg-to-pdfkit.js +0 -7
- package/js/OutputDocument.js +0 -64
- package/js/OutputDocumentServer.js +0 -29
- package/js/PDFDocument.js +0 -144
- package/js/PageSize.js +0 -74
- package/js/Renderer.js +0 -417
- package/js/TextBreaker.js +0 -166
- package/js/TextInlines.js +0 -244
- package/js/URLResolver.js +0 -43
- package/js/base.js +0 -59
- package/js/browser-extensions/OutputDocumentBrowser.js +0 -82
- package/js/browser-extensions/fonts/Cairo.js +0 -38
- package/js/browser-extensions/fonts/Roboto.js +0 -38
- package/js/browser-extensions/index.js +0 -59
- package/js/browser-extensions/pdfMake.js +0 -3
- package/js/browser-extensions/standard-fonts/Courier.js +0 -38
- package/js/browser-extensions/standard-fonts/Helvetica.js +0 -38
- package/js/browser-extensions/standard-fonts/Symbol.js +0 -23
- package/js/browser-extensions/standard-fonts/Times.js +0 -38
- package/js/browser-extensions/standard-fonts/ZapfDingbats.js +0 -23
- package/js/browser-extensions/virtual-fs-cjs.js +0 -3
- package/js/columnCalculator.js +0 -148
- package/js/docMeasure.js +0 -713
- package/js/docPreprocessor.js +0 -275
- package/js/documentContext.js +0 -310
- package/js/elementWriter.js +0 -687
- package/js/helpers/node.js +0 -123
- package/js/helpers/tools.js +0 -46
- package/js/helpers/variableType.js +0 -59
- package/js/index.js +0 -15
- package/js/layoutBuilder.js +0 -1227
- package/js/line.js +0 -113
- package/js/pageElementWriter.js +0 -161
- package/js/printer.js +0 -351
- package/js/qrEnc.js +0 -721
- package/js/rtlUtils.js +0 -516
- package/js/standardPageSizes.js +0 -56
- package/js/styleContextStack.js +0 -191
- package/js/svgMeasure.js +0 -92
- package/js/tableLayouts.js +0 -98
- package/js/tableProcessor.js +0 -562
- package/js/textDecorator.js +0 -152
- package/js/virtual-fs.js +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [2.
|
|
8
|
+
## [2.1.0] - 2026-02-08
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
@@ -29,20 +29,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
29
29
|
|
|
30
30
|
- Major version bump; review migration guide for upgrading from v1.x
|
|
31
31
|
|
|
32
|
-
### Added
|
|
33
|
-
|
|
34
|
-
- Major version upgrade with significant architectural improvements
|
|
35
|
-
- Full rewrite of RTL processing pipeline for better performance and reliability
|
|
36
|
-
|
|
37
|
-
### Improved
|
|
38
|
-
|
|
39
|
-
- Overall RTL text rendering quality and consistency
|
|
40
|
-
- Performance optimizations for large documents with mixed LTR/RTL content
|
|
41
|
-
|
|
42
|
-
### Breaking Changes
|
|
43
|
-
|
|
44
|
-
- Major version bump; review migration guide for upgrading from v1.x
|
|
45
|
-
|
|
46
32
|
## [1.3.6] - 2025-08-08
|
|
47
33
|
|
|
48
34
|
### Added
|
package/README.md
CHANGED
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
|
|
17
17
|
All existing PDFMake code works unchanged, with automatic RTL support added!
|
|
18
18
|
|
|
19
|
+
> **⚠️ Important:** This package has moved to a new npm scope. Please use [`pdfmake-rtl`](https://www.npmjs.com/package/pdfmake-rtl) going forward.
|
|
20
|
+
>
|
|
21
|
+
> ```bash
|
|
22
|
+
> npm install pdfmake-rtl
|
|
23
|
+
> ```
|
|
24
|
+
|
|
19
25
|
## 🚀 Key Features
|
|
20
26
|
|
|
21
27
|
- ✅ **Automatic RTL Detection** - No need to set `rtl` flags
|
|
@@ -35,6 +41,10 @@ PDF document generation library for server-side and client-side in pure JavaScri
|
|
|
35
41
|
|
|
36
42
|
Check out [the playground](http://aysnet1.github.io/pdfmake-rtl/playground.html) and [examples](https://github.com/aysnet1/pdfmake-rtl/tree/master/examples).
|
|
37
43
|
|
|
44
|
+
## documentation
|
|
45
|
+
|
|
46
|
+
For comprehensive guides, API references, and usage examples, visit the official documentation at [pdfmake.github.io/docs](https://pdfmake.github.io/docs/).
|
|
47
|
+
|
|
38
48
|
### Features
|
|
39
49
|
|
|
40
50
|
#### 🔤 RTL Language Support
|
|
@@ -94,12 +104,12 @@ npm install pdfmake-rtl
|
|
|
94
104
|
<!-- Load pdfmake-rtl + fonts -->
|
|
95
105
|
<script src="https://unpkg.com/pdfmake-rtl/build/pdfmake.min.js"></script>
|
|
96
106
|
<script src="https://unpkg.com/pdfmake-rtl/build/vfs_fonts.js"></script>
|
|
97
|
-
<script src="https://unpkg.com/pdfmake-rtl/build/fonts/Cairo.js"></script>
|
|
107
|
+
<!-- <script src="https://unpkg.com/pdfmake-rtl/build/fonts/Cairo.js"></script> -->
|
|
98
108
|
|
|
99
109
|
<script>
|
|
100
110
|
var dd = {
|
|
101
111
|
rtl: true,
|
|
102
|
-
// If Cairo font isn't applied automatically, set `rtl: true` to force RTL mode or add defaultStyle
|
|
112
|
+
// If Cairo font isn't applied automatically, set `rtl: true` to force RTL mode or add defaultStyle:{font:'Cairo'}
|
|
103
113
|
content: [
|
|
104
114
|
// RTL paragraph — auto-detected, no configuration needed
|
|
105
115
|
{ text: "مرحباً بكم في مكتبة pdfmake-rtl", fontSize: 20, bold: true },
|
|
@@ -111,6 +121,7 @@ npm install pdfmake-rtl
|
|
|
111
121
|
// RTL table — columns auto-reverse for Arabic content
|
|
112
122
|
{
|
|
113
123
|
table: {
|
|
124
|
+
// rtl:true
|
|
114
125
|
widths: ["*", "*", "*"],
|
|
115
126
|
body: [
|
|
116
127
|
[
|
|
@@ -233,20 +244,3 @@ MIT
|
|
|
233
244
|
pdfmake is based on a truly amazing library [pdfkit](https://github.com/devongovett/pdfkit) (credits to [@devongovett](https://github.com/devongovett)).
|
|
234
245
|
|
|
235
246
|
Thanks to all contributors.
|
|
236
|
-
|
|
237
|
-
## License
|
|
238
|
-
|
|
239
|
-
MIT
|
|
240
|
-
|
|
241
|
-
## Authors pdfmake-rtl
|
|
242
|
-
|
|
243
|
-
- [@aysnet1](https://github.com/aysnet1)
|
|
244
|
-
|
|
245
|
-
## Authors pdfmake
|
|
246
|
-
|
|
247
|
-
- [@bpampuch](https://github.com/bpampuch) (founder)
|
|
248
|
-
- [@liborm85](https://github.com/liborm85)
|
|
249
|
-
|
|
250
|
-
pdfmake is based on a truly amazing library [pdfkit](https://github.com/devongovett/pdfkit) (credits to [@devongovett](https://github.com/devongovett)).
|
|
251
|
-
|
|
252
|
-
Thanks to all contributors.
|