-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
294 changed files
with
117,435 additions
and
58,482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": false, | ||
"targets": { | ||
"node": "18" | ||
} | ||
} | ||
] | ||
], | ||
"env": { | ||
"test": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "18" | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
{ | ||
"extends": "eslint:recommended" | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 11, | ||
"sourceType": "module" | ||
}, | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"tests/**/*.js" | ||
], | ||
"env": { | ||
"jest": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: Bug Report | ||
about: Report runtime errors or wrong PDF output | ||
--- | ||
|
||
# Bug Report | ||
|
||
|
||
## Description of the problem | ||
|
||
|
||
## Code sample | ||
<!-- Post code or a link to a live example (can fork from https://repl.it/@blikblum/minimal-pdfkit) that reproduces the issue --> | ||
|
||
## Your environment | ||
|
||
* pdfkit version: | ||
* Node version: | ||
* Browser version (if applicable): | ||
* Operating System: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
name: Feature Request | ||
about: Request new features | ||
--- | ||
|
||
# Feature Request | ||
|
||
## Feature description | ||
<!-- How the feature should work? --> | ||
|
||
<!-- You have examples or an idea how it can be implemented? --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Question | ||
about: Ask about pdfkit | ||
--- | ||
|
||
# Question | ||
|
||
## Description | ||
|
||
<!--- Provide your question or other information that will help in solving here --> | ||
|
||
## Code sample | ||
<!-- Post code or a link to a live example (can fork from https://repl.it/@blikblum/minimal-pdfkit) --> | ||
## Your environment | ||
|
||
* pdfkit version: | ||
* Node version: | ||
* Browser version (if applicable): | ||
* Operating System: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- | ||
Please make sure you are familiar with and follow the instructions in the | ||
contributing guidelines (found in the CONTRIBUTING.md file). | ||
Please fill out the information below to expedite the review and (hopefully) | ||
merge of your pull request! | ||
--> | ||
|
||
<!-- Is it a Bug fix, feature, docs update, ... --> | ||
<!-- You can also link to an open issue here --> | ||
**What kind of change does this PR introduce?** | ||
|
||
|
||
<!-- Have you done all of these things? --> | ||
**Checklist**: | ||
|
||
<!-- add "N/A" to the end of each line that's irrelevant to your changes --> | ||
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" --> | ||
|
||
- [ ] Unit Tests | ||
- [ ] Documentation | ||
- [ ] Update CHANGELOG.md | ||
- [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? --> | ||
|
||
<!-- feel free to add additional comments --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Lint and Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x, 20.x, 22.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Run ESLint | ||
run: npm run lint | ||
- name: Run tests | ||
run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
demo/bundle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
## pdfkit changelog | ||
|
||
### Unreleased | ||
|
||
- Update fontkit to 2.0 | ||
- Update linebreak to 1.1 | ||
- Add support for spot colors | ||
- Add support to scale text horizontally | ||
- Fix sets tab order to "Structure" when a document is tagged | ||
- Fix font cache collision for fonts with missing postscript name or bad TTF metadata | ||
- Fix measuring text when OpenType features are passed in to .text() | ||
|
||
### [v0.15.2] - 2024-12-15 | ||
|
||
- Fix index not counting when rendering ordered lists (#1517) | ||
- Fix PDF/A3 compliance of attachments | ||
- Fix CIDSet generation only for PDF/A1 subset | ||
- Fix missing acroform font dictionary | ||
- Fix modify time comparison check equality embedded files | ||
|
||
### [v0.15.1] - 2024-10-30 | ||
|
||
- Fix browserify transform sRGB_IEC61966_2_1.icc file | ||
- Fix time comparison check equality embedded files | ||
|
||
### [v0.15.0] - 2024-03-23 | ||
|
||
- Add subset for PDF/UA | ||
- Fix for line breaks in list items (#1486) | ||
- Fix for soft hyphen not being replaced by visible hyphen if necessary (#457) | ||
- Optimize output files by ignoring identity transforms | ||
- Fix for Acroforms - setting an option to false will still apply the flag (#1495) | ||
- Fix for text extraction in PDFium-based viewers due to invalid ToUnicodeMap (#1498) | ||
- Remove deprecated `write` method | ||
- Drop support for Node.js < 18 and for browsers released before 2020 | ||
|
||
### [v0.14.0] - 2023-11-09 | ||
|
||
- Add support for PDF/A-1b, PDF/A-1a, PDF/A-2b, PDF/A-2a, PDF/A-3b, PDF/A-3a | ||
- Update crypto-js to v4.2.0 (properly fix security issue) | ||
|
||
- Add support for EXIF orientation on JPEG images (#626 and #1353) | ||
|
||
### [v0.13.0] - 2021-10-24 | ||
|
||
- Add tiling pattern support | ||
|
||
### [v0.12.3] - 2021-08-01 | ||
|
||
- Remove examples from published package | ||
|
||
### [v0.12.2] - 2021-08-01 | ||
|
||
- Fix for PDF accessibility check. (#1265) | ||
- Allow applying 'underline' and 'strike' text styling together on a text | ||
- Allow to specify the AcroForm text fontSize | ||
- Update crypto-js to v4.0 (properly fix security issue) | ||
|
||
### [v0.12.1] - 2021-04-10 | ||
|
||
- Update crypto-js to v3.3 (fix security issue) | ||
- Update fontkit to 1.8.1 | ||
|
||
### [v0.12.0] - 2021-04-04 | ||
|
||
- Add support for Embedded Files and File Attachment Annotations | ||
- Accessibility support | ||
- Replace integration tests by visual regression tests | ||
- Fix access permissions in PDF version 1.7ext3 | ||
- Fix Buffer() is deprecation warning | ||
- Add `forms.md` to generate documentation files | ||
- Fix "@" in FontName | ||
|
||
### [v0.11.0] - 2019-12-03 | ||
|
||
- Fix infinite loop when an individual character is bigger than the width of the text. | ||
- Fix infinite loop when text is positioned after page right margin | ||
- Allow links in continued text to be stopped by setting link to null | ||
- Add support to interlaced PNG files | ||
- Do not emit \_interopDefault helper in commonjs build | ||
- Fix gradient with multiple stops (#1045) | ||
- Set link annotation flag to print by default | ||
- Add support for AcroForms | ||
- Drop support for (uncommon) cid less fonts on standalone build (reduces bundle size) | ||
|
||
### [v0.10.0] - 2019-06-06 | ||
|
||
- Fix links to pages within the document | ||
- Add support for named destinations | ||
- Throw errors when `dash(...)` is passed invalid lengths | ||
- Remove PDFDocument#output method | ||
- Add standalone build (js/pdfkit.standalone.js) | ||
|
||
### [v0.9.1] - 2019-04-30 | ||
|
||
- Fix setting printing permission | ||
- Fix corruption of string objects in browser | ||
- Add option to set default font | ||
- Remove call to fontkit.openSync | ||
- Add standalone virtual file system implementation | ||
- Add option (fontLayoutCache) to disable font layout cache | ||
|
||
### [v0.9.0] - 2019-01-28 | ||
|
||
- Convert to code base from coffescript to ES6+ | ||
- Fix loading grayscale / transparent PNG files | ||
- Reduce number of calls to async functions | ||
- Implement encryption / access control |
Oops, something went wrong.