792 Commits

Author SHA1 Message Date
Libor M.
bbe4ab9305 Add Name property for set custom icon for note() #1319 2024-12-28 16:00:38 +01:00
Libor M.
cf5a77469f Fix for embedding fonts into PDF (font name must not contain spaces) #1314 2024-12-28 14:05:02 +01:00
Libor M.
704a005ac2 Fix font cache collision identical metadata for different fonts #1330 2024-12-28 13:34:00 +01:00
Kevin Hendel
1b678c3e3d
Indent after linebreak (#879)
* add indentAllLines option to indent all lines of a paragraph instead of only the first one

* update comments

* Update CHANGELOG.md

---------

Co-authored-by: Libor M. <liborm85@gmail.com>
2024-12-27 15:52:48 +01:00
Libor M.
133a321a56 Add support to scale text horizontally
inspired by #445
2024-12-27 15:34:22 +01:00
Libor M.
42172c5102 Fix font cache collision for fonts with missing postscript name or bad TTF metadata #1384 #691 2024-12-27 12:07:52 +01: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.
baeff0fa85
Update color.spec.js 2024-12-26 14:28:38 +01:00
Libor M.
6cb610cce3 fix lint issue 2024-12-26 13:12:45 +01:00
Libor M.
3ccf3b8d90 Add support for spot colors #756 2024-12-26 13:11:07 +01:00
Benjamin Bloomfield
eecfb4c97a
Fix measuring text when OpenType features are passed in to .text() (#1492)
* Update text.js

to fix measuring text when opentype features are passed in to .text()

* added simple test

* Update CHANGELOG.md

---------

Co-authored-by: Libor M. <liborm85@gmail.com>
2024-12-25 07:45:56 +01:00
Libor M.
7527b7abb6 Upgrade dev dependencies + added nodejs 22 LTS 2024-12-24 12:12:41 +01:00
Libor M.
93c6af7aa8 fix magick deprecation 2024-12-24 12:09:43 +01:00
Devon Govett
f238d1b107
Bump fontkit and linebreak deps (#1367)
* Bump fontkit and linebreak deps

* Bump fontkit to 2.0.0

* Bump

* Drop old node versions

* Bump testing dependencies

* Update pdfjs

* fix jest to compatibility with restructure, update fontkit, refresh snapshots

* Update CHANGELOG.md

---------

Co-authored-by: Libor M. <liborm85@gmail.com>
2024-12-16 08:36:25 +01:00
Libor M.
76caaa6614 improved test for cidset 2024-12-15 16:45:21 +01:00
Libor M.
7dcb4ba71a remove whitespaces 2024-12-15 16:39:22 +01:00
Libor M.
d637d2a616 v0.15.2 v0.15.2 2024-12-15 13:59:42 +01:00
Libor M.
1edc9bd4f5 refresh examples pdf files 2024-12-15 13:57:59 +01:00
Libor M.
bcc64c2f3b Fix modify time comparison check equality embedded files 2024-12-15 13:55:19 +01:00
Libor M.
429704086b
Update CHANGELOG.md 2024-12-14 14:30:47 +01:00
Artem Shibakov
24b4947226
fix missing acroform font identification (#1465)
undefined !== null but undefined == null
2024-12-14 14:29:25 +01:00
Libor M.
75a8dbc0aa Fix CIDSet generation only for PDF/A1 subset #1561 2024-12-14 14:06:24 +01:00
Libor M.
8f9700753b
Update CHANGELOG.md 2024-12-14 12:53:42 +01:00
Florian Bischoff
bc59dd21e3
fix: pdf/a compliance of attachments (#1562)
* fix: pdf/a compliance of attachments

* fixed tests

* update docs

---------

Co-authored-by: Libor M. <liborm85@gmail.com>
2024-12-14 12:52:21 +01:00
David
ffbbee597a
#1517 Fix ordered lists (#1568)
* adds test cases for ordered lists

* fixes broken labels for ordered lists (#1517)

* adds test for sub-lists (ordered and unordered)

* update changelog for fix of #1517

---------

Co-authored-by: David <filecage@users.noreply.github.com>
2024-12-14 10:13:02 +01:00
Libor M.
4bad866564 Revert "nodejs 22.x LTS"
This reverts commit f3b28eab09cb6578f6d852b247aeebf39ea59c89.
2024-11-06 15:23:50 +01:00
Libor M.
f3b28eab09
nodejs 22.x LTS 2024-11-06 12:36:44 +01:00
Libor M.
3a6977e813 fixed render diff if unit test failed 2024-11-02 08:14:43 +01:00
Libor M.
2554c088ca v0.15.1 v0.15.1 2024-10-30 14:31:55 +01:00
Libor M.
22b826dc81
Merge pull request #1411 from chooblarin/doc-fix
Fix doc about creation of pdf document
2024-10-30 13:41:16 +01:00
Libor M.
5223809602
Update CHANGELOG.md 2024-10-30 09:24:08 +01:00
Libor M.
831179e067 Fix browserify transform sRGB_IEC61966_2_1.icc file 2024-08-20 18:25:49 +02:00
Noah
f2e9b168e0
Bugfix: File Cache Equality Check Incorrectly Compares Dates (#1544)
* refactors to correctly check if dates are equal

* Update attachments.js

* fixes lint error

---------

Co-authored-by: utanapishtim <utnapishtim.utanapishtim@gmail.com>
2024-08-13 20:39:57 -03:00
Libor M.
9e5dfcdc0a
Merge pull request #1539 from andreiaugustin/patch-1
acroform error message update
2024-07-16 17:56:59 +02:00
Andrei Augustin
76cdedd967
Update acroform.js
Updated error text document.initForms() to document.initForm() as correct method name is initForm()
2024-07-16 17:36:34 +03:00
Luiz Américo
b35c6f9179
Merge pull request #1511 from jimbob88/master
Update webpack complete example link
2024-04-01 13:04:57 -03:00
James Blackburn
4d6ffc70ee Update webpack complete example link 2024-04-01 16:40:02 +01:00
Luiz Américo
5635f8a021
Merge pull request #1507 from blikblum/master
Update webpack example dependencies
2024-03-23 23:25:19 -03:00
Luiz Américo Pereira Câmara
55f0bb3471 Update webpack example dependencies 2024-03-23 23:24:09 -03:00
Luiz Américo Pereira Câmara
d19261db23 v0.15.0 v0.15.0 2024-03-23 22:22:03 -03:00
Luiz Américo Pereira Câmara
7ec82e1afc Upgrade dependencies 2024-03-23 22:22:03 -03:00
Luiz Américo Pereira Câmara
a9d8ecd3eb Remove browser field from package.json (compatibility with browserify) 2024-03-23 22:22:03 -03:00
Luiz Américo Pereira Câmara
582fc225d1 Drop support for Node.js < 18 and for browsers released before 2020 2024-03-23 22:22:03 -03:00
Luiz Américo Pereira Câmara
309cdd6216 Move icc profile file to mixins data subfolder 2024-03-23 22:22:03 -03:00
Luiz Américo Pereira Câmara
d487253fcc Remove deprecated method write 2024-03-23 22:22:03 -03:00
Luiz Américo Pereira Câmara
0f899806af Import PDFDocument from root in kitchen sink example 2024-03-23 22:22:03 -03:00
Yeechan Lu
946f9cf6dc
Generate ToUnicodeMap bfrange in multiple ranges (#1498) (#1499)
* Generate ToUnicodeMap bfrange in multiple ranges (#1498)

This resolves #1498.

* Add unit test for bfrange lines in toUnicodeMap

* Add changelog line
2024-02-26 10:18:47 -03:00
Rico Brase
485b7e6bee
Fix Acroforms - setting an option to false will still apply the flag (#1496)
* Add an option check to acroform mixin _resolveFlags().

This resolves #1495.

* Reworked fix to remove flags from options, if they are falsey.

* Added unit test for ignoring false flags in acroforms

* Added entry for removing false flags in changelog.
2024-02-07 20:28:58 -03:00
Olli Etuaho
a655194de2
Prevent adding identity transforms to the document (#1493)
This makes the resulting PDF files smaller. It's cumbersome to filter out all commands that could result in identity transforms in code that's using PDFKit, so it makes sense to have the check in the transform() function.
2024-01-23 13:36:54 -03:00
Rudolf Biczok
1f70b450a2
Replace soft hyphen with visible hyphen if line break demands it (#1488)
* Replace soft hyphen with visible hyphen if line break demands it

* Add changelog entry for #457

* Add soft hyphen support in readme
2024-01-02 08:00:59 -03:00