pdfkit 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +54 -48
  2. package/LICENSE +7 -7
  3. package/README.md +182 -182
  4. package/js/data/Courier-Bold.afm +342 -342
  5. package/js/data/Courier-BoldOblique.afm +342 -342
  6. package/js/data/Courier-Oblique.afm +342 -342
  7. package/js/data/Courier.afm +342 -342
  8. package/js/data/Helvetica-Bold.afm +2827 -2827
  9. package/js/data/Helvetica-BoldOblique.afm +2827 -2827
  10. package/js/data/Helvetica-Oblique.afm +3051 -3051
  11. package/js/data/Helvetica.afm +3051 -3051
  12. package/js/data/Symbol.afm +213 -213
  13. package/js/data/Times-Bold.afm +2588 -2588
  14. package/js/data/Times-BoldItalic.afm +2384 -2384
  15. package/js/data/Times-Italic.afm +2667 -2667
  16. package/js/data/Times-Roman.afm +2419 -2419
  17. package/js/data/ZapfDingbats.afm +225 -225
  18. package/js/font/data/Courier-Bold.afm +342 -0
  19. package/js/font/data/Courier-BoldOblique.afm +342 -0
  20. package/js/font/data/Courier-Oblique.afm +342 -0
  21. package/js/font/data/Courier.afm +342 -0
  22. package/js/font/data/Helvetica-Bold.afm +2827 -0
  23. package/js/font/data/Helvetica-BoldOblique.afm +2827 -0
  24. package/js/font/data/Helvetica-Oblique.afm +3051 -0
  25. package/js/font/data/Helvetica.afm +3051 -0
  26. package/js/font/data/Symbol.afm +213 -0
  27. package/js/font/data/Times-Bold.afm +2588 -0
  28. package/js/font/data/Times-BoldItalic.afm +2384 -0
  29. package/js/font/data/Times-Italic.afm +2667 -0
  30. package/js/font/data/Times-Roman.afm +2419 -0
  31. package/js/font/data/ZapfDingbats.afm +225 -0
  32. package/js/pdfkit.es5.js +114 -114
  33. package/js/pdfkit.es5.js.map +1 -1
  34. package/js/pdfkit.esnext.js +138 -138
  35. package/js/pdfkit.esnext.js.map +1 -1
  36. package/js/pdfkit.js +138 -138
  37. package/js/pdfkit.js.map +1 -1
  38. package/js/pdfkit.standalone.js +3021 -1874
  39. package/js/pdfkit.standalone.orig.js +68494 -0
  40. package/out.pdf +105 -0
  41. package/package.json +94 -94
  42. package/resultx.pdf +0 -0
package/out.pdf ADDED
@@ -0,0 +1,105 @@
1
+ %PDF-1.3
2
+ %����
3
+ 7 0 obj
4
+ <<
5
+ /Type /Page
6
+ /Parent 1 0 R
7
+ /MediaBox [0 0 612 792]
8
+ /Contents 5 0 R
9
+ /Resources 6 0 R
10
+ >>
11
+ endobj
12
+ 6 0 obj
13
+ <<
14
+ /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
15
+ /Font <<
16
+ /F1 8 0 R
17
+ >>
18
+ >>
19
+ endobj
20
+ 5 0 obj
21
+ <<
22
+ /Length 99
23
+ /Filter /FlateDecode
24
+ >>
25
+ stream
26
+ x�e�!
27
+ �@F�>��/���3
28
+ �A�`��I��q�M�� �TI���M��F�P�\Tc�����m�E��4�C����͈��:K����Vz?��
29
+ endstream
30
+ endobj
31
+ 10 0 obj
32
+ (PDFKit)
33
+ endobj
34
+ 11 0 obj
35
+ (PDFKit)
36
+ endobj
37
+ 12 0 obj
38
+ (D:20190612002759Z)
39
+ endobj
40
+ 9 0 obj
41
+ <<
42
+ /Producer 10 0 R
43
+ /Creator 11 0 R
44
+ /CreationDate 12 0 R
45
+ >>
46
+ endobj
47
+ 8 0 obj
48
+ <<
49
+ /Type /Font
50
+ /BaseFont /Helvetica
51
+ /Subtype /Type1
52
+ /Encoding /WinAnsiEncoding
53
+ >>
54
+ endobj
55
+ 4 0 obj
56
+ <<
57
+ >>
58
+ endobj
59
+ 3 0 obj
60
+ <<
61
+ /Type /Catalog
62
+ /Pages 1 0 R
63
+ /Names 2 0 R
64
+ >>
65
+ endobj
66
+ 1 0 obj
67
+ <<
68
+ /Type /Pages
69
+ /Count 1
70
+ /Kids [7 0 R]
71
+ >>
72
+ endobj
73
+ 2 0 obj
74
+ <<
75
+ /Dests <<
76
+ /Names [
77
+ ]
78
+ >>
79
+ >>
80
+ endobj
81
+ xref
82
+ 0 13
83
+ 0000000000 65535 f
84
+ 0000000719 00000 n
85
+ 0000000776 00000 n
86
+ 0000000657 00000 n
87
+ 0000000636 00000 n
88
+ 0000000208 00000 n
89
+ 0000000119 00000 n
90
+ 0000000015 00000 n
91
+ 0000000539 00000 n
92
+ 0000000464 00000 n
93
+ 0000000378 00000 n
94
+ 0000000403 00000 n
95
+ 0000000428 00000 n
96
+ trailer
97
+ <<
98
+ /Size 13
99
+ /Root 3 0 R
100
+ /Info 9 0 R
101
+ /ID [<473a27fbe87c355367d0e2025702a8da> <473a27fbe87c355367d0e2025702a8da>]
102
+ >>
103
+ startxref
104
+ 823
105
+ %%EOF
package/package.json CHANGED
@@ -1,95 +1,95 @@
1
- {
2
- "name": "pdfkit",
3
- "description": "A PDF generation library for Node.js",
4
- "keywords": [
5
- "pdf",
6
- "pdf writer",
7
- "pdf generator",
8
- "graphics",
9
- "document",
10
- "vector"
11
- ],
12
- "version": "0.12.0",
13
- "homepage": "http://pdfkit.org/",
14
- "author": {
15
- "name": "Devon Govett",
16
- "email": "devongovett@gmail.com",
17
- "url": "http://badassjs.com/"
18
- },
19
- "license": "MIT",
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/foliojs/pdfkit.git"
23
- },
24
- "bugs": "https://github.com/foliojs/pdfkit/issues",
25
- "devDependencies": {
26
- "@babel/core": "^7.11.6",
27
- "@babel/plugin-external-helpers": "^7.10.4",
28
- "@babel/preset-env": "^7.11.5",
29
- "babel-jest": "^26.3.0",
30
- "blob-stream": "^0.1.2",
31
- "brace": "^0.11.1",
32
- "brfs": "~2.0.2",
33
- "browserify": "^16.5.0",
34
- "canvas": "^2.6.1",
35
- "codemirror": "~5.49.2",
36
- "eslint": "^7.8.1",
37
- "gh-pages": "^3.1.0",
38
- "iconv-lite": "^0.5.0",
39
- "jest": "^26.4.2",
40
- "jest-screenshot": "^0.3.1",
41
- "markdown": "~0.5.0",
42
- "pdfjs-dist": "^2.4.456",
43
- "prettier": "1.19.1",
44
- "pug": "^2.0.4",
45
- "rollup": "^1.27.0",
46
- "rollup-plugin-babel": "^4.3.3",
47
- "rollup-plugin-cpy": "^2.0.1"
48
- },
49
- "dependencies": {
50
- "crypto-js": "^3.1.9-1",
51
- "fontkit": "^1.8.0",
52
- "linebreak": "^1.0.2",
53
- "png-js": "^1.0.0"
54
- },
55
- "scripts": {
56
- "prepublishOnly": "npm run build",
57
- "build": "rollup -c && browserify --standalone PDFDocument --ignore iconv-lite js/pdfkit.js > js/pdfkit.standalone.js",
58
- "demo": "cd demo && node test.js",
59
- "browser-demo": "browserify demo/browser.js > demo/bundle.js",
60
- "pdf-guide": "node docs/generate.js",
61
- "website": "node docs/generate_website.js",
62
- "publish-website": "node docs/publish_website.js",
63
- "docs": "npm run pdf-guide && npm run website && npm run browser-demo",
64
- "lint": "eslint {lib,tests}/**/*.js",
65
- "prettier": "prettier {lib,tests,demo,docs}/**/*.js",
66
- "test": "jest -i",
67
- "test:visual": "jest visual/ -i",
68
- "test:unit": "jest unit/"
69
- },
70
- "main": "js/pdfkit.js",
71
- "module": "js/pdfkit.es5.js",
72
- "esnext": "js/pdfkit.esnext.js",
73
- "browserify": {
74
- "transform": [
75
- "brfs"
76
- ]
77
- },
78
- "engine": [
79
- "node >= v6.0.0"
80
- ],
81
- "jest": {
82
- "testPathIgnorePatterns": [
83
- "/node_modules/",
84
- "<rootDir>/demo/"
85
- ],
86
- "testURL": "http://localhost/",
87
- "setupFilesAfterEnv": [
88
- "<rootDir>/tests/unit/setupTests.js"
89
- ],
90
- "reporters": [
91
- "default",
92
- "jest-screenshot/reporter"
93
- ]
94
- }
1
+ {
2
+ "name": "pdfkit",
3
+ "description": "A PDF generation library for Node.js",
4
+ "keywords": [
5
+ "pdf",
6
+ "pdf writer",
7
+ "pdf generator",
8
+ "graphics",
9
+ "document",
10
+ "vector"
11
+ ],
12
+ "version": "0.12.1",
13
+ "homepage": "http://pdfkit.org/",
14
+ "author": {
15
+ "name": "Devon Govett",
16
+ "email": "devongovett@gmail.com",
17
+ "url": "http://badassjs.com/"
18
+ },
19
+ "license": "MIT",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/foliojs/pdfkit.git"
23
+ },
24
+ "bugs": "https://github.com/foliojs/pdfkit/issues",
25
+ "devDependencies": {
26
+ "@babel/core": "^7.11.6",
27
+ "@babel/plugin-external-helpers": "^7.10.4",
28
+ "@babel/preset-env": "^7.11.5",
29
+ "babel-jest": "^26.3.0",
30
+ "blob-stream": "^0.1.2",
31
+ "brace": "^0.11.1",
32
+ "brfs": "~2.0.2",
33
+ "browserify": "^16.5.0",
34
+ "canvas": "^2.6.1",
35
+ "codemirror": "~5.49.2",
36
+ "eslint": "^7.8.1",
37
+ "gh-pages": "^3.1.0",
38
+ "iconv-lite": "^0.5.0",
39
+ "jest": "^26.4.2",
40
+ "jest-screenshot": "^0.3.1",
41
+ "markdown": "~0.5.0",
42
+ "pdfjs-dist": "^2.4.456",
43
+ "prettier": "1.19.1",
44
+ "pug": "^2.0.4",
45
+ "rollup": "^1.27.0",
46
+ "rollup-plugin-babel": "^4.3.3",
47
+ "rollup-plugin-cpy": "^2.0.1"
48
+ },
49
+ "dependencies": {
50
+ "crypto-js": "^3.3.0",
51
+ "fontkit": "^1.8.1",
52
+ "linebreak": "^1.0.2",
53
+ "png-js": "^1.0.0"
54
+ },
55
+ "scripts": {
56
+ "prepublishOnly": "npm run build",
57
+ "build": "rollup -c && browserify --standalone PDFDocument --ignore iconv-lite js/pdfkit.js > js/pdfkit.standalone.js",
58
+ "demo": "cd demo && node test.js",
59
+ "browser-demo": "browserify demo/browser.js > demo/bundle.js",
60
+ "pdf-guide": "node docs/generate.js",
61
+ "website": "node docs/generate_website.js",
62
+ "publish-website": "node docs/publish_website.js",
63
+ "docs": "npm run pdf-guide && npm run website && npm run browser-demo",
64
+ "lint": "eslint {lib,tests}/**/*.js",
65
+ "prettier": "prettier {lib,tests,demo,docs}/**/*.js",
66
+ "test": "jest -i",
67
+ "test:visual": "jest visual/ -i",
68
+ "test:unit": "jest unit/"
69
+ },
70
+ "main": "js/pdfkit.js",
71
+ "module": "js/pdfkit.es5.js",
72
+ "esnext": "js/pdfkit.esnext.js",
73
+ "browserify": {
74
+ "transform": [
75
+ "brfs"
76
+ ]
77
+ },
78
+ "engine": [
79
+ "node >= v6.0.0"
80
+ ],
81
+ "jest": {
82
+ "testPathIgnorePatterns": [
83
+ "/node_modules/",
84
+ "<rootDir>/demo/"
85
+ ],
86
+ "testURL": "http://localhost/",
87
+ "setupFilesAfterEnv": [
88
+ "<rootDir>/tests/unit/setupTests.js"
89
+ ],
90
+ "reporters": [
91
+ "default",
92
+ "jest-screenshot/reporter"
93
+ ]
94
+ }
95
95
  }
package/resultx.pdf ADDED
Binary file