@pdfme/pdf-lib 6.1.12 → 6.1.13-dev.13
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/dist/api/PDFDocument.d.ts +11 -11
- package/dist/api/PDFDocumentOptions.d.ts +2 -2
- package/dist/api/PDFEmbeddedFile.d.ts +4 -4
- package/dist/api/PDFEmbeddedPage.d.ts +3 -3
- package/dist/api/PDFFont.d.ts +3 -3
- package/dist/api/PDFImage.d.ts +3 -3
- package/dist/api/PDFJavaScript.d.ts +4 -4
- package/dist/api/PDFPage.d.ts +8 -8
- package/dist/api/PDFPageOptions.d.ts +5 -5
- package/dist/api/colors.d.ts +3 -3
- package/dist/api/form/PDFButton.d.ts +8 -8
- package/dist/api/form/PDFCheckBox.d.ts +5 -5
- package/dist/api/form/PDFDropdown.d.ts +6 -6
- package/dist/api/form/PDFField.d.ts +8 -8
- package/dist/api/form/PDFForm.d.ts +11 -11
- package/dist/api/form/PDFOptionList.d.ts +6 -6
- package/dist/api/form/PDFRadioGroup.d.ts +5 -5
- package/dist/api/form/PDFSignature.d.ts +3 -3
- package/dist/api/form/PDFTextField.d.ts +8 -8
- package/dist/api/form/appearances.d.ts +10 -10
- package/dist/api/form/index.d.ts +10 -10
- package/dist/api/image/index.d.ts +1 -1
- package/dist/api/index.d.ts +20 -20
- package/dist/api/objects.d.ts +1 -1
- package/dist/api/operations.d.ts +5 -5
- package/dist/api/operators.d.ts +1 -1
- package/dist/api/svg.d.ts +7 -7
- package/dist/api/svgPath.d.ts +1 -1
- package/dist/api/text/index.d.ts +2 -2
- package/dist/api/text/layout.d.ts +3 -3
- package/dist/core/PDFContext.d.ts +16 -16
- package/dist/core/PDFObjectCopier.d.ts +2 -2
- package/dist/core/acroform/PDFAcroButton.d.ts +7 -7
- package/dist/core/acroform/PDFAcroCheckBox.d.ts +5 -5
- package/dist/core/acroform/PDFAcroChoice.d.ts +4 -4
- package/dist/core/acroform/PDFAcroComboBox.d.ts +4 -4
- package/dist/core/acroform/PDFAcroField.d.ts +8 -8
- package/dist/core/acroform/PDFAcroForm.d.ts +5 -5
- package/dist/core/acroform/PDFAcroListBox.d.ts +4 -4
- package/dist/core/acroform/PDFAcroNonTerminal.d.ts +5 -5
- package/dist/core/acroform/PDFAcroPushButton.d.ts +4 -4
- package/dist/core/acroform/PDFAcroRadioButton.d.ts +5 -5
- package/dist/core/acroform/PDFAcroSignature.d.ts +3 -3
- package/dist/core/acroform/PDFAcroTerminal.d.ts +6 -6
- package/dist/core/acroform/PDFAcroText.d.ts +7 -7
- package/dist/core/acroform/index.d.ts +15 -15
- package/dist/core/acroform/utils.d.ts +4 -4
- package/dist/core/annotation/AppearanceCharacteristics.d.ts +5 -5
- package/dist/core/annotation/BorderStyle.d.ts +2 -2
- package/dist/core/annotation/PDFAnnotation.d.ts +6 -6
- package/dist/core/annotation/PDFWidgetAnnotation.d.ts +9 -9
- package/dist/core/annotation/index.d.ts +4 -4
- package/dist/core/document/PDFCrossRefSection.d.ts +1 -1
- package/dist/core/document/PDFTrailerDict.d.ts +1 -1
- package/dist/core/embedders/CMap.d.ts +1 -1
- package/dist/core/embedders/CustomFontEmbedder.d.ts +5 -5
- package/dist/core/embedders/CustomFontSubsetEmbedder.d.ts +3 -3
- package/dist/core/embedders/FileEmbedder.d.ts +2 -2
- package/dist/core/embedders/FontFlags.d.ts +1 -1
- package/dist/core/embedders/JavaScriptEmbedder.d.ts +2 -2
- package/dist/core/embedders/JpegEmbedder.d.ts +2 -2
- package/dist/core/embedders/PDFPageEmbedder.d.ts +4 -4
- package/dist/core/embedders/PngEmbedder.d.ts +2 -2
- package/dist/core/embedders/StandardFontEmbedder.d.ts +3 -3
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/index.d.ts +47 -47
- package/dist/core/interactive/ViewerPreferences.d.ts +6 -6
- package/dist/core/objects/PDFArray.d.ts +12 -12
- package/dist/core/objects/PDFBool.d.ts +1 -1
- package/dist/core/objects/PDFDict.d.ts +11 -11
- package/dist/core/objects/PDFHexString.d.ts +1 -1
- package/dist/core/objects/PDFInvalidObject.d.ts +1 -1
- package/dist/core/objects/PDFName.d.ts +1 -1
- package/dist/core/objects/PDFNull.d.ts +1 -1
- package/dist/core/objects/PDFNumber.d.ts +1 -1
- package/dist/core/objects/PDFObject.d.ts +1 -1
- package/dist/core/objects/PDFRawStream.d.ts +4 -4
- package/dist/core/objects/PDFRef.d.ts +1 -1
- package/dist/core/objects/PDFStream.d.ts +3 -3
- package/dist/core/objects/PDFString.d.ts +1 -1
- package/dist/core/operators/PDFOperator.d.ts +7 -7
- package/dist/core/parser/BaseParser.d.ts +1 -1
- package/dist/core/parser/ByteStream.d.ts +1 -1
- package/dist/core/parser/PDFObjectParser.d.ts +14 -14
- package/dist/core/parser/PDFObjectStreamParser.d.ts +2 -2
- package/dist/core/parser/PDFParser.d.ts +3 -3
- package/dist/core/parser/PDFXRefStreamParser.d.ts +2 -2
- package/dist/core/streams/Ascii85Stream.d.ts +2 -2
- package/dist/core/streams/AsciiHexStream.d.ts +2 -2
- package/dist/core/streams/DecodeStream.d.ts +1 -1
- package/dist/core/streams/DecryptStream.d.ts +2 -2
- package/dist/core/streams/FlateStream.d.ts +2 -2
- package/dist/core/streams/LZWStream.d.ts +2 -2
- package/dist/core/streams/RunLengthStream.d.ts +2 -2
- package/dist/core/streams/decode.d.ts +2 -2
- package/dist/core/structures/PDFCatalog.d.ts +6 -6
- package/dist/core/structures/PDFContentStream.d.ts +4 -4
- package/dist/core/structures/PDFCrossRefStream.d.ts +4 -4
- package/dist/core/structures/PDFFlateStream.d.ts +3 -3
- package/dist/core/structures/PDFObjectStream.d.ts +4 -4
- package/dist/core/structures/PDFPageLeaf.d.ts +9 -9
- package/dist/core/structures/PDFPageTree.d.ts +6 -6
- package/dist/core/syntax/Keywords.d.ts +1 -1
- package/dist/core/writers/PDFStreamWriter.d.ts +6 -6
- package/dist/core/writers/PDFWriter.d.ts +8 -8
- package/dist/index.d.ts +4 -4
- package/dist/index.js +120 -87
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +9 -9
- package/dist/utils/elements/Arc.d.ts +4 -4
- package/dist/utils/elements/Circle.d.ts +2 -2
- package/dist/utils/elements/Ellipse.d.ts +4 -4
- package/dist/utils/elements/GraphElement.d.ts +1 -1
- package/dist/utils/elements/Line.d.ts +3 -3
- package/dist/utils/elements/Plot.d.ts +3 -3
- package/dist/utils/elements/Point.d.ts +2 -2
- package/dist/utils/elements/Rectangle.d.ts +2 -2
- package/dist/utils/elements/Segment.d.ts +4 -4
- package/dist/utils/elements/index.d.ts +9 -9
- package/dist/utils/index.d.ts +11 -11
- package/dist/utils/intersections.d.ts +3 -3
- package/dist/utils/maths.d.ts +2 -2
- package/package.json +10 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import PDFDict from './PDFDict';
|
|
2
|
-
import PDFObject from './PDFObject';
|
|
3
|
-
import PDFContext from '../PDFContext';
|
|
1
|
+
import PDFDict from './PDFDict.js';
|
|
2
|
+
import PDFObject from './PDFObject.js';
|
|
3
|
+
import PDFContext from '../PDFContext.js';
|
|
4
4
|
declare class PDFStream extends PDFObject {
|
|
5
5
|
readonly dict: PDFDict;
|
|
6
6
|
constructor(dict: PDFDict);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import PDFArray from '../objects/PDFArray';
|
|
2
|
-
import PDFHexString from '../objects/PDFHexString';
|
|
3
|
-
import PDFName from '../objects/PDFName';
|
|
4
|
-
import PDFNumber from '../objects/PDFNumber';
|
|
5
|
-
import PDFString from '../objects/PDFString';
|
|
6
|
-
import PDFOperatorNames from './PDFOperatorNames';
|
|
7
|
-
import PDFContext from '../PDFContext';
|
|
1
|
+
import PDFArray from '../objects/PDFArray.js';
|
|
2
|
+
import PDFHexString from '../objects/PDFHexString.js';
|
|
3
|
+
import PDFName from '../objects/PDFName.js';
|
|
4
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
5
|
+
import PDFString from '../objects/PDFString.js';
|
|
6
|
+
import PDFOperatorNames from './PDFOperatorNames.js';
|
|
7
|
+
import PDFContext from '../PDFContext.js';
|
|
8
8
|
export type PDFOperatorArg = string | PDFName | PDFArray | PDFNumber | PDFString | PDFHexString;
|
|
9
9
|
declare class PDFOperator {
|
|
10
10
|
static of: (name: PDFOperatorNames, args?: PDFOperatorArg[]) => PDFOperator;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Position } from '../errors';
|
|
2
|
-
import PDFArray from '../objects/PDFArray';
|
|
3
|
-
import PDFDict from '../objects/PDFDict';
|
|
4
|
-
import PDFHexString from '../objects/PDFHexString';
|
|
5
|
-
import PDFName from '../objects/PDFName';
|
|
6
|
-
import PDFNumber from '../objects/PDFNumber';
|
|
7
|
-
import PDFObject from '../objects/PDFObject';
|
|
8
|
-
import PDFRef from '../objects/PDFRef';
|
|
9
|
-
import PDFStream from '../objects/PDFStream';
|
|
10
|
-
import PDFString from '../objects/PDFString';
|
|
11
|
-
import BaseParser from './BaseParser';
|
|
12
|
-
import ByteStream from './ByteStream';
|
|
13
|
-
import PDFContext from '../PDFContext';
|
|
14
|
-
import { CipherTransformFactory } from '../crypto';
|
|
1
|
+
import { Position } from '../errors.js';
|
|
2
|
+
import PDFArray from '../objects/PDFArray.js';
|
|
3
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
4
|
+
import PDFHexString from '../objects/PDFHexString.js';
|
|
5
|
+
import PDFName from '../objects/PDFName.js';
|
|
6
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
7
|
+
import PDFObject from '../objects/PDFObject.js';
|
|
8
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
9
|
+
import PDFStream from '../objects/PDFStream.js';
|
|
10
|
+
import PDFString from '../objects/PDFString.js';
|
|
11
|
+
import BaseParser from './BaseParser.js';
|
|
12
|
+
import ByteStream from './ByteStream.js';
|
|
13
|
+
import PDFContext from '../PDFContext.js';
|
|
14
|
+
import { CipherTransformFactory } from '../crypto.js';
|
|
15
15
|
declare class PDFObjectParser extends BaseParser {
|
|
16
16
|
static forBytes: (bytes: Uint8Array, context: PDFContext, capNumbers?: boolean) => PDFObjectParser;
|
|
17
17
|
static forByteStream: (byteStream: ByteStream, context: PDFContext, capNumbers?: boolean) => PDFObjectParser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import PDFRawStream from '../objects/PDFRawStream';
|
|
2
|
-
import PDFObjectParser from './PDFObjectParser';
|
|
1
|
+
import PDFRawStream from '../objects/PDFRawStream.js';
|
|
2
|
+
import PDFObjectParser from './PDFObjectParser.js';
|
|
3
3
|
declare class PDFObjectStreamParser extends PDFObjectParser {
|
|
4
4
|
static forStream: (rawStream: PDFRawStream, shouldWaitForTick?: () => boolean) => PDFObjectStreamParser;
|
|
5
5
|
private alreadyParsed;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import PDFObjectParser from './PDFObjectParser';
|
|
2
|
-
import PDFContext from '../PDFContext';
|
|
3
|
-
import { CipherTransformFactory } from '../crypto';
|
|
1
|
+
import PDFObjectParser from './PDFObjectParser.js';
|
|
2
|
+
import PDFContext from '../PDFContext.js';
|
|
3
|
+
import { CipherTransformFactory } from '../crypto.js';
|
|
4
4
|
declare class PDFParser extends PDFObjectParser {
|
|
5
5
|
static forBytesWithOptions: (pdfBytes: Uint8Array, objectsPerTick?: number, throwOnInvalidObject?: boolean, capNumbers?: boolean, cryptoFactory?: CipherTransformFactory) => PDFParser;
|
|
6
6
|
private readonly objectsPerTick;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import DecodeStream from './DecodeStream';
|
|
2
|
-
import { StreamType } from './Stream';
|
|
1
|
+
import DecodeStream from './DecodeStream.js';
|
|
2
|
+
import { StreamType } from './Stream.js';
|
|
3
3
|
declare class AsciiHexStream extends DecodeStream {
|
|
4
4
|
private stream;
|
|
5
5
|
private firstDigit;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import DecodeStream from './DecodeStream';
|
|
2
|
-
import { StreamType } from './Stream';
|
|
1
|
+
import DecodeStream from './DecodeStream.js';
|
|
2
|
+
import { StreamType } from './Stream.js';
|
|
3
3
|
type DecryptFnType = (arg1: Uint8Array | Uint8ClampedArray, arg2: boolean) => Uint8Array;
|
|
4
4
|
declare class DecryptStream extends DecodeStream {
|
|
5
5
|
private stream;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import DecodeStream from '../../core/streams/DecodeStream';
|
|
2
|
-
import { StreamType } from '../../core/streams/Stream';
|
|
1
|
+
import DecodeStream from '../../core/streams/DecodeStream.js';
|
|
2
|
+
import { StreamType } from '../../core/streams/Stream.js';
|
|
3
3
|
declare class FlateStream extends DecodeStream {
|
|
4
4
|
private stream;
|
|
5
5
|
private codeSize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import DecodeStream from './DecodeStream';
|
|
2
|
-
import { StreamType } from './Stream';
|
|
1
|
+
import DecodeStream from './DecodeStream.js';
|
|
2
|
+
import { StreamType } from './Stream.js';
|
|
3
3
|
declare class RunLengthStream extends DecodeStream {
|
|
4
4
|
private stream;
|
|
5
5
|
constructor(stream: StreamType, maybeLength?: number);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import PDFRawStream from '../objects/PDFRawStream';
|
|
2
|
-
import { StreamType } from './Stream';
|
|
1
|
+
import PDFRawStream from '../objects/PDFRawStream.js';
|
|
2
|
+
import { StreamType } from './Stream.js';
|
|
3
3
|
export declare const decodePDFRawStream: ({ dict, contents, transform }: PDFRawStream) => StreamType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import PDFDict, { DictMap } from '../objects/PDFDict';
|
|
2
|
-
import PDFRef from '../objects/PDFRef';
|
|
3
|
-
import PDFContext from '../PDFContext';
|
|
4
|
-
import PDFPageTree from './PDFPageTree';
|
|
5
|
-
import { PDFAcroForm } from '../acroform';
|
|
6
|
-
import ViewerPreferences from '../interactive/ViewerPreferences';
|
|
1
|
+
import PDFDict, { DictMap } from '../objects/PDFDict.js';
|
|
2
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
3
|
+
import PDFContext from '../PDFContext.js';
|
|
4
|
+
import PDFPageTree from './PDFPageTree.js';
|
|
5
|
+
import { PDFAcroForm } from '../acroform/index.js';
|
|
6
|
+
import ViewerPreferences from '../interactive/ViewerPreferences.js';
|
|
7
7
|
declare class PDFCatalog extends PDFDict {
|
|
8
8
|
static withContextAndPages: (context: PDFContext, pages: PDFPageTree | PDFRef) => PDFCatalog;
|
|
9
9
|
static fromMapWithContext: (map: DictMap, context: PDFContext) => PDFCatalog;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFOperator from '../operators/PDFOperator';
|
|
3
|
-
import PDFContext from '../PDFContext';
|
|
4
|
-
import PDFFlateStream from './PDFFlateStream';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFOperator from '../operators/PDFOperator.js';
|
|
3
|
+
import PDFContext from '../PDFContext.js';
|
|
4
|
+
import PDFFlateStream from './PDFFlateStream.js';
|
|
5
5
|
declare class PDFContentStream extends PDFFlateStream {
|
|
6
6
|
static of: (dict: PDFDict, operators: PDFOperator[], encode?: boolean) => PDFContentStream;
|
|
7
7
|
private readonly operators;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFRef from '../objects/PDFRef';
|
|
3
|
-
import PDFContext from '../PDFContext';
|
|
4
|
-
import PDFFlateStream from './PDFFlateStream';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
3
|
+
import PDFContext from '../PDFContext.js';
|
|
4
|
+
import PDFFlateStream from './PDFFlateStream.js';
|
|
5
5
|
export declare enum EntryType {
|
|
6
6
|
Deleted = 0,
|
|
7
7
|
Uncompressed = 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFStream from '../objects/PDFStream';
|
|
3
|
-
import { Cache } from '../../utils';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFStream from '../objects/PDFStream.js';
|
|
3
|
+
import { Cache } from '../../utils/index.js';
|
|
4
4
|
declare class PDFFlateStream extends PDFStream {
|
|
5
5
|
protected readonly contentsCache: Cache<Uint8Array>;
|
|
6
6
|
protected readonly encode: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import PDFObject from '../objects/PDFObject';
|
|
2
|
-
import PDFRef from '../objects/PDFRef';
|
|
3
|
-
import PDFContext from '../PDFContext';
|
|
4
|
-
import PDFFlateStream from './PDFFlateStream';
|
|
1
|
+
import PDFObject from '../objects/PDFObject.js';
|
|
2
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
3
|
+
import PDFContext from '../PDFContext.js';
|
|
4
|
+
import PDFFlateStream from './PDFFlateStream.js';
|
|
5
5
|
export type IndirectObject = [PDFRef, PDFObject];
|
|
6
6
|
declare class PDFObjectStream extends PDFFlateStream {
|
|
7
7
|
static withContextAndObjects: (context: PDFContext, objects: IndirectObject[], encode?: boolean) => PDFObjectStream;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import PDFArray from '../objects/PDFArray';
|
|
2
|
-
import PDFDict, { DictMap } from '../objects/PDFDict';
|
|
3
|
-
import PDFName from '../objects/PDFName';
|
|
4
|
-
import PDFNumber from '../objects/PDFNumber';
|
|
5
|
-
import PDFObject from '../objects/PDFObject';
|
|
6
|
-
import PDFRef from '../objects/PDFRef';
|
|
7
|
-
import PDFStream from '../objects/PDFStream';
|
|
8
|
-
import PDFContext from '../PDFContext';
|
|
9
|
-
import PDFPageTree from './PDFPageTree';
|
|
1
|
+
import PDFArray from '../objects/PDFArray.js';
|
|
2
|
+
import PDFDict, { DictMap } from '../objects/PDFDict.js';
|
|
3
|
+
import PDFName from '../objects/PDFName.js';
|
|
4
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
5
|
+
import PDFObject from '../objects/PDFObject.js';
|
|
6
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
7
|
+
import PDFStream from '../objects/PDFStream.js';
|
|
8
|
+
import PDFContext from '../PDFContext.js';
|
|
9
|
+
import PDFPageTree from './PDFPageTree.js';
|
|
10
10
|
declare class PDFPageLeaf extends PDFDict {
|
|
11
11
|
static readonly InheritableEntries: string[];
|
|
12
12
|
static withContextAndParent: (context: PDFContext, parent: PDFRef) => PDFPageLeaf;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import PDFArray from '../objects/PDFArray';
|
|
2
|
-
import PDFDict, { DictMap } from '../objects/PDFDict';
|
|
3
|
-
import PDFNumber from '../objects/PDFNumber';
|
|
4
|
-
import PDFRef from '../objects/PDFRef';
|
|
5
|
-
import PDFContext from '../PDFContext';
|
|
6
|
-
import PDFPageLeaf from './PDFPageLeaf';
|
|
1
|
+
import PDFArray from '../objects/PDFArray.js';
|
|
2
|
+
import PDFDict, { DictMap } from '../objects/PDFDict.js';
|
|
3
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
4
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
5
|
+
import PDFContext from '../PDFContext.js';
|
|
6
|
+
import PDFPageLeaf from './PDFPageLeaf.js';
|
|
7
7
|
export type TreeNode = PDFPageTree | PDFPageLeaf;
|
|
8
8
|
declare class PDFPageTree extends PDFDict {
|
|
9
9
|
static withContext: (context: PDFContext, parent?: PDFRef) => PDFPageTree;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import PDFHeader from '../document/PDFHeader';
|
|
2
|
-
import PDFTrailer from '../document/PDFTrailer';
|
|
3
|
-
import PDFObject from '../objects/PDFObject';
|
|
4
|
-
import PDFRef from '../objects/PDFRef';
|
|
5
|
-
import PDFContext from '../PDFContext';
|
|
6
|
-
import PDFWriter from './PDFWriter';
|
|
1
|
+
import PDFHeader from '../document/PDFHeader.js';
|
|
2
|
+
import PDFTrailer from '../document/PDFTrailer.js';
|
|
3
|
+
import PDFObject from '../objects/PDFObject.js';
|
|
4
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
5
|
+
import PDFContext from '../PDFContext.js';
|
|
6
|
+
import PDFWriter from './PDFWriter.js';
|
|
7
7
|
declare class PDFStreamWriter extends PDFWriter {
|
|
8
8
|
static forContext: (context: PDFContext, objectsPerTick: number, encodeStreams?: boolean, objectsPerStream?: number) => PDFStreamWriter;
|
|
9
9
|
private readonly encodeStreams;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import PDFCrossRefSection from '../document/PDFCrossRefSection';
|
|
2
|
-
import PDFHeader from '../document/PDFHeader';
|
|
3
|
-
import PDFTrailer from '../document/PDFTrailer';
|
|
4
|
-
import PDFTrailerDict from '../document/PDFTrailerDict';
|
|
5
|
-
import PDFDict from '../objects/PDFDict';
|
|
6
|
-
import PDFObject from '../objects/PDFObject';
|
|
7
|
-
import PDFRef from '../objects/PDFRef';
|
|
8
|
-
import PDFContext from '../PDFContext';
|
|
1
|
+
import PDFCrossRefSection from '../document/PDFCrossRefSection.js';
|
|
2
|
+
import PDFHeader from '../document/PDFHeader.js';
|
|
3
|
+
import PDFTrailer from '../document/PDFTrailer.js';
|
|
4
|
+
import PDFTrailerDict from '../document/PDFTrailerDict.js';
|
|
5
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
6
|
+
import PDFObject from '../objects/PDFObject.js';
|
|
7
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
8
|
+
import PDFContext from '../PDFContext.js';
|
|
9
9
|
export interface SerializationInfo {
|
|
10
10
|
size: number;
|
|
11
11
|
header: PDFHeader;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './api';
|
|
2
|
-
export * from './core';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './utils';
|
|
1
|
+
export * from './api/index.js';
|
|
2
|
+
export * from './core/index.js';
|
|
3
|
+
export * from './types/index.js';
|
|
4
|
+
export * from './utils/index.js';
|