13 Commits

Author SHA1 Message Date
Luiz Américo Pereira Câmara
a76ab284a8 Apply prettier formatting 2025-04-12 12:57:31 -03:00
Jake Holland
033ba3426b
Add support for tables (#1577)
* Add page size utilities

- Added page.contentWidth
- Added page.contentHeight

* Add table support

- Tables support cell customization (including colors)
- Tables also support rotatable text (with alignment support)
- Tables have accessibility support

* chore: fix code generation context

- code generation now respects the current document positioning to allow use of page dependent operations

* chore: remove comments from build

* removed unnecessary config optimisations

* Optimize table minification

* Performance improvements to tables

* Improve font handling in tables
2025-02-24 07:49:25 -03:00
Jake Holland
ee7208b4ea
Fix page cascade options when text overflows (#1597) 2025-02-05 07:49:58 -03:00
Jake Holland
36549b3946
Add support for dynamic sizing (#1576)
* Add support for dynamic sizing

- Enable defining sizes using any units (defaulting to Points)
- This also allows us to define sizes based on the current font context i.e. em's
- The new public `sizeToPoint` method allows users to also interact with these sizes to generate the correct point sizes

* Optimise side normalization

* Added test case for one margin being undefined
2025-01-12 18:17:13 -03:00
Adrian Rollett
8b20d0742a
Fix sets tab order to "Structure" when a document is tagged #1260 (#1449)
* Set tab order when document is tagged

* Update approach and add inverse test

* Revert page dictionary setup

* Update lib/mixins/markings.js

* Update kitchen-sink-accessible.pdf

* Update CHANGELOG.md

---------

Co-authored-by: Libor M. <liborm85@gmail.com>
2024-12-26 14:35:14 +01:00
Libor M.
3ccf3b8d90 Add support for spot colors #756 2024-12-26 13:11:07 +01:00
Jernej Logar
4c5e73a06c
Tiling pattern support (#526) (#1311)
* tiling pattern support (foliojs#526)

based on strokovnjaka/pdfkit@b85dd55622

Co-authored-by: Jernej Logar <jernej.logar@plandela.si>
2021-10-24 07:50:52 -03:00
Ben Schmidt
bc09c32d1b Support marked structure content and logical structure. 2021-01-15 16:43:49 -03:00
Ben Schmidt
ef5e52b2ad Support marking content. 2021-01-15 16:43:49 -03:00
Libor M
a2abfb4765 ES6 syntax for default values 2019-03-24 13:51:47 +01:00
Luiz Américo
a6af76467c Add prettier npm script and run it in *.js files 2019-01-07 20:51:06 -03:00
Luiz Américo
52c3b45e2e Use property getter to define PDFPage lazy dictionaries 2018-12-21 20:50:22 -03:00
Luiz Américo
83f5f72431 Convert to EcmaScript (ES6+) (#859) 2018-11-29 08:14:45 -08:00