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: bpampuch/pdfmake
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e30db8db2d9c822e60109ca8ed1b4869d4f019f4
Choose a base ref
...
head repository: bpampuch/pdfmake
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8827c9af482a8240fd97f411de2b0db9a98164c3
Choose a head ref
Loading
Showing with 14,095 additions and 5,988 deletions.
  1. +26 −0 .github/workflows/node.js.yml
  2. +1 −0 .gitignore
  3. +4 −1 .npmignore
  4. +6 −3 .travis.yml
  5. +0 −11 CONTRIBUTING.md
  6. +2 −1 LICENSE
  7. +4 −1 README.md
  8. +1 −1 bower.json
  9. BIN build/fonts/Roboto/Roboto-Italic.ttf
  10. BIN build/fonts/Roboto/Roboto-Medium.ttf
  11. BIN build/fonts/Roboto/Roboto-MediumItalic.ttf
  12. BIN build/fonts/Roboto/Roboto-Regular.ttf
  13. +13,552 −5,768 build/pdfmake.js
  14. +1 −1 build/pdfmake.js.map
  15. +2 −37 build/pdfmake.min.js
  16. +1 −1 build/pdfmake.min.js.map
  17. +4 −4 build/vfs_fonts.js
  18. +7 −3 composer.json
  19. BIN examples/fonts/Roboto-Italic.ttf
  20. BIN examples/fonts/Roboto-Medium.ttf
  21. BIN examples/fonts/Roboto-MediumItalic.ttf
  22. BIN examples/fonts/Roboto-Regular.ttf
  23. +6 −0 examples/images.js
  24. BIN examples/pdfs/absolute.pdf
  25. BIN examples/pdfs/background.pdf
  26. BIN examples/pdfs/basics.pdf
  27. BIN examples/pdfs/columns_simple.pdf
  28. BIN examples/pdfs/images.pdf
  29. BIN examples/pdfs/links.pdf
  30. BIN examples/pdfs/lists.pdf
  31. BIN examples/pdfs/margins.pdf
  32. BIN examples/pdfs/named_styles.pdf
  33. BIN examples/pdfs/named_styles_with_overrides.pdf
  34. BIN examples/pdfs/pageReference.pdf
  35. BIN examples/pdfs/qrCode.pdf
  36. BIN examples/pdfs/relative.pdf
  37. BIN examples/pdfs/security.pdf
  38. BIN examples/pdfs/styling_inlines.pdf
  39. BIN examples/pdfs/styling_properties.pdf
  40. BIN examples/pdfs/svgs.pdf
  41. BIN examples/pdfs/tables.pdf
  42. BIN examples/pdfs/textDecorations.pdf
  43. BIN examples/pdfs/toc.pdf
  44. BIN examples/pdfs/vectors.pdf
  45. BIN examples/pdfs/watermark.pdf
  46. +21 −0 examples/styling_properties.js
  47. +21 −16 package.json
  48. +88 −0 src/browser-extensions/URLBrowserResolver.js
  49. +65 −12 src/browser-extensions/pdfMake.js
  50. +6 −0 src/browser-extensions/virtual-fs.js
  51. +6 −0 src/imageMeasure.js
  52. +14 −14 src/layoutBuilder.js
  53. +39 −5 src/printer.js
  54. +3 −1 src/styleContextStack.js
  55. +45 −81 src/svgMeasure.js
  56. +9 −0 src/textTools.js
  57. BIN tests/fonts/Roboto-Italic.ttf
  58. BIN tests/fonts/Roboto-Medium.ttf
  59. BIN tests/fonts/Roboto-MediumItalic.ttf
  60. BIN tests/fonts/Roboto-Regular.ttf
  61. +8 −8 tests/integration/svgs.js
  62. +6 −6 tests/layoutBuilder.js
  63. +114 −0 tests/svgMeasure.js
  64. +33 −13 webpack.config.js
26 changes: 26 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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: Node.js CI

on: [push, pull_request]

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [8.x, 10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -9,3 +9,4 @@ doc
nbproject
package-lock.json
yarn.lock
.idea
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
.git*
CONTRIBUTING.md
dev-playground/
docs/
examples/
tests/
build/fonts/
yarn.lock
composer.json
bower.json
gulpfile.js
webpack.config.js
webpack-standardfonts.config.js
.editorconfig
.eslintrc.json
.travis.yml
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -3,15 +3,18 @@ node_js:
- 8
- 10
- 12
- 14
- node

jobs:
allow_failures:
- node_js: node

os:
- windows
- linux
- windows
- osx

sudo: false

cache:
directories:
- node_modules
11 changes: 0 additions & 11 deletions CONTRIBUTING.md

This file was deleted.

3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2014 bpampuch
Copyright (c) 2014-2015 bpampuch
2016-2021 liborm85

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# pdfmake [![Build Status][travis_img]][travis_url] [![GitHub][github_img]][github_url] [![npm][npm_img]][npm_url] [![Bower][bower_img]][bower_url] [![Packagist][packagist_img]][packagist_url] [![CDNJS][cdnjs_img]][cndjs_url]
# pdfmake [![Node.js CI][githubactions_img]][githubactions_url] [![Build Status][travis_img]][travis_url] [![GitHub][github_img]][github_url] [![npm][npm_img]][npm_url] [![Bower][bower_img]][bower_url] [![Packagist][packagist_img]][packagist_url] [![CDNJS][cdnjs_img]][cndjs_url]

[githubactions_img]: https://github.com/bpampuch/pdfmake/workflows/Node.js%20CI/badge.svg?branch=0.1
[githubactions_url]: https://github.com/bpampuch/pdfmake/actions

[travis_img]: https://travis-ci.org/bpampuch/pdfmake.svg?branch=master
[travis_url]: https://travis-ci.org/bpampuch/pdfmake
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -23,14 +23,14 @@
"webpack.config.js",
"README.md",
"bower.json",
"CONTRIBUTING.md",
"examples",
"node_modules",
"package.json",
"src",
"tests",
"yarn.lock",
"composer.json",
".github",
".travis.yml"
]
}
Binary file added build/fonts/Roboto/Roboto-Italic.ttf
Binary file not shown.
Binary file added build/fonts/Roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file added build/fonts/Roboto/Roboto-MediumItalic.ttf
Binary file not shown.
Binary file added build/fonts/Roboto/Roboto-Regular.ttf
Binary file not shown.
Loading