Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: parallax/jsPDF
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Choose a base ref
...
head repository: parallax/jsPDF
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.1
Choose a head ref
  • 5 commits
  • 112 files changed
  • 4 contributors

Commits on Mar 17, 2025

  1. Upgrade canvg from 3.0.6 to 3.0.11 (#3836)

    ninooppgeorge authored Mar 17, 2025

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6136d4b View commit details
  2. don't use saucelabs in CI to be able to correctly run CI for PRs

    HackbrettXXX committed Mar 17, 2025
    Copy the full SHA
    c4b7421 View commit details
  3. improve performance of data url parsing in addimage (#3843)

    - fix a ReDoS vulnerability
    HackbrettXXX authored Mar 17, 2025

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b167c43 View commit details
  4. fix: upgrade @babel/runtime from 7.26.0 to 7.26.7 (#3832)

    Snyk has created this PR to upgrade @babel/runtime from 7.26.0 to 7.26.7.
    
    See this package in npm:
    @babel/runtime
    
    See this project in Snyk:
    https://app.snyk.io/org/mrrio/project/50515eb1-b03b-4f42-9f17-cce1a33d5d1a?utm_source=github&utm_medium=referral&page=upgrade-pr
    
    Co-authored-by: snyk-bot <snyk-bot@snyk.io>
    Co-authored-by: Lukas Holländer <lukas.hollaender@yworks.com>
    3 people authored Mar 17, 2025

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7cf6ddf View commit details
  5. 3.0.1

    HackbrettXXX authored Mar 17, 2025

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    57cbe94 View commit details
Showing with 1,831 additions and 4,855 deletions.
  1. +3 −6 .github/workflows/continuous-integration.yml
  2. +2 −2 README.md
  3. +1 −2 bower.json
  4. +166 −173 dist/jspdf.es.js
  5. +1 −1 dist/jspdf.es.js.map
  6. +7 −7 dist/jspdf.es.min.js
  7. +1 −1 dist/jspdf.es.min.js.map
  8. +1,049 −1,059 dist/jspdf.node.js
  9. +1 −1 dist/jspdf.node.js.map
  10. +8 −8 dist/jspdf.node.min.js
  11. +1 −1 dist/jspdf.node.min.js.map
  12. +169 −175 dist/jspdf.umd.js
  13. +1 −1 dist/jspdf.umd.js.map
  14. +8 −8 dist/jspdf.umd.min.js
  15. +1 −1 dist/jspdf.umd.min.js.map
  16. +1 −1 dist/polyfills.es.js
  17. +13 −2 dist/polyfills.umd.js
  18. +1 −1 docs/GState.html
  19. +1 −1 docs/Matrix.html
  20. +1 −1 docs/global.html
  21. +1 −1 docs/index.html
  22. +1 −1 docs/jsPDF-API.GState.html
  23. +1 −1 docs/jsPDF-API.ShadingPattern.html
  24. +1 −1 docs/jsPDF-API.TilingPattern.html
  25. +1 −1 docs/jsPDF.html
  26. +1 −1 docs/jspdf.js.html
  27. +1 −1 docs/libs_BMPDecoder.js.html
  28. +1 −1 docs/libs_Blob.js.html
  29. +1 −1 docs/libs_WebPDecoder.js.html
  30. +1 −1 docs/libs_bidiEngine.js.html
  31. +1 −1 docs/libs_md5.js.html
  32. +1 −1 docs/libs_pdfname.js.html
  33. +1 −1 docs/libs_pdfsecurity.js.html
  34. +1 −1 docs/libs_rc4.js.html
  35. +1 −1 docs/libs_rgbcolor.js.html
  36. +1 −1 docs/module-AcroForm-AcroFormButton.html
  37. +1 −1 docs/module-AcroForm-AcroFormCheckBox.html
  38. +1 −1 docs/module-AcroForm-AcroFormChoiceField.html
  39. +1 −1 docs/module-AcroForm-AcroFormComboBox.html
  40. +1 −1 docs/module-AcroForm-AcroFormEditBox.html
  41. +1 −1 docs/module-AcroForm-AcroFormField.html
  42. +1 −1 docs/module-AcroForm-AcroFormListBox.html
  43. +1 −1 docs/module-AcroForm-AcroFormPDFObject.html
  44. +1 −1 docs/module-AcroForm-AcroFormPasswordField.html
  45. +1 −1 docs/module-AcroForm-AcroFormPushButton.html
  46. +1 −1 docs/module-AcroForm-AcroFormRadioButton.html
  47. +1 −1 docs/module-AcroForm-AcroFormTextField.html
  48. +1 −1 docs/module-AcroForm.html
  49. +12 −16 docs/module-addImage.html
  50. +1 −1 docs/module-annotations.html
  51. +1 −1 docs/module-arabic.html
  52. +1 −1 docs/module-autoprint.html
  53. +1 −1 docs/module-bmp_support.html
  54. +1 −1 docs/module-canvas-Canvas.html
  55. +1 −1 docs/module-canvas.html
  56. +1 −1 docs/module-cell.html
  57. +1 −1 docs/module-context2d.html
  58. +1 −1 docs/module-fileloading.html
  59. +1 −1 docs/module-gif_support.html
  60. +1 −1 docs/module-html.html
  61. +1 −1 docs/module-javascript.html
  62. +1 −1 docs/module-jpeg_support.html
  63. +1 −1 docs/module-outline.html
  64. +1 −1 docs/module-png_support.html
  65. +1 −1 docs/module-rgba_support.html
  66. +1 −1 docs/module-setLanguage.html
  67. +1 −1 docs/module-split_text_to_size.html
  68. +1 −1 docs/module-standard_fonts_metrics.html
  69. +1 −1 docs/module-svg.html
  70. +1 −1 docs/module-total_pages.html
  71. +1 −1 docs/module-ttfsupport.html
  72. +1 −1 docs/module-utf8.html
  73. +1 −1 docs/module-vFS.html
  74. +1 −1 docs/module-viewerpreferences.html
  75. +1 −1 docs/module-webp_support.html
  76. +1 −1 docs/module-xmp_metadata.html
  77. +1 −1 docs/modules_acroform.js.html
  78. +24 −24 docs/modules_addimage.js.html
  79. +1 −1 docs/modules_annotations.js.html
  80. +1 −1 docs/modules_arabic.js.html
  81. +1 −1 docs/modules_autoprint.js.html
  82. +1 −1 docs/modules_bmp_support.js.html
  83. +1 −1 docs/modules_canvas.js.html
  84. +1 −1 docs/modules_cell.js.html
  85. +1 −1 docs/modules_context2d.js.html
  86. +1 −1 docs/modules_fileloading.js.html
  87. +1 −1 docs/modules_gif_support.js.html
  88. +1 −1 docs/modules_html.js.html
  89. +1 −1 docs/modules_javascript.js.html
  90. +1 −1 docs/modules_jpeg_support.js.html
  91. +1 −1 docs/modules_outline.js.html
  92. +1 −1 docs/modules_png_support.js.html
  93. +1 −1 docs/modules_rgba_support.js.html
  94. +1 −1 docs/modules_setlanguage.js.html
  95. +1 −1 docs/modules_split_text_to_size.js.html
  96. +1 −1 docs/modules_standard_fonts_metrics.js.html
  97. +1 −1 docs/modules_svg.js.html
  98. +1 −1 docs/modules_total_pages.js.html
  99. +1 −1 docs/modules_ttfsupport.js.html
  100. +1 −1 docs/modules_utf8.js.html
  101. +1 −1 docs/modules_vfs.js.html
  102. +1 −1 docs/modules_viewerpreferences.js.html
  103. +1 −1 docs/modules_webp_support.js.html
  104. +1 −1 docs/modules_xmp_metadata.js.html
  105. +247 −3,144 package-lock.json
  106. +5 −6 package.json
  107. +23 −23 src/modules/addimage.js
  108. BIN test/reference/bar_graph_with_text_and_lines.pdf
  109. +0 −85 test/saucelabs/karma.conf.js
  110. +0 −20 test/saucelabs/loadGlobals.js
  111. +1 −2 test/specs/base64.spec.js
  112. +1 −1 test/specs/html.spec.js
9 changes: 3 additions & 6 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Continuous Integration

on: [pull_request_target]
on: [push, pull_request, workflow_dispatch]

jobs:
test-saucelabs:
test-browser:
name: Browser tests
runs-on: ubuntu-latest
steps:
@@ -19,10 +19,7 @@ jobs:
- name: Build
run: npm run build
- name: Run tests
run: npm run test-saucelabs
env:
SAUCE_USERNAME: jspdf
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
run: npm run test-ci

test-node:
runs-on: ubuntu-latest
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ yarn add jspdf
Alternatively, load it from a CDN:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.0/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.1/jspdf.umd.min.js"></script>
```

Or always get latest version via [unpkg](https://unpkg.com/browse/jspdf/)
@@ -178,7 +178,7 @@ Alternatively, you can load the prebundled polyfill file. This is not recommende
loading polyfills multiple times. Might still be nifty for small applications or quick POCs.

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.0/polyfills.umd.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.1/polyfills.umd.js"></script>
```

## Use of Unicode Characters / UTF-8:
3 changes: 1 addition & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspdf",
"version": "3.0.0",
"version": "3.0.1",
"homepage": "https://github.com/mrrio/jspdf",
"description": "PDF Document creation from JavaScript",
"main": [
@@ -54,7 +54,6 @@
"karma-jasmine": "3.3.1",
"karma-jasmine-matchers": "4.0.2",
"karma-mocha-reporter": "2.2.5",
"karma-sauce-launcher": "4.1.5",
"karma-typescript": "^5.0.3",
"karma-verbose-reporter": "0.0.6",
"local-web-server": "2.6.1",
Loading