@reportwright/pdf 0.1.0-beta.1 → 0.1.0-beta.11

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.
package/package.json CHANGED
@@ -1,21 +1,83 @@
1
1
  {
2
2
  "name": "@reportwright/pdf",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.1.0-beta.11",
4
4
  "description": "A streaming PDF writer for Node and browsers with no runtime dependencies: flat memory, PDF/A-1b to 3a, PDF/UA-1, Factur-X, embedded TrueType with Unicode text.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Arun Mallikarjun",
8
8
  "homepage": "https://github.com/MrArun005/reportwright/tree/main/packages/pdf#readme",
9
- "bugs": { "url": "https://github.com/MrArun005/reportwright/issues" },
10
- "repository": { "type": "git", "url": "git+https://github.com/MrArun005/reportwright.git", "directory": "packages/pdf" },
11
- "keywords": ["pdf", "pdf-writer", "streaming", "pdf-a", "pdf-ua", "factur-x", "zugferd", "accessibility", "truetype", "encryption", "aes", "pades", "digital-signature", "reportwright"],
12
- "publishConfig": { "access": "public" },
9
+ "bugs": {
10
+ "url": "https://github.com/MrArun005/reportwright/issues"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/MrArun005/reportwright.git",
15
+ "directory": "packages/pdf"
16
+ },
17
+ "keywords": [
18
+ "pdf",
19
+ "pdf-writer",
20
+ "streaming",
21
+ "pdf-a",
22
+ "pdf-ua",
23
+ "factur-x",
24
+ "zugferd",
25
+ "accessibility",
26
+ "truetype",
27
+ "encryption",
28
+ "aes",
29
+ "pades",
30
+ "digital-signature",
31
+ "reportwright"
32
+ ],
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
13
36
  "exports": {
14
- ".": { "types": "./index.d.ts", "default": "./dist/index.js" },
37
+ ".": {
38
+ "types": "./index.d.ts",
39
+ "default": "./dist/index.js"
40
+ },
41
+ "./write": {
42
+ "types": "./write.d.ts",
43
+ "default": "./dist/write.js"
44
+ },
45
+ "./fflate": {
46
+ "types": "./fflate.d.ts",
47
+ "default": "./dist/fflate.js"
48
+ },
49
+ "./examples/*": "./examples/*",
15
50
  "./package.json": "./package.json"
16
51
  },
17
52
  "types": "./index.d.ts",
18
- "files": ["dist", "index.d.ts", "examples", "README.md", "LICENSE", "THIRD-PARTY-NOTICES.md"],
19
- "engines": { "node": ">=20.16" },
20
- "sideEffects": false
53
+ "files": [
54
+ "dist",
55
+ "index.d.ts",
56
+ "write.d.ts",
57
+ "fflate.d.ts",
58
+ "examples",
59
+ "README.md",
60
+ "LICENSE",
61
+ "THIRD-PARTY-NOTICES.md"
62
+ ],
63
+ "engines": {
64
+ "node": ">=20.16"
65
+ },
66
+ "sideEffects": false,
67
+ "scripts": {
68
+ "build": "node build.mjs",
69
+ "test": "vitest run",
70
+ "format": "prettier --write \"src/**/*.{js,mjs}\" \"tests/**/*.{js,mjs}\" \"tools/**/*.{js,mjs}\"",
71
+ "format:check": "prettier --check \"src/**/*.{js,mjs}\" \"tests/**/*.{js,mjs}\" \"tools/**/*.{js,mjs}\""
72
+ },
73
+ "devDependencies": {
74
+ "esbuild": "^0.28.2",
75
+ "fflate": "^0.8.3",
76
+ "harfbuzzjs": "^1.6.2",
77
+ "node-forge": "^1.4.0",
78
+ "pdf-lib": "^1.17.1",
79
+ "prettier": "3.9.9",
80
+ "sharp": "^0.34.3",
81
+ "vitest": "^5.0.3"
82
+ }
21
83
  }
package/write.d.ts ADDED
@@ -0,0 +1,89 @@
1
+ // Types of @reportwright/pdf/write: the writer subset of index.d.ts (same declarations, no reader or bulk types).
2
+ export {
3
+ cmyk,
4
+ nodeSigner,
5
+ cmsSigner,
6
+ createPdf,
7
+ toBytes,
8
+ STANDARD_NAMES,
9
+ svgPathOps,
10
+ readFont,
11
+ checkSubset,
12
+ } from './index.js';
13
+ export type {
14
+ AFRelationship,
15
+ Annotation,
16
+ AnnotationOptions,
17
+ ArtifactOptions,
18
+ AttachOptions,
19
+ BlendMode,
20
+ Box,
21
+ ButtonAction,
22
+ ButtonOptions,
23
+ CheckStyle,
24
+ CheckboxOptions,
25
+ ChoiceOption,
26
+ ChoiceOptions,
27
+ Color,
28
+ ColorStops,
29
+ ComboBoxOptions,
30
+ DrawOptions,
31
+ EncryptOptions,
32
+ FacturXProfile,
33
+ Field,
34
+ FieldOptions,
35
+ FieldTextOptions,
36
+ Fit,
37
+ Font,
38
+ FontInfo,
39
+ FormScope,
40
+ Gradient,
41
+ HashName,
42
+ IccColor,
43
+ IccColorSpace,
44
+ Image,
45
+ ImageOptions,
46
+ Layer,
47
+ LayerOptions,
48
+ LineEnding,
49
+ LinkOptions,
50
+ LinkTarget,
51
+ ListBoxOptions,
52
+ MeasureOptions,
53
+ NoteIcon,
54
+ OutlineEntry,
55
+ OwnAppearance,
56
+ OwnTextLook,
57
+ Page,
58
+ PageLabelRange,
59
+ PageOptions,
60
+ Paint,
61
+ Path,
62
+ Pdf,
63
+ PdfCore,
64
+ PdfOptions,
65
+ Permissions,
66
+ Point,
67
+ RadioGroupOptions,
68
+ Rect,
69
+ RenderMode,
70
+ ShapeOptions,
71
+ ShapedGlyph,
72
+ Shaper,
73
+ SignOptions,
74
+ SignRequest,
75
+ SignatureOptions,
76
+ Signer,
77
+ Sink,
78
+ SpotColor,
79
+ StampName,
80
+ StandardFontName,
81
+ Subsetter,
82
+ TagOptions,
83
+ TextBoxOptions,
84
+ TextFieldOptions,
85
+ TextOptions,
86
+ TilingPattern,
87
+ ViewerOptions,
88
+ WidgetBox,
89
+ } from './index.js';