pdfmake-acroforms 0.3.4
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 +60 -0
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/build/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/build/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/build/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/build/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/build/fonts/Roboto.js +27 -0
- package/build/pdfmake.js +67806 -0
- package/build/pdfmake.js.map +1 -0
- package/build/pdfmake.min.js +3 -0
- package/build/pdfmake.min.js.map +1 -0
- package/build/standard-fonts/Courier.js +27 -0
- package/build/standard-fonts/Helvetica.js +27 -0
- package/build/standard-fonts/Symbol.js +21 -0
- package/build/standard-fonts/Times.js +27 -0
- package/build/standard-fonts/ZapfDingbats.js +21 -0
- package/build/vfs_fonts.js +6 -0
- package/build-vfs.js +44 -0
- package/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/fonts/Roboto.js +8 -0
- package/js/3rd-party/svg-to-pdfkit/source.js +3823 -0
- package/js/3rd-party/svg-to-pdfkit.js +7 -0
- package/js/DocMeasure.js +675 -0
- package/js/DocPreprocessor.js +258 -0
- package/js/DocumentContext.js +310 -0
- package/js/ElementWriter.js +399 -0
- package/js/LayoutBuilder.js +1202 -0
- package/js/Line.js +101 -0
- package/js/OutputDocument.js +64 -0
- package/js/OutputDocumentServer.js +29 -0
- package/js/PDFDocument.js +145 -0
- package/js/PageElementWriter.js +164 -0
- package/js/PageSize.js +74 -0
- package/js/Printer.js +288 -0
- package/js/Renderer.js +513 -0
- package/js/SVGMeasure.js +92 -0
- package/js/StyleContextStack.js +191 -0
- package/js/TableProcessor.js +562 -0
- package/js/TextBreaker.js +179 -0
- package/js/TextDecorator.js +152 -0
- package/js/TextInlines.js +212 -0
- package/js/URLResolver.js +43 -0
- package/js/base.js +59 -0
- package/js/browser-extensions/OutputDocumentBrowser.js +82 -0
- package/js/browser-extensions/fonts/Roboto.js +38 -0
- package/js/browser-extensions/index.js +53 -0
- package/js/browser-extensions/pdfMake.js +3 -0
- package/js/browser-extensions/standard-fonts/Courier.js +38 -0
- package/js/browser-extensions/standard-fonts/Helvetica.js +38 -0
- package/js/browser-extensions/standard-fonts/Symbol.js +23 -0
- package/js/browser-extensions/standard-fonts/Times.js +38 -0
- package/js/browser-extensions/standard-fonts/ZapfDingbats.js +23 -0
- package/js/browser-extensions/virtual-fs-cjs.js +3 -0
- package/js/columnCalculator.js +148 -0
- package/js/helpers/node.js +122 -0
- package/js/helpers/tools.js +46 -0
- package/js/helpers/variableType.js +59 -0
- package/js/index.js +15 -0
- package/js/qrEnc.js +721 -0
- package/js/standardPageSizes.js +56 -0
- package/js/tableLayouts.js +98 -0
- package/js/virtual-fs.js +60 -0
- package/package.json +94 -0
- package/src/3rd-party/svg-to-pdfkit/LICENSE +9 -0
- package/src/3rd-party/svg-to-pdfkit/source.js +2745 -0
- package/src/3rd-party/svg-to-pdfkit.js +3 -0
- package/src/DocMeasure.js +768 -0
- package/src/DocPreprocessor.js +289 -0
- package/src/DocumentContext.js +345 -0
- package/src/ElementWriter.js +468 -0
- package/src/LayoutBuilder.js +1366 -0
- package/src/Line.js +108 -0
- package/src/OutputDocument.js +64 -0
- package/src/OutputDocumentServer.js +32 -0
- package/src/PDFDocument.js +178 -0
- package/src/PageElementWriter.js +191 -0
- package/src/PageSize.js +53 -0
- package/src/Printer.js +306 -0
- package/src/Renderer.js +546 -0
- package/src/SVGMeasure.js +109 -0
- package/src/StyleContextStack.js +208 -0
- package/src/TableProcessor.js +620 -0
- package/src/TextBreaker.js +181 -0
- package/src/TextDecorator.js +175 -0
- package/src/TextInlines.js +229 -0
- package/src/URLResolver.js +43 -0
- package/src/base.js +70 -0
- package/src/browser-extensions/OutputDocumentBrowser.js +80 -0
- package/src/browser-extensions/fonts/Roboto.js +27 -0
- package/src/browser-extensions/index.js +55 -0
- package/src/browser-extensions/pdfMake.js +1 -0
- package/src/browser-extensions/standard-fonts/Courier.js +27 -0
- package/src/browser-extensions/standard-fonts/Helvetica.js +27 -0
- package/src/browser-extensions/standard-fonts/Symbol.js +21 -0
- package/src/browser-extensions/standard-fonts/Times.js +27 -0
- package/src/browser-extensions/standard-fonts/ZapfDingbats.js +21 -0
- package/src/browser-extensions/virtual-fs-cjs.js +1 -0
- package/src/columnCalculator.js +154 -0
- package/src/helpers/node.js +134 -0
- package/src/helpers/tools.js +44 -0
- package/src/helpers/variableType.js +50 -0
- package/src/index.js +16 -0
- package/src/qrEnc.js +796 -0
- package/src/standardPageSizes.js +52 -0
- package/src/tableLayouts.js +100 -0
- package/src/virtual-fs.js +66 -0
- package/standard-fonts/Courier.js +8 -0
- package/standard-fonts/Helvetica.js +8 -0
- package/standard-fonts/Symbol.js +5 -0
- package/standard-fonts/Times.js +8 -0
- package/standard-fonts/ZapfDingbats.js +5 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
- Added outlines / bookmarks for `text` node
|
|
6
|
+
- `outline` - set to `true` for add to bookmarks
|
|
7
|
+
- `outlineText` (optional) - set custom bookmark text, otherwise text from node
|
|
8
|
+
- `outlineExpanded` (optional) - set to `true` for expanded/opened bookmark
|
|
9
|
+
- `outlineParentId` (optional) - parent bookmark `id`
|
|
10
|
+
- Added property `outlines` for ToC, which adds all items to outlines / bookmarks (any existing outline settings on texts are respected)
|
|
11
|
+
|
|
12
|
+
## 0.3.4 - 2026-02-13
|
|
13
|
+
|
|
14
|
+
- Added vertical alignment for table cells via `verticalAlignment` property, values: `top` (default), `middle`, `bottom`
|
|
15
|
+
- Fixed margin inheritance when styles are extended multiple times
|
|
16
|
+
|
|
17
|
+
## 0.3.3 - 2026-01-18
|
|
18
|
+
|
|
19
|
+
- Added properties for ToC:
|
|
20
|
+
- `hideEmpty` - set to `true` if you can hide an empty ToC
|
|
21
|
+
- `sortBy` - `'page'` (default) or `'title'`
|
|
22
|
+
- `sortLocale` - custom locale to sort by property `sortBy`
|
|
23
|
+
- Added property `decorationThickness` for `text` to set width of the decoration line
|
|
24
|
+
- Added inherited/extends styles, use property `extends` in style with style name or array of string with style names
|
|
25
|
+
- Fixed margin override with 0 value
|
|
26
|
+
- Fixed margin override from multiple styles
|
|
27
|
+
- Fixed text decoration for superscript and subscript
|
|
28
|
+
- Fixed svg-to-pdfkit - TypeError: t.classList.contains is not a function
|
|
29
|
+
|
|
30
|
+
## 0.3.2 - 2026-01-11
|
|
31
|
+
|
|
32
|
+
- Fixed non-working `open()` and `print()` methods in browser
|
|
33
|
+
- Added SVG validation: width and height must be specified (in SVG string/element or `svg` node)
|
|
34
|
+
- Added support for image scaling with only `height` defined
|
|
35
|
+
- Added custom `markerColor` for each item of `ul` and `ol`
|
|
36
|
+
|
|
37
|
+
## 0.3.1 - 2026-01-07
|
|
38
|
+
|
|
39
|
+
- Added auto page height for multiple pages (for `section` or after custom page break)
|
|
40
|
+
- Added type validation for parameters in method `createPdf`
|
|
41
|
+
- Added support `SVGElement` object for `svg` node (`SVGElement` object is available only in browser)
|
|
42
|
+
- Updated svg-to-pdfkit library to the latest GitHub master commit
|
|
43
|
+
- Fixed a bug in the write method where it did not wait for the file write operation to complete
|
|
44
|
+
- Fixed SVG loading
|
|
45
|
+
- Fixed rendering SVG without viewBox
|
|
46
|
+
|
|
47
|
+
## 0.3.0 - 2026-01-01
|
|
48
|
+
|
|
49
|
+
- Reverted to the original `pdfkit` package, moving away from `@foliojs-fork`
|
|
50
|
+
- Drop support Internet Explorer 11 (Microsoft will not support from 2022)
|
|
51
|
+
- Minimal supported version Node.js 20 LTS
|
|
52
|
+
- Port code base to ES6+
|
|
53
|
+
- Unify interface for node and browser **(breaking change)**
|
|
54
|
+
- All methods return promise instead of using callback **(breaking change)**
|
|
55
|
+
- Change including virtual font storage in client-side **(breaking change)**
|
|
56
|
+
- Change parameters of `pageBreakBefore` function **(breaking change)**
|
|
57
|
+
- Support for loading font files and images via URL addresses (https:// or http:// protocol) in Node.js (client and server side now)
|
|
58
|
+
- Used fetch API for downloading fonts and images
|
|
59
|
+
- Attachments embedding
|
|
60
|
+
- Added `section` node
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2015 bpampuch
|
|
4
|
+
2016-2026 liborm85
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
7
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
8
|
+
the Software without restriction, including without limitation the rights to
|
|
9
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
10
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
11
|
+
subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
18
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
19
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
20
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
21
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# pdfmake [![Node.js CI][githubactions_img]][githubactions_url] [![GitHub][github_img]][github_url] [![npm][npm_img]][npm_url]
|
|
2
|
+
|
|
3
|
+
[githubactions_img]: https://github.com/bpampuch/pdfmake/actions/workflows/node.js.yml/badge.svg?branch=master
|
|
4
|
+
[githubactions_url]: https://github.com/bpampuch/pdfmake/actions
|
|
5
|
+
|
|
6
|
+
[github_img]: https://img.shields.io/github/release/bpampuch/pdfmake.svg?colorB=0E7FBF
|
|
7
|
+
[github_url]: https://github.com/bpampuch/pdfmake/releases/latest
|
|
8
|
+
|
|
9
|
+
[npm_img]: https://img.shields.io/npm/v/pdfmake.svg?colorB=0E7FBF
|
|
10
|
+
[npm_url]: https://www.npmjs.com/package/pdfmake
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
PDF document generation library for server-side and client-side in pure JavaScript.
|
|
14
|
+
|
|
15
|
+
Check out [the playground](http://bpampuch.github.io/pdfmake/playground.html) and [examples](https://github.com/bpampuch/pdfmake/tree/master/examples).
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* line-wrapping,
|
|
20
|
+
* text-alignments (left, right, centered, justified),
|
|
21
|
+
* numbered and bulleted lists,
|
|
22
|
+
* tables and columns
|
|
23
|
+
* auto/fixed/star-sized widths,
|
|
24
|
+
* col-spans and row-spans,
|
|
25
|
+
* headers automatically repeated in case of a page-break,
|
|
26
|
+
* images and vector graphics,
|
|
27
|
+
* convenient styling and style inheritance,
|
|
28
|
+
* page headers and footers:
|
|
29
|
+
* static or dynamic content,
|
|
30
|
+
* access to current page number and page count,
|
|
31
|
+
* background-layer,
|
|
32
|
+
* page dimensions and orientations,
|
|
33
|
+
* margins,
|
|
34
|
+
* document sections,
|
|
35
|
+
* custom page breaks,
|
|
36
|
+
* font embedding,
|
|
37
|
+
* support for complex, multi-level (nested) structures,
|
|
38
|
+
* table of contents,
|
|
39
|
+
* helper methods for opening/printing/downloading the generated PDF,
|
|
40
|
+
* setting of PDF metadata (e.g. author, subject).
|
|
41
|
+
|
|
42
|
+
## Documentation
|
|
43
|
+
|
|
44
|
+
**Documentation URL: https://pdfmake.github.io/docs/**
|
|
45
|
+
|
|
46
|
+
Source of documentation: https://github.com/pdfmake/docs **Improvements are welcome!**
|
|
47
|
+
|
|
48
|
+
## Building from sources
|
|
49
|
+
|
|
50
|
+
using npm:
|
|
51
|
+
```
|
|
52
|
+
git clone https://github.com/bpampuch/pdfmake.git
|
|
53
|
+
cd pdfmake
|
|
54
|
+
npm install
|
|
55
|
+
npm run build
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
using yarn:
|
|
59
|
+
```
|
|
60
|
+
git clone https://github.com/bpampuch/pdfmake.git
|
|
61
|
+
cd pdfmake
|
|
62
|
+
yarn
|
|
63
|
+
yarn run build
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
MIT
|
|
68
|
+
|
|
69
|
+
## Authors
|
|
70
|
+
* [@bpampuch](https://github.com/bpampuch) (founder)
|
|
71
|
+
* [@liborm85](https://github.com/liborm85)
|
|
72
|
+
|
|
73
|
+
pdfmake is based on a truly amazing library [pdfkit](https://github.com/devongovett/pdfkit) (credits to [@devongovett](https://github.com/devongovett)).
|
|
74
|
+
|
|
75
|
+
Thanks to all contributors.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|