@adnsistemas/pdf-lib 2.4.3 → 2.4.5
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/cjs/api/PDFDocument.d.ts +6 -6
- package/cjs/api/PDFDocument.d.ts.map +1 -1
- package/cjs/api/PDFDocument.js +6 -6
- package/cjs/api/PDFDocument.js.map +1 -1
- package/cjs/api/index.d.ts +21 -21
- package/cjs/api/index.d.ts.map +1 -1
- package/cjs/api/index.js +20 -20
- package/cjs/api/index.js.map +1 -1
- package/cjs/api/snapshot/DefaultDocumentSnapshot.d.ts +2 -2
- package/cjs/api/snapshot/DefaultDocumentSnapshot.d.ts.map +1 -1
- package/cjs/api/snapshot/DocumentSnapshot.d.ts +1 -1
- package/cjs/api/snapshot/DocumentSnapshot.d.ts.map +1 -1
- package/cjs/api/snapshot/IncrementalDocumentSnapshot.d.ts +2 -2
- package/cjs/api/snapshot/IncrementalDocumentSnapshot.d.ts.map +1 -1
- package/cjs/core/PDFContext.d.ts +1 -1
- package/cjs/core/PDFContext.d.ts.map +1 -1
- package/cjs/core/parser/PDFParser.js +2 -3
- package/cjs/core/parser/PDFParser.js.map +1 -1
- package/cjs/core/writers/PDFStreamWriter.d.ts +7 -7
- package/cjs/core/writers/PDFStreamWriter.d.ts.map +1 -1
- package/cjs/core/writers/PDFStreamWriter.js +16 -16
- package/cjs/core/writers/PDFStreamWriter.js.map +1 -1
- package/cjs/core/writers/PDFWriter.d.ts +10 -10
- package/cjs/core/writers/PDFWriter.d.ts.map +1 -1
- package/cjs/core/writers/PDFWriter.js +10 -10
- package/cjs/core/writers/PDFWriter.js.map +1 -1
- package/dist/pdf-lib.esm.js +21368 -6691
- package/dist/pdf-lib.esm.js.map +1 -1
- package/dist/pdf-lib.esm.min.js +3 -3
- package/dist/pdf-lib.esm.min.js.map +1 -1
- package/dist/pdf-lib.js +21502 -6743
- package/dist/pdf-lib.js.map +1 -1
- package/dist/pdf-lib.min.js +3 -3
- package/dist/pdf-lib.min.js.map +1 -1
- package/es/api/PDFDocument.d.ts +6 -6
- package/es/api/PDFDocument.d.ts.map +1 -1
- package/es/api/PDFDocument.js +6 -6
- package/es/api/PDFDocument.js.map +1 -1
- package/es/api/index.d.ts +21 -21
- package/es/api/index.d.ts.map +1 -1
- package/es/api/index.js +20 -20
- package/es/api/index.js.map +1 -1
- package/es/api/snapshot/DefaultDocumentSnapshot.d.ts +2 -2
- package/es/api/snapshot/DefaultDocumentSnapshot.d.ts.map +1 -1
- package/es/api/snapshot/DocumentSnapshot.d.ts +1 -1
- package/es/api/snapshot/DocumentSnapshot.d.ts.map +1 -1
- package/es/api/snapshot/IncrementalDocumentSnapshot.d.ts +2 -2
- package/es/api/snapshot/IncrementalDocumentSnapshot.d.ts.map +1 -1
- package/es/core/PDFContext.d.ts +1 -1
- package/es/core/PDFContext.d.ts.map +1 -1
- package/es/core/parser/PDFParser.js +2 -3
- package/es/core/parser/PDFParser.js.map +1 -1
- package/es/core/writers/PDFStreamWriter.d.ts +7 -7
- package/es/core/writers/PDFStreamWriter.d.ts.map +1 -1
- package/es/core/writers/PDFStreamWriter.js +16 -16
- package/es/core/writers/PDFStreamWriter.js.map +1 -1
- package/es/core/writers/PDFWriter.d.ts +10 -10
- package/es/core/writers/PDFWriter.d.ts.map +1 -1
- package/es/core/writers/PDFWriter.js +10 -10
- package/es/core/writers/PDFWriter.js.map +1 -1
- package/package.json +6 -3
- package/src/api/PDFDocument.ts +12 -11
- package/src/api/index.ts +21 -21
- package/src/api/snapshot/DefaultDocumentSnapshot.ts +2 -2
- package/src/api/snapshot/DocumentSnapshot.ts +1 -1
- package/src/api/snapshot/IncrementalDocumentSnapshot.ts +2 -2
- package/src/core/PDFContext.ts +1 -1
- package/src/core/parser/PDFParser.ts +2 -2
- package/src/core/writers/PDFStreamWriter.ts +19 -18
- package/src/core/writers/PDFWriter.ts +16 -16
- package/ts3.4/cjs/api/PDFDocument.d.ts +5 -5
- package/ts3.4/cjs/api/index.d.ts +21 -21
- package/ts3.4/cjs/api/snapshot/DefaultDocumentSnapshot.d.ts +1 -1
- package/ts3.4/cjs/api/snapshot/DocumentSnapshot.d.ts +1 -1
- package/ts3.4/cjs/api/snapshot/IncrementalDocumentSnapshot.d.ts +1 -1
- package/ts3.4/cjs/core/PDFContext.d.ts +1 -1
- package/ts3.4/cjs/core/writers/PDFStreamWriter.d.ts +7 -7
- package/ts3.4/cjs/core/writers/PDFWriter.d.ts +10 -10
- package/ts3.4/es/api/PDFDocument.d.ts +5 -5
- package/ts3.4/es/api/index.d.ts +21 -21
- package/ts3.4/es/api/snapshot/DefaultDocumentSnapshot.d.ts +1 -1
- package/ts3.4/es/api/snapshot/DocumentSnapshot.d.ts +1 -1
- package/ts3.4/es/api/snapshot/IncrementalDocumentSnapshot.d.ts +1 -1
- package/ts3.4/es/core/PDFContext.d.ts +1 -1
- package/ts3.4/es/core/writers/PDFStreamWriter.d.ts +7 -7
- package/ts3.4/es/core/writers/PDFWriter.d.ts +10 -10
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { DocumentSnapshot } from '
|
|
2
|
-
import PDFCrossRefSection from '
|
|
3
|
-
import PDFHeader from '
|
|
4
|
-
import PDFTrailer from '
|
|
5
|
-
import PDFTrailerDict from '
|
|
6
|
-
import PDFDict from '
|
|
7
|
-
import PDFObject from '
|
|
8
|
-
import PDFRef from '
|
|
9
|
-
import PDFContext from '
|
|
10
|
-
import PDFSecurity from '
|
|
1
|
+
import type { DocumentSnapshot } from '../../api/snapshot';
|
|
2
|
+
import PDFCrossRefSection from '../document/PDFCrossRefSection';
|
|
3
|
+
import PDFHeader from '../document/PDFHeader';
|
|
4
|
+
import PDFTrailer from '../document/PDFTrailer';
|
|
5
|
+
import PDFTrailerDict from '../document/PDFTrailerDict';
|
|
6
|
+
import PDFDict from '../objects/PDFDict';
|
|
7
|
+
import PDFObject from '../objects/PDFObject';
|
|
8
|
+
import PDFRef from '../objects/PDFRef';
|
|
9
|
+
import PDFContext from '../PDFContext';
|
|
10
|
+
import PDFSecurity from '../security/PDFSecurity';
|
|
11
11
|
export interface SerializationInfo {
|
|
12
12
|
size: number;
|
|
13
13
|
header: PDFHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PDFWriter.d.ts","sourceRoot":"","sources":["../../../src/core/writers/PDFWriter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PDFWriter.d.ts","sourceRoot":"","sources":["../../../src/core/writers/PDFWriter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,UAAU,MAAM,eAAe,CAAC;AAKvC,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAGlD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,CAAC;IAClB,eAAe,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC;IACvC,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,cAAM,SAAS;IACb,MAAM,CAAC,UAAU,YAAa,UAAU,kBAAkB,MAAM,eACE;IAElE,MAAM,CAAC,sBAAsB,YAClB,UAAU,kBACH,MAAM,YACZ,gBAAgB,eAC0B;IAEtD,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAEvC,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAC1C,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAC9C,OAAO,CAAC,aAAa,CAAK;IAE1B,SAAS,aACP,OAAO,EAAE,UAAU,EACnB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,gBAAgB;IAOtB,iBAAiB,IAAI,OAAO,CAAC,UAAU,CAAC;IAmE9C,SAAS,CAAC,yBAAyB,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE;QACjD,MAAM;QACN,SAAS;KACV,GAAG,MAAM;IAMV,SAAS,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO;cAW5C,iBAAiB,CAC/B,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,iBAAiB,CAAC;IAwC7B,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW;IAYvE,SAAS,CAAC,iBAAiB,MAAO,MAAM,aAGtC;CACH;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import { DefaultDocumentSnapshot, defaultDocumentSnapshot, } from '
|
|
3
|
-
import PDFCrossRefSection from '
|
|
4
|
-
import PDFHeader from '
|
|
5
|
-
import PDFTrailer from '
|
|
6
|
-
import PDFTrailerDict from '
|
|
7
|
-
import PDFObjectStream from '
|
|
8
|
-
import CharCodes from '
|
|
9
|
-
import { copyStringIntoBuffer, waitForTick } from '
|
|
10
|
-
import PDFNumber from '
|
|
11
|
-
import PDFStream from '
|
|
2
|
+
import { DefaultDocumentSnapshot, defaultDocumentSnapshot, } from '../../api/snapshot/index.js';
|
|
3
|
+
import PDFCrossRefSection from '../document/PDFCrossRefSection.js';
|
|
4
|
+
import PDFHeader from '../document/PDFHeader.js';
|
|
5
|
+
import PDFTrailer from '../document/PDFTrailer.js';
|
|
6
|
+
import PDFTrailerDict from '../document/PDFTrailerDict.js';
|
|
7
|
+
import PDFObjectStream from '../structures/PDFObjectStream.js';
|
|
8
|
+
import CharCodes from '../syntax/CharCodes.js';
|
|
9
|
+
import { copyStringIntoBuffer, waitForTick } from '../../utils/index.js';
|
|
10
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
11
|
+
import PDFStream from '../objects/PDFStream.js';
|
|
12
12
|
class PDFWriter {
|
|
13
13
|
constructor(context, objectsPerTick, snapshot) {
|
|
14
14
|
this.parsedObjects = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PDFWriter.js","sourceRoot":"","sources":["../../../src/core/writers/PDFWriter.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,
|
|
1
|
+
{"version":3,"file":"PDFWriter.js","sourceRoot":"","sources":["../../../src/core/writers/PDFWriter.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,cAAc,MAAM,4BAA4B,CAAC;AAKxD,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAE7C,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAW7C,MAAM,SAAS;IAgBb,YACE,OAAmB,EACnB,cAAsB,EACtB,QAA0B;QALpB,kBAAa,GAAG,CAAC,CAAC;QAyJhB,sBAAiB,GAAG,CAAC,CAAS,EAAE,EAAE;YAC1C,IAAI,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,GAAG,CAAC,OAAmB,EAAE,cAAsB,EAAE,EAAE,CAClE,IAAI,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE,uBAAuB,CAAC,CAAC;AAE3D,gCAAsB,GAAG,CAC9B,OAAmB,EACnB,cAAsB,EACtB,QAA0B,EAC1B,EAAE,CAAC,IAAI,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAC;AAqKxD,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adnsistemas/pdf-lib",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.5",
|
|
4
4
|
"description": "Create and modify PDF files with JavaScript",
|
|
5
5
|
"author": "Andrew Dillon <andrew.dillon.j@gmail.com>",
|
|
6
6
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"David Abdala (https://github.com/adnsistemas)"
|
|
46
46
|
],
|
|
47
47
|
"scripts": {
|
|
48
|
-
"release": "yarn release:prep && release-it
|
|
48
|
+
"release": "yarn release:prep && release-it",
|
|
49
49
|
"release:prep": "yarn clean && yarn lint && yarn typecheck && yarn test && yarn build",
|
|
50
50
|
"get:version": "node --eval 'console.log(require(`./package.json`).version)'",
|
|
51
51
|
"clean": "rimraf ts3.4 build cjs dist es scratchpad/build coverage tsBuildInfo.json apps/node-build apps/node/tsBuildInfo.json isolate*.log flamegraph.html out.pdf",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"testw": "jest --config jest.config.js --watch",
|
|
55
55
|
"testc": "jest --config jest.config.js --coverage && open coverage/index.html",
|
|
56
56
|
"lint-staged": "lint-staged",
|
|
57
|
-
"lint": "yarn lint:prettier && yarn lint:eslint",
|
|
57
|
+
"lint": "yarn clean && yarn lint:prettier && yarn lint:eslint",
|
|
58
58
|
"lint:eslint": "eslint .",
|
|
59
59
|
"lint:prettier": "prettier --write \"./{src,tests,apps}/**/*.{ts,js,json,html,css}\" --log-level error",
|
|
60
60
|
"build": "yarn build:cjs && yarn build:es && yarn build:esm && yarn build:esm:min && yarn build:umd && yarn build:umd:min && yarn build:downlevel-dts",
|
|
@@ -174,5 +174,8 @@
|
|
|
174
174
|
},
|
|
175
175
|
"npm": {
|
|
176
176
|
"publish": false
|
|
177
|
+
},
|
|
178
|
+
"publishConfig": {
|
|
179
|
+
"registry": "https://registry.npmjs.org"
|
|
177
180
|
}
|
|
178
181
|
}
|
package/src/api/PDFDocument.ts
CHANGED
|
@@ -54,11 +54,11 @@ import {
|
|
|
54
54
|
EmbedFontOptions,
|
|
55
55
|
SetTitleOptions,
|
|
56
56
|
IncrementalSaveOptions,
|
|
57
|
-
} from '
|
|
58
|
-
import PDFObject from '
|
|
59
|
-
import PDFRef from '
|
|
60
|
-
import { Fontkit } from '
|
|
61
|
-
import { TransformationMatrix } from '
|
|
57
|
+
} from './PDFDocumentOptions';
|
|
58
|
+
import PDFObject from '../core/objects/PDFObject';
|
|
59
|
+
import PDFRef from '../core/objects/PDFRef';
|
|
60
|
+
import { Fontkit } from '../types/fontkit';
|
|
61
|
+
import { TransformationMatrix } from '../types/matrix';
|
|
62
62
|
import {
|
|
63
63
|
assertIs,
|
|
64
64
|
assertIsOneOfOrUndefined,
|
|
@@ -71,15 +71,16 @@ import {
|
|
|
71
71
|
pluckIndices,
|
|
72
72
|
range,
|
|
73
73
|
toUint8Array,
|
|
74
|
-
} from '
|
|
75
|
-
import FileEmbedder, { AFRelationship } from '
|
|
76
|
-
import PDFEmbeddedFile from '
|
|
77
|
-
import PDFJavaScript from '
|
|
78
|
-
import JavaScriptEmbedder from '
|
|
74
|
+
} from '../utils';
|
|
75
|
+
import FileEmbedder, { AFRelationship } from '../core/embedders/FileEmbedder';
|
|
76
|
+
import PDFEmbeddedFile from './PDFEmbeddedFile';
|
|
77
|
+
import PDFJavaScript from './PDFJavaScript';
|
|
78
|
+
import JavaScriptEmbedder from '../core/embedders/JavaScriptEmbedder';
|
|
79
79
|
import { CipherTransformFactory } from '../core/crypto';
|
|
80
80
|
import PDFSvg from './PDFSvg';
|
|
81
81
|
import PDFSecurity, { SecurityOptions } from '../core/security/PDFSecurity';
|
|
82
|
-
import {
|
|
82
|
+
import { IncrementalDocumentSnapshot } from './snapshot';
|
|
83
|
+
import type { DocumentSnapshot } from './snapshot';
|
|
83
84
|
|
|
84
85
|
export type PDFAttachment = {
|
|
85
86
|
name: string;
|
package/src/api/index.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
11
|
-
export * from '
|
|
12
|
-
export * from '
|
|
13
|
-
export * from '
|
|
14
|
-
export * from '
|
|
15
|
-
export { default as PDFDocument } from '
|
|
16
|
-
export { default as PDFFont } from '
|
|
17
|
-
export { default as PDFImage } from '
|
|
18
|
-
export { default as PDFPage } from '
|
|
19
|
-
export { default as PDFEmbeddedPage } from '
|
|
20
|
-
export { default as PDFJavaScript } from '
|
|
21
|
-
export { default as Embeddable } from '
|
|
1
|
+
export * from './form';
|
|
2
|
+
export * from './text';
|
|
3
|
+
export * from './colors';
|
|
4
|
+
export * from './errors';
|
|
5
|
+
export * from './image';
|
|
6
|
+
export * from './objects';
|
|
7
|
+
export * from './operations';
|
|
8
|
+
export * from './operators';
|
|
9
|
+
export * from './rotations';
|
|
10
|
+
export * from './sizes';
|
|
11
|
+
export * from './snapshot';
|
|
12
|
+
export * from './PDFPageOptions';
|
|
13
|
+
export * from './PDFDocumentOptions';
|
|
14
|
+
export * from './StandardFonts';
|
|
15
|
+
export { default as PDFDocument } from './PDFDocument';
|
|
16
|
+
export { default as PDFFont } from './PDFFont';
|
|
17
|
+
export { default as PDFImage } from './PDFImage';
|
|
18
|
+
export { default as PDFPage } from './PDFPage';
|
|
19
|
+
export { default as PDFEmbeddedPage } from './PDFEmbeddedPage';
|
|
20
|
+
export { default as PDFJavaScript } from './PDFJavaScript';
|
|
21
|
+
export { default as Embeddable } from './Embeddable';
|
|
22
22
|
export { default as PDFSvg } from './PDFSvg';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PDFObject, PDFRef } from '
|
|
2
|
-
import { DocumentSnapshot } from './DocumentSnapshot';
|
|
1
|
+
import type { PDFObject, PDFRef } from '../../core';
|
|
2
|
+
import type { DocumentSnapshot } from './DocumentSnapshot';
|
|
3
3
|
|
|
4
4
|
export class DefaultDocumentSnapshot implements DocumentSnapshot {
|
|
5
5
|
pdfSize = 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PDFContext, PDFObject, PDFRef } from '
|
|
2
|
-
import { DocumentSnapshot } from './DocumentSnapshot';
|
|
1
|
+
import type { PDFContext, PDFObject, PDFRef } from '../../core';
|
|
2
|
+
import type { DocumentSnapshot } from './DocumentSnapshot';
|
|
3
3
|
|
|
4
4
|
export class IncrementalDocumentSnapshot implements DocumentSnapshot {
|
|
5
5
|
pdfSize: number;
|
package/src/core/PDFContext.ts
CHANGED
|
@@ -196,9 +196,9 @@ class PDFParser extends PDFObjectParser {
|
|
|
196
196
|
object.dict.lookup(PDFName.of('Type')) === PDFName.of('XRef')
|
|
197
197
|
) {
|
|
198
198
|
PDFXRefStreamParser.forStream(object).parseIntoContext();
|
|
199
|
-
} else {
|
|
200
|
-
this.context.assign(ref, object);
|
|
201
199
|
}
|
|
200
|
+
// always register the object and the ref, to properly handle object numeration
|
|
201
|
+
this.context.assign(ref, object);
|
|
202
202
|
|
|
203
203
|
return ref;
|
|
204
204
|
}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defaultDocumentSnapshot
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
1
|
+
import { defaultDocumentSnapshot } from '../../api/snapshot';
|
|
2
|
+
import type { DocumentSnapshot } from '../../api/snapshot';
|
|
3
|
+
import PDFHeader from '../document/PDFHeader';
|
|
4
|
+
import PDFTrailer from '../document/PDFTrailer';
|
|
5
|
+
import PDFInvalidObject from '../objects/PDFInvalidObject';
|
|
6
|
+
import PDFName from '../objects/PDFName';
|
|
7
|
+
import PDFNumber from '../objects/PDFNumber';
|
|
8
|
+
import PDFObject from '../objects/PDFObject';
|
|
9
|
+
import PDFRef from '../objects/PDFRef';
|
|
10
|
+
import PDFStream from '../objects/PDFStream';
|
|
11
|
+
import PDFContext from '../PDFContext';
|
|
12
|
+
import PDFCrossRefStream from '../structures/PDFCrossRefStream';
|
|
13
|
+
import PDFObjectStream from '../structures/PDFObjectStream';
|
|
14
|
+
import PDFWriter from '../writers/PDFWriter';
|
|
15
|
+
import { last, waitForTick } from '../../utils';
|
|
16
|
+
import PDFDict from '../objects/PDFDict';
|
|
17
|
+
import PDFCatalog from '../structures/PDFCatalog';
|
|
18
|
+
import PDFPageTree from '../structures/PDFPageTree';
|
|
19
|
+
import PDFPageLeaf from '../structures/PDFPageLeaf';
|
|
19
20
|
|
|
20
21
|
class PDFStreamWriter extends PDFWriter {
|
|
21
22
|
static forContext = (
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DefaultDocumentSnapshot,
|
|
3
3
|
defaultDocumentSnapshot,
|
|
4
|
-
} from '
|
|
5
|
-
import type { DocumentSnapshot } from '
|
|
6
|
-
import PDFCrossRefSection from '
|
|
7
|
-
import PDFHeader from '
|
|
8
|
-
import PDFTrailer from '
|
|
9
|
-
import PDFTrailerDict from '
|
|
10
|
-
import PDFDict from '
|
|
11
|
-
import PDFObject from '
|
|
12
|
-
import PDFRef from '
|
|
13
|
-
import PDFContext from '
|
|
14
|
-
import PDFObjectStream from '
|
|
15
|
-
import CharCodes from '
|
|
16
|
-
import { copyStringIntoBuffer, waitForTick } from '
|
|
17
|
-
import PDFNumber from '
|
|
18
|
-
import PDFSecurity from '
|
|
19
|
-
import PDFStream from '
|
|
4
|
+
} from '../../api/snapshot';
|
|
5
|
+
import type { DocumentSnapshot } from '../../api/snapshot';
|
|
6
|
+
import PDFCrossRefSection from '../document/PDFCrossRefSection';
|
|
7
|
+
import PDFHeader from '../document/PDFHeader';
|
|
8
|
+
import PDFTrailer from '../document/PDFTrailer';
|
|
9
|
+
import PDFTrailerDict from '../document/PDFTrailerDict';
|
|
10
|
+
import PDFDict from '../objects/PDFDict';
|
|
11
|
+
import PDFObject from '../objects/PDFObject';
|
|
12
|
+
import PDFRef from '../objects/PDFRef';
|
|
13
|
+
import PDFContext from '../PDFContext';
|
|
14
|
+
import PDFObjectStream from '../structures/PDFObjectStream';
|
|
15
|
+
import CharCodes from '../syntax/CharCodes';
|
|
16
|
+
import { copyStringIntoBuffer, waitForTick } from '../../utils';
|
|
17
|
+
import PDFNumber from '../objects/PDFNumber';
|
|
18
|
+
import PDFSecurity from '../security/PDFSecurity';
|
|
19
|
+
import PDFStream from '../objects/PDFStream';
|
|
20
20
|
|
|
21
21
|
export interface SerializationInfo {
|
|
22
22
|
size: number;
|
|
@@ -5,11 +5,11 @@ import PDFPage from './PDFPage';
|
|
|
5
5
|
import PDFForm from './form/PDFForm';
|
|
6
6
|
import { StandardFonts } from './StandardFonts';
|
|
7
7
|
import { PageBoundingBox, PDFCatalog, PDFContext } from '../core';
|
|
8
|
-
import { AttachmentOptions, SaveOptions, Base64SaveOptions, LoadOptions, CreateOptions, EmbedFontOptions, SetTitleOptions, IncrementalSaveOptions } from '
|
|
9
|
-
import PDFRef from '
|
|
10
|
-
import { Fontkit } from '
|
|
11
|
-
import { TransformationMatrix } from '
|
|
12
|
-
import { AFRelationship } from '
|
|
8
|
+
import { AttachmentOptions, SaveOptions, Base64SaveOptions, LoadOptions, CreateOptions, EmbedFontOptions, SetTitleOptions, IncrementalSaveOptions } from './PDFDocumentOptions';
|
|
9
|
+
import PDFRef from '../core/objects/PDFRef';
|
|
10
|
+
import { Fontkit } from '../types/fontkit';
|
|
11
|
+
import { TransformationMatrix } from '../types/matrix';
|
|
12
|
+
import { AFRelationship } from '../core/embedders/FileEmbedder';
|
|
13
13
|
import PDFSvg from './PDFSvg';
|
|
14
14
|
import { SecurityOptions } from '../core/security/PDFSecurity';
|
|
15
15
|
import { DocumentSnapshot } from './snapshot';
|
package/ts3.4/cjs/api/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
11
|
-
export * from '
|
|
12
|
-
export * from '
|
|
13
|
-
export * from '
|
|
14
|
-
export * from '
|
|
15
|
-
export { default as PDFDocument } from '
|
|
16
|
-
export { default as PDFFont } from '
|
|
17
|
-
export { default as PDFImage } from '
|
|
18
|
-
export { default as PDFPage } from '
|
|
19
|
-
export { default as PDFEmbeddedPage } from '
|
|
20
|
-
export { default as PDFJavaScript } from '
|
|
21
|
-
export { default as Embeddable } from '
|
|
1
|
+
export * from './form';
|
|
2
|
+
export * from './text';
|
|
3
|
+
export * from './colors';
|
|
4
|
+
export * from './errors';
|
|
5
|
+
export * from './image';
|
|
6
|
+
export * from './objects';
|
|
7
|
+
export * from './operations';
|
|
8
|
+
export * from './operators';
|
|
9
|
+
export * from './rotations';
|
|
10
|
+
export * from './sizes';
|
|
11
|
+
export * from './snapshot';
|
|
12
|
+
export * from './PDFPageOptions';
|
|
13
|
+
export * from './PDFDocumentOptions';
|
|
14
|
+
export * from './StandardFonts';
|
|
15
|
+
export { default as PDFDocument } from './PDFDocument';
|
|
16
|
+
export { default as PDFFont } from './PDFFont';
|
|
17
|
+
export { default as PDFImage } from './PDFImage';
|
|
18
|
+
export { default as PDFPage } from './PDFPage';
|
|
19
|
+
export { default as PDFEmbeddedPage } from './PDFEmbeddedPage';
|
|
20
|
+
export { default as PDFJavaScript } from './PDFJavaScript';
|
|
21
|
+
export { default as Embeddable } from './Embeddable';
|
|
22
22
|
export { default as PDFSvg } from './PDFSvg';
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PDFContext, PDFObject, PDFRef } from '
|
|
1
|
+
import { PDFContext, PDFObject, PDFRef } from '../../core';
|
|
2
2
|
import { DocumentSnapshot } from './DocumentSnapshot';
|
|
3
3
|
export declare class IncrementalDocumentSnapshot implements DocumentSnapshot {
|
|
4
4
|
pdfSize: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DocumentSnapshot } from '
|
|
2
|
-
import PDFHeader from '
|
|
3
|
-
import PDFTrailer from '
|
|
4
|
-
import PDFObject from '
|
|
5
|
-
import PDFRef from '
|
|
6
|
-
import PDFContext from '
|
|
7
|
-
import PDFWriter from '
|
|
1
|
+
import { DocumentSnapshot } from '../../api/snapshot';
|
|
2
|
+
import PDFHeader from '../document/PDFHeader';
|
|
3
|
+
import PDFTrailer from '../document/PDFTrailer';
|
|
4
|
+
import PDFObject from '../objects/PDFObject';
|
|
5
|
+
import PDFRef from '../objects/PDFRef';
|
|
6
|
+
import PDFContext from '../PDFContext';
|
|
7
|
+
import PDFWriter from '../writers/PDFWriter';
|
|
8
8
|
declare class PDFStreamWriter extends PDFWriter {
|
|
9
9
|
static forContext: (context: PDFContext, objectsPerTick: number, encodeStreams?: boolean, objectsPerStream?: number) => PDFStreamWriter;
|
|
10
10
|
static forContextWithSnapshot: (context: PDFContext, objectsPerTick: number, snapshot: DocumentSnapshot, encodeStreams?: boolean, objectsPerStream?: number) => PDFStreamWriter;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { DocumentSnapshot } from '
|
|
2
|
-
import PDFCrossRefSection from '
|
|
3
|
-
import PDFHeader from '
|
|
4
|
-
import PDFTrailer from '
|
|
5
|
-
import PDFTrailerDict from '
|
|
6
|
-
import PDFDict from '
|
|
7
|
-
import PDFObject from '
|
|
8
|
-
import PDFRef from '
|
|
9
|
-
import PDFContext from '
|
|
10
|
-
import PDFSecurity from '
|
|
1
|
+
import { DocumentSnapshot } from '../../api/snapshot';
|
|
2
|
+
import PDFCrossRefSection from '../document/PDFCrossRefSection';
|
|
3
|
+
import PDFHeader from '../document/PDFHeader';
|
|
4
|
+
import PDFTrailer from '../document/PDFTrailer';
|
|
5
|
+
import PDFTrailerDict from '../document/PDFTrailerDict';
|
|
6
|
+
import PDFDict from '../objects/PDFDict';
|
|
7
|
+
import PDFObject from '../objects/PDFObject';
|
|
8
|
+
import PDFRef from '../objects/PDFRef';
|
|
9
|
+
import PDFContext from '../PDFContext';
|
|
10
|
+
import PDFSecurity from '../security/PDFSecurity';
|
|
11
11
|
export interface SerializationInfo {
|
|
12
12
|
size: number;
|
|
13
13
|
header: PDFHeader;
|
|
@@ -5,11 +5,11 @@ import PDFPage from './PDFPage';
|
|
|
5
5
|
import PDFForm from './form/PDFForm';
|
|
6
6
|
import { StandardFonts } from './StandardFonts';
|
|
7
7
|
import { PageBoundingBox, PDFCatalog, PDFContext } from '../core';
|
|
8
|
-
import { AttachmentOptions, SaveOptions, Base64SaveOptions, LoadOptions, CreateOptions, EmbedFontOptions, SetTitleOptions, IncrementalSaveOptions } from '
|
|
9
|
-
import PDFRef from '
|
|
10
|
-
import { Fontkit } from '
|
|
11
|
-
import { TransformationMatrix } from '
|
|
12
|
-
import { AFRelationship } from '
|
|
8
|
+
import { AttachmentOptions, SaveOptions, Base64SaveOptions, LoadOptions, CreateOptions, EmbedFontOptions, SetTitleOptions, IncrementalSaveOptions } from './PDFDocumentOptions';
|
|
9
|
+
import PDFRef from '../core/objects/PDFRef';
|
|
10
|
+
import { Fontkit } from '../types/fontkit';
|
|
11
|
+
import { TransformationMatrix } from '../types/matrix';
|
|
12
|
+
import { AFRelationship } from '../core/embedders/FileEmbedder';
|
|
13
13
|
import PDFSvg from './PDFSvg';
|
|
14
14
|
import { SecurityOptions } from '../core/security/PDFSecurity';
|
|
15
15
|
import { DocumentSnapshot } from './snapshot';
|
package/ts3.4/es/api/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
11
|
-
export * from '
|
|
12
|
-
export * from '
|
|
13
|
-
export * from '
|
|
14
|
-
export * from '
|
|
15
|
-
export { default as PDFDocument } from '
|
|
16
|
-
export { default as PDFFont } from '
|
|
17
|
-
export { default as PDFImage } from '
|
|
18
|
-
export { default as PDFPage } from '
|
|
19
|
-
export { default as PDFEmbeddedPage } from '
|
|
20
|
-
export { default as PDFJavaScript } from '
|
|
21
|
-
export { default as Embeddable } from '
|
|
1
|
+
export * from './form';
|
|
2
|
+
export * from './text';
|
|
3
|
+
export * from './colors';
|
|
4
|
+
export * from './errors';
|
|
5
|
+
export * from './image';
|
|
6
|
+
export * from './objects';
|
|
7
|
+
export * from './operations';
|
|
8
|
+
export * from './operators';
|
|
9
|
+
export * from './rotations';
|
|
10
|
+
export * from './sizes';
|
|
11
|
+
export * from './snapshot';
|
|
12
|
+
export * from './PDFPageOptions';
|
|
13
|
+
export * from './PDFDocumentOptions';
|
|
14
|
+
export * from './StandardFonts';
|
|
15
|
+
export { default as PDFDocument } from './PDFDocument';
|
|
16
|
+
export { default as PDFFont } from './PDFFont';
|
|
17
|
+
export { default as PDFImage } from './PDFImage';
|
|
18
|
+
export { default as PDFPage } from './PDFPage';
|
|
19
|
+
export { default as PDFEmbeddedPage } from './PDFEmbeddedPage';
|
|
20
|
+
export { default as PDFJavaScript } from './PDFJavaScript';
|
|
21
|
+
export { default as Embeddable } from './Embeddable';
|
|
22
22
|
export { default as PDFSvg } from './PDFSvg';
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PDFContext, PDFObject, PDFRef } from '
|
|
1
|
+
import { PDFContext, PDFObject, PDFRef } from '../../core';
|
|
2
2
|
import { DocumentSnapshot } from './DocumentSnapshot';
|
|
3
3
|
export declare class IncrementalDocumentSnapshot implements DocumentSnapshot {
|
|
4
4
|
pdfSize: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DocumentSnapshot } from '
|
|
2
|
-
import PDFHeader from '
|
|
3
|
-
import PDFTrailer from '
|
|
4
|
-
import PDFObject from '
|
|
5
|
-
import PDFRef from '
|
|
6
|
-
import PDFContext from '
|
|
7
|
-
import PDFWriter from '
|
|
1
|
+
import { DocumentSnapshot } from '../../api/snapshot';
|
|
2
|
+
import PDFHeader from '../document/PDFHeader';
|
|
3
|
+
import PDFTrailer from '../document/PDFTrailer';
|
|
4
|
+
import PDFObject from '../objects/PDFObject';
|
|
5
|
+
import PDFRef from '../objects/PDFRef';
|
|
6
|
+
import PDFContext from '../PDFContext';
|
|
7
|
+
import PDFWriter from '../writers/PDFWriter';
|
|
8
8
|
declare class PDFStreamWriter extends PDFWriter {
|
|
9
9
|
static forContext: (context: PDFContext, objectsPerTick: number, encodeStreams?: boolean, objectsPerStream?: number) => PDFStreamWriter;
|
|
10
10
|
static forContextWithSnapshot: (context: PDFContext, objectsPerTick: number, snapshot: DocumentSnapshot, encodeStreams?: boolean, objectsPerStream?: number) => PDFStreamWriter;
|