@pdfme/pdf-lib 6.1.12 → 6.1.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,8 +1,8 @@
|
|
|
1
|
-
import PDFContext from '../PDFContext';
|
|
2
|
-
import PDFDict from '../objects/PDFDict';
|
|
3
|
-
import PDFArray from '../objects/PDFArray';
|
|
4
|
-
import PDFRef from '../objects/PDFRef';
|
|
5
|
-
import PDFAcroField from './PDFAcroField';
|
|
1
|
+
import PDFContext from '../PDFContext.js';
|
|
2
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
3
|
+
import PDFArray from '../objects/PDFArray.js';
|
|
4
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
5
|
+
import PDFAcroField from './PDFAcroField.js';
|
|
6
6
|
declare class PDFAcroForm {
|
|
7
7
|
readonly dict: PDFDict;
|
|
8
8
|
static fromDict: (dict: PDFDict) => PDFAcroForm;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFAcroChoice from './PDFAcroChoice';
|
|
3
|
-
import PDFContext from '../PDFContext';
|
|
4
|
-
import PDFRef from '../objects/PDFRef';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFAcroChoice from './PDFAcroChoice.js';
|
|
3
|
+
import PDFContext from '../PDFContext.js';
|
|
4
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
5
5
|
declare class PDFAcroListBox extends PDFAcroChoice {
|
|
6
6
|
static fromDict: (dict: PDFDict, ref: PDFRef) => PDFAcroListBox;
|
|
7
7
|
static create: (context: PDFContext) => PDFAcroListBox;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFRef from '../objects/PDFRef';
|
|
3
|
-
import PDFContext from '../PDFContext';
|
|
4
|
-
import PDFAcroField from './PDFAcroField';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
3
|
+
import PDFContext from '../PDFContext.js';
|
|
4
|
+
import PDFAcroField from './PDFAcroField.js';
|
|
5
5
|
declare class PDFAcroNonTerminal extends PDFAcroField {
|
|
6
6
|
static fromDict: (dict: PDFDict, ref: PDFRef) => PDFAcroNonTerminal;
|
|
7
7
|
static create: (context: PDFContext) => PDFAcroNonTerminal;
|
|
8
8
|
addField(field: PDFRef): void;
|
|
9
9
|
normalizedEntries(): {
|
|
10
|
-
Kids: import("
|
|
10
|
+
Kids: import("../index.js").PDFArray;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export default PDFAcroNonTerminal;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFAcroButton from './PDFAcroButton';
|
|
3
|
-
import PDFContext from '../PDFContext';
|
|
4
|
-
import PDFRef from '../objects/PDFRef';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFAcroButton from './PDFAcroButton.js';
|
|
3
|
+
import PDFContext from '../PDFContext.js';
|
|
4
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
5
5
|
declare class PDFAcroPushButton extends PDFAcroButton {
|
|
6
6
|
static fromDict: (dict: PDFDict, ref: PDFRef) => PDFAcroPushButton;
|
|
7
7
|
static create: (context: PDFContext) => PDFAcroPushButton;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import PDFRef from '../objects/PDFRef';
|
|
2
|
-
import PDFDict from '../objects/PDFDict';
|
|
3
|
-
import PDFName from '../objects/PDFName';
|
|
4
|
-
import PDFAcroButton from './PDFAcroButton';
|
|
5
|
-
import PDFContext from '../PDFContext';
|
|
1
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
2
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
3
|
+
import PDFName from '../objects/PDFName.js';
|
|
4
|
+
import PDFAcroButton from './PDFAcroButton.js';
|
|
5
|
+
import PDFContext from '../PDFContext.js';
|
|
6
6
|
declare class PDFAcroRadioButton extends PDFAcroButton {
|
|
7
7
|
static fromDict: (dict: PDFDict, ref: PDFRef) => PDFAcroRadioButton;
|
|
8
8
|
static create: (context: PDFContext) => PDFAcroRadioButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFRef from '../objects/PDFRef';
|
|
3
|
-
import PDFAcroTerminal from './PDFAcroTerminal';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
3
|
+
import PDFAcroTerminal from './PDFAcroTerminal.js';
|
|
4
4
|
declare class PDFAcroSignature extends PDFAcroTerminal {
|
|
5
5
|
static fromDict: (dict: PDFDict, ref: PDFRef) => PDFAcroSignature;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFName from '../objects/PDFName';
|
|
3
|
-
import PDFRef from '../objects/PDFRef';
|
|
4
|
-
import PDFAcroField from './PDFAcroField';
|
|
5
|
-
import PDFWidgetAnnotation from '../annotation/PDFWidgetAnnotation';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFName from '../objects/PDFName.js';
|
|
3
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
4
|
+
import PDFAcroField from './PDFAcroField.js';
|
|
5
|
+
import PDFWidgetAnnotation from '../annotation/PDFWidgetAnnotation.js';
|
|
6
6
|
declare class PDFAcroTerminal extends PDFAcroField {
|
|
7
7
|
static fromDict: (dict: PDFDict, ref: PDFRef) => PDFAcroTerminal;
|
|
8
8
|
FT(): PDFName;
|
|
@@ -10,7 +10,7 @@ declare class PDFAcroTerminal extends PDFAcroField {
|
|
|
10
10
|
addWidget(ref: PDFRef): void;
|
|
11
11
|
removeWidget(idx: number): void;
|
|
12
12
|
normalizedEntries(): {
|
|
13
|
-
Kids: import("
|
|
13
|
+
Kids: import("../index.js").PDFArray;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
export default PDFAcroTerminal;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import PDFContext from '../PDFContext';
|
|
2
|
-
import PDFDict from '../objects/PDFDict';
|
|
3
|
-
import PDFNumber from '../objects/PDFNumber';
|
|
4
|
-
import PDFString from '../objects/PDFString';
|
|
5
|
-
import PDFHexString from '../objects/PDFHexString';
|
|
6
|
-
import PDFRef from '../objects/PDFRef';
|
|
7
|
-
import PDFAcroTerminal from './PDFAcroTerminal';
|
|
1
|
+
import PDFContext from '../PDFContext.js';
|
|
2
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
3
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
4
|
+
import PDFString from '../objects/PDFString.js';
|
|
5
|
+
import PDFHexString from '../objects/PDFHexString.js';
|
|
6
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
7
|
+
import PDFAcroTerminal from './PDFAcroTerminal.js';
|
|
8
8
|
declare class PDFAcroText extends PDFAcroTerminal {
|
|
9
9
|
static fromDict: (dict: PDFDict, ref: PDFRef) => PDFAcroText;
|
|
10
10
|
static create: (context: PDFContext) => PDFAcroText;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { default as PDFAcroButton } from './PDFAcroButton';
|
|
2
|
-
export { default as PDFAcroCheckBox } from './PDFAcroCheckBox';
|
|
3
|
-
export { default as PDFAcroChoice } from './PDFAcroChoice';
|
|
4
|
-
export { default as PDFAcroComboBox } from './PDFAcroComboBox';
|
|
5
|
-
export { default as PDFAcroField } from './PDFAcroField';
|
|
6
|
-
export { default as PDFAcroForm } from './PDFAcroForm';
|
|
7
|
-
export { default as PDFAcroListBox } from './PDFAcroListBox';
|
|
8
|
-
export { default as PDFAcroNonTerminal } from './PDFAcroNonTerminal';
|
|
9
|
-
export { default as PDFAcroPushButton } from './PDFAcroPushButton';
|
|
10
|
-
export { default as PDFAcroRadioButton } from './PDFAcroRadioButton';
|
|
11
|
-
export { default as PDFAcroSignature } from './PDFAcroSignature';
|
|
12
|
-
export { default as PDFAcroTerminal } from './PDFAcroTerminal';
|
|
13
|
-
export { default as PDFAcroText } from './PDFAcroText';
|
|
14
|
-
export * from './flags';
|
|
15
|
-
export * from './utils';
|
|
1
|
+
export { default as PDFAcroButton } from './PDFAcroButton.js';
|
|
2
|
+
export { default as PDFAcroCheckBox } from './PDFAcroCheckBox.js';
|
|
3
|
+
export { default as PDFAcroChoice } from './PDFAcroChoice.js';
|
|
4
|
+
export { default as PDFAcroComboBox } from './PDFAcroComboBox.js';
|
|
5
|
+
export { default as PDFAcroField } from './PDFAcroField.js';
|
|
6
|
+
export { default as PDFAcroForm } from './PDFAcroForm.js';
|
|
7
|
+
export { default as PDFAcroListBox } from './PDFAcroListBox.js';
|
|
8
|
+
export { default as PDFAcroNonTerminal } from './PDFAcroNonTerminal.js';
|
|
9
|
+
export { default as PDFAcroPushButton } from './PDFAcroPushButton.js';
|
|
10
|
+
export { default as PDFAcroRadioButton } from './PDFAcroRadioButton.js';
|
|
11
|
+
export { default as PDFAcroSignature } from './PDFAcroSignature.js';
|
|
12
|
+
export { default as PDFAcroTerminal } from './PDFAcroTerminal.js';
|
|
13
|
+
export { default as PDFAcroText } from './PDFAcroText.js';
|
|
14
|
+
export * from './flags.js';
|
|
15
|
+
export * from './utils.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFArray from '../objects/PDFArray';
|
|
3
|
-
import PDFRef from '../objects/PDFRef';
|
|
4
|
-
import PDFAcroField from './PDFAcroField';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFArray from '../objects/PDFArray.js';
|
|
3
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
4
|
+
import PDFAcroField from './PDFAcroField.js';
|
|
5
5
|
export declare const createPDFAcroFields: (kidDicts?: PDFArray) => [PDFAcroField, PDFRef][];
|
|
6
6
|
export declare const createPDFAcroField: (dict: PDFDict, ref: PDFRef) => PDFAcroField;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFNumber from '../objects/PDFNumber';
|
|
3
|
-
import PDFArray from '../objects/PDFArray';
|
|
4
|
-
import PDFHexString from '../objects/PDFHexString';
|
|
5
|
-
import PDFString from '../objects/PDFString';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
3
|
+
import PDFArray from '../objects/PDFArray.js';
|
|
4
|
+
import PDFHexString from '../objects/PDFHexString.js';
|
|
5
|
+
import PDFString from '../objects/PDFString.js';
|
|
6
6
|
declare class AppearanceCharacteristics {
|
|
7
7
|
readonly dict: PDFDict;
|
|
8
8
|
static fromDict: (dict: PDFDict) => AppearanceCharacteristics;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFNumber from '../objects/PDFNumber';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
3
3
|
declare class BorderStyle {
|
|
4
4
|
readonly dict: PDFDict;
|
|
5
5
|
static fromDict: (dict: PDFDict) => BorderStyle;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFName from '../objects/PDFName';
|
|
3
|
-
import PDFStream from '../objects/PDFStream';
|
|
4
|
-
import PDFArray from '../objects/PDFArray';
|
|
5
|
-
import PDFRef from '../objects/PDFRef';
|
|
6
|
-
import PDFNumber from '../objects/PDFNumber';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFName from '../objects/PDFName.js';
|
|
3
|
+
import PDFStream from '../objects/PDFStream.js';
|
|
4
|
+
import PDFArray from '../objects/PDFArray.js';
|
|
5
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
6
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
7
7
|
declare class PDFAnnotation {
|
|
8
8
|
readonly dict: PDFDict;
|
|
9
9
|
static fromDict: (dict: PDFDict) => PDFAnnotation;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import PDFDict from '../objects/PDFDict';
|
|
2
|
-
import PDFName from '../objects/PDFName';
|
|
3
|
-
import PDFRef from '../objects/PDFRef';
|
|
4
|
-
import PDFString from '../objects/PDFString';
|
|
5
|
-
import PDFHexString from '../objects/PDFHexString';
|
|
6
|
-
import PDFContext from '../PDFContext';
|
|
7
|
-
import BorderStyle from './BorderStyle';
|
|
8
|
-
import PDFAnnotation from './PDFAnnotation';
|
|
9
|
-
import AppearanceCharacteristics from './AppearanceCharacteristics';
|
|
1
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
2
|
+
import PDFName from '../objects/PDFName.js';
|
|
3
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
4
|
+
import PDFString from '../objects/PDFString.js';
|
|
5
|
+
import PDFHexString from '../objects/PDFHexString.js';
|
|
6
|
+
import PDFContext from '../PDFContext.js';
|
|
7
|
+
import BorderStyle from './BorderStyle.js';
|
|
8
|
+
import PDFAnnotation from './PDFAnnotation.js';
|
|
9
|
+
import AppearanceCharacteristics from './AppearanceCharacteristics.js';
|
|
10
10
|
declare class PDFWidgetAnnotation extends PDFAnnotation {
|
|
11
11
|
static fromDict: (dict: PDFDict) => PDFWidgetAnnotation;
|
|
12
12
|
static create: (context: PDFContext, parent: PDFRef) => PDFWidgetAnnotation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as PDFAnnotation } from './PDFAnnotation';
|
|
2
|
-
export { default as PDFWidgetAnnotation } from './PDFWidgetAnnotation';
|
|
3
|
-
export { default as AppearanceCharacteristics } from './AppearanceCharacteristics';
|
|
4
|
-
export * from './flags';
|
|
1
|
+
export { default as PDFAnnotation } from './PDFAnnotation.js';
|
|
2
|
+
export { default as PDFWidgetAnnotation } from './PDFWidgetAnnotation.js';
|
|
3
|
+
export { default as AppearanceCharacteristics } from './AppearanceCharacteristics.js';
|
|
4
|
+
export * from './flags.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Font, Fontkit, Glyph, TypeFeatures } from '../../types/fontkit';
|
|
2
|
-
import PDFHexString from '../objects/PDFHexString';
|
|
3
|
-
import PDFRef from '../objects/PDFRef';
|
|
4
|
-
import PDFContext from '../PDFContext';
|
|
5
|
-
import { Cache } from '../../utils';
|
|
1
|
+
import { Font, Fontkit, Glyph, TypeFeatures } from '../../types/fontkit.js';
|
|
2
|
+
import PDFHexString from '../objects/PDFHexString.js';
|
|
3
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
4
|
+
import PDFContext from '../PDFContext.js';
|
|
5
|
+
import { Cache } from '../../utils/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* A note of thanks to the developers of https://github.com/foliojs/pdfkit, as
|
|
8
8
|
* this class borrows from:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Fontkit, Glyph, TypeFeatures } from '../../types/fontkit';
|
|
2
|
-
import CustomFontEmbedder from './CustomFontEmbedder';
|
|
3
|
-
import PDFHexString from '../objects/PDFHexString';
|
|
1
|
+
import { Fontkit, Glyph, TypeFeatures } from '../../types/fontkit.js';
|
|
2
|
+
import CustomFontEmbedder from './CustomFontEmbedder.js';
|
|
3
|
+
import PDFHexString from '../objects/PDFHexString.js';
|
|
4
4
|
/**
|
|
5
5
|
* A note of thanks to the developers of https://github.com/foliojs/pdfkit, as
|
|
6
6
|
* this class borrows from:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import PDFContext from '../PDFContext';
|
|
2
|
-
import PDFRef from '../objects/PDFRef';
|
|
1
|
+
import PDFContext from '../PDFContext.js';
|
|
2
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
3
3
|
declare class JavaScriptEmbedder {
|
|
4
4
|
static for(script: string, scriptName: string): JavaScriptEmbedder;
|
|
5
5
|
private readonly script;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import PDFRef from '../objects/PDFRef';
|
|
2
|
-
import PDFContext from '../PDFContext';
|
|
3
|
-
import PDFPageLeaf from '../structures/PDFPageLeaf';
|
|
4
|
-
import { TransformationMatrix } from '../../types/matrix';
|
|
1
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
2
|
+
import PDFContext from '../PDFContext.js';
|
|
3
|
+
import PDFPageLeaf from '../structures/PDFPageLeaf.js';
|
|
4
|
+
import { TransformationMatrix } from '../../types/matrix.js';
|
|
5
5
|
/**
|
|
6
6
|
* Represents a page bounding box.
|
|
7
7
|
* Usually `left` and `bottom` are 0 and right, top are equal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import PDFRef from '../objects/PDFRef';
|
|
2
|
-
import PDFContext from '../PDFContext';
|
|
1
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
2
|
+
import PDFContext from '../PDFContext.js';
|
|
3
3
|
/**
|
|
4
4
|
* A note of thanks to the developers of https://github.com/foliojs/pdfkit, as
|
|
5
5
|
* this class borrows from:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Font, FontNames, EncodingType } from '@pdf-lib/standard-fonts';
|
|
2
|
-
import PDFHexString from '../objects/PDFHexString';
|
|
3
|
-
import PDFRef from '../objects/PDFRef';
|
|
4
|
-
import PDFContext from '../PDFContext';
|
|
2
|
+
import PDFHexString from '../objects/PDFHexString.js';
|
|
3
|
+
import PDFRef from '../objects/PDFRef.js';
|
|
4
|
+
import PDFContext from '../PDFContext.js';
|
|
5
5
|
export interface Glyph {
|
|
6
6
|
code: number;
|
|
7
7
|
name: string;
|
package/dist/core/errors.d.ts
CHANGED
package/dist/core/index.d.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
export * from './errors';
|
|
2
|
-
export { default as CharCodes } from './syntax/CharCodes';
|
|
3
|
-
export { default as PDFContext } from './PDFContext';
|
|
4
|
-
export { default as PDFObjectCopier } from './PDFObjectCopier';
|
|
5
|
-
export { default as PDFWriter } from './writers/PDFWriter';
|
|
6
|
-
export { default as PDFStreamWriter } from './writers/PDFStreamWriter';
|
|
7
|
-
export { default as PDFHeader } from './document/PDFHeader';
|
|
8
|
-
export { default as PDFTrailer } from './document/PDFTrailer';
|
|
9
|
-
export { default as PDFTrailerDict } from './document/PDFTrailerDict';
|
|
10
|
-
export { default as PDFCrossRefSection } from './document/PDFCrossRefSection';
|
|
11
|
-
export { default as StandardFontEmbedder } from './embedders/StandardFontEmbedder';
|
|
12
|
-
export { default as CustomFontEmbedder } from './embedders/CustomFontEmbedder';
|
|
13
|
-
export { default as CustomFontSubsetEmbedder } from './embedders/CustomFontSubsetEmbedder';
|
|
14
|
-
export { default as FileEmbedder, AFRelationship } from './embedders/FileEmbedder';
|
|
15
|
-
export { default as JpegEmbedder } from './embedders/JpegEmbedder';
|
|
16
|
-
export { default as PngEmbedder } from './embedders/PngEmbedder';
|
|
17
|
-
export { default as PDFPageEmbedder, type PageBoundingBox } from './embedders/PDFPageEmbedder';
|
|
18
|
-
export { default as ViewerPreferences, NonFullScreenPageMode, ReadingDirection, PrintScaling, Duplex, } from './interactive/ViewerPreferences';
|
|
19
|
-
export { default as PDFObject } from './objects/PDFObject';
|
|
20
|
-
export { default as PDFBool } from './objects/PDFBool';
|
|
21
|
-
export { default as PDFNumber } from './objects/PDFNumber';
|
|
22
|
-
export { default as PDFString } from './objects/PDFString';
|
|
23
|
-
export { default as PDFHexString } from './objects/PDFHexString';
|
|
24
|
-
export { default as PDFName } from './objects/PDFName';
|
|
25
|
-
export { default as PDFNull } from './objects/PDFNull';
|
|
26
|
-
export { default as PDFArray } from './objects/PDFArray';
|
|
27
|
-
export { default as PDFDict } from './objects/PDFDict';
|
|
28
|
-
export { default as PDFRef } from './objects/PDFRef';
|
|
29
|
-
export { default as PDFInvalidObject } from './objects/PDFInvalidObject';
|
|
30
|
-
export { default as PDFStream } from './objects/PDFStream';
|
|
31
|
-
export { default as PDFRawStream } from './objects/PDFRawStream';
|
|
32
|
-
export { default as PDFCatalog } from './structures/PDFCatalog';
|
|
33
|
-
export { default as PDFContentStream } from './structures/PDFContentStream';
|
|
34
|
-
export { default as PDFCrossRefStream } from './structures/PDFCrossRefStream';
|
|
35
|
-
export { default as PDFObjectStream } from './structures/PDFObjectStream';
|
|
36
|
-
export { default as PDFPageTree } from './structures/PDFPageTree';
|
|
37
|
-
export { default as PDFPageLeaf } from './structures/PDFPageLeaf';
|
|
38
|
-
export { default as PDFFlateStream } from './structures/PDFFlateStream';
|
|
39
|
-
export { default as PDFOperator } from './operators/PDFOperator';
|
|
40
|
-
export { default as PDFOperatorNames } from './operators/PDFOperatorNames';
|
|
41
|
-
export { default as PDFObjectParser } from './parser/PDFObjectParser';
|
|
42
|
-
export { default as PDFObjectStreamParser } from './parser/PDFObjectStreamParser';
|
|
43
|
-
export { default as PDFParser } from './parser/PDFParser';
|
|
44
|
-
export { default as PDFXRefStreamParser } from './parser/PDFXRefStreamParser';
|
|
45
|
-
export { decodePDFRawStream } from './streams/decode';
|
|
46
|
-
export * from './annotation';
|
|
47
|
-
export * from './acroform';
|
|
1
|
+
export * from './errors.js';
|
|
2
|
+
export { default as CharCodes } from './syntax/CharCodes.js';
|
|
3
|
+
export { default as PDFContext } from './PDFContext.js';
|
|
4
|
+
export { default as PDFObjectCopier } from './PDFObjectCopier.js';
|
|
5
|
+
export { default as PDFWriter } from './writers/PDFWriter.js';
|
|
6
|
+
export { default as PDFStreamWriter } from './writers/PDFStreamWriter.js';
|
|
7
|
+
export { default as PDFHeader } from './document/PDFHeader.js';
|
|
8
|
+
export { default as PDFTrailer } from './document/PDFTrailer.js';
|
|
9
|
+
export { default as PDFTrailerDict } from './document/PDFTrailerDict.js';
|
|
10
|
+
export { default as PDFCrossRefSection } from './document/PDFCrossRefSection.js';
|
|
11
|
+
export { default as StandardFontEmbedder } from './embedders/StandardFontEmbedder.js';
|
|
12
|
+
export { default as CustomFontEmbedder } from './embedders/CustomFontEmbedder.js';
|
|
13
|
+
export { default as CustomFontSubsetEmbedder } from './embedders/CustomFontSubsetEmbedder.js';
|
|
14
|
+
export { default as FileEmbedder, AFRelationship } from './embedders/FileEmbedder.js';
|
|
15
|
+
export { default as JpegEmbedder } from './embedders/JpegEmbedder.js';
|
|
16
|
+
export { default as PngEmbedder } from './embedders/PngEmbedder.js';
|
|
17
|
+
export { default as PDFPageEmbedder, type PageBoundingBox } from './embedders/PDFPageEmbedder.js';
|
|
18
|
+
export { default as ViewerPreferences, NonFullScreenPageMode, ReadingDirection, PrintScaling, Duplex, } from './interactive/ViewerPreferences.js';
|
|
19
|
+
export { default as PDFObject } from './objects/PDFObject.js';
|
|
20
|
+
export { default as PDFBool } from './objects/PDFBool.js';
|
|
21
|
+
export { default as PDFNumber } from './objects/PDFNumber.js';
|
|
22
|
+
export { default as PDFString } from './objects/PDFString.js';
|
|
23
|
+
export { default as PDFHexString } from './objects/PDFHexString.js';
|
|
24
|
+
export { default as PDFName } from './objects/PDFName.js';
|
|
25
|
+
export { default as PDFNull } from './objects/PDFNull.js';
|
|
26
|
+
export { default as PDFArray } from './objects/PDFArray.js';
|
|
27
|
+
export { default as PDFDict } from './objects/PDFDict.js';
|
|
28
|
+
export { default as PDFRef } from './objects/PDFRef.js';
|
|
29
|
+
export { default as PDFInvalidObject } from './objects/PDFInvalidObject.js';
|
|
30
|
+
export { default as PDFStream } from './objects/PDFStream.js';
|
|
31
|
+
export { default as PDFRawStream } from './objects/PDFRawStream.js';
|
|
32
|
+
export { default as PDFCatalog } from './structures/PDFCatalog.js';
|
|
33
|
+
export { default as PDFContentStream } from './structures/PDFContentStream.js';
|
|
34
|
+
export { default as PDFCrossRefStream } from './structures/PDFCrossRefStream.js';
|
|
35
|
+
export { default as PDFObjectStream } from './structures/PDFObjectStream.js';
|
|
36
|
+
export { default as PDFPageTree } from './structures/PDFPageTree.js';
|
|
37
|
+
export { default as PDFPageLeaf } from './structures/PDFPageLeaf.js';
|
|
38
|
+
export { default as PDFFlateStream } from './structures/PDFFlateStream.js';
|
|
39
|
+
export { default as PDFOperator } from './operators/PDFOperator.js';
|
|
40
|
+
export { default as PDFOperatorNames } from './operators/PDFOperatorNames.js';
|
|
41
|
+
export { default as PDFObjectParser } from './parser/PDFObjectParser.js';
|
|
42
|
+
export { default as PDFObjectStreamParser } from './parser/PDFObjectStreamParser.js';
|
|
43
|
+
export { default as PDFParser } from './parser/PDFParser.js';
|
|
44
|
+
export { default as PDFXRefStreamParser } from './parser/PDFXRefStreamParser.js';
|
|
45
|
+
export { decodePDFRawStream } from './streams/decode.js';
|
|
46
|
+
export * from './annotation/index.js';
|
|
47
|
+
export * from './acroform/index.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import PDFArray from '../objects/PDFArray';
|
|
2
|
-
import PDFBool from '../objects/PDFBool';
|
|
3
|
-
import PDFDict from '../objects/PDFDict';
|
|
4
|
-
import PDFName from '../objects/PDFName';
|
|
5
|
-
import PDFNumber from '../objects/PDFNumber';
|
|
6
|
-
import PDFContext from '../PDFContext';
|
|
1
|
+
import PDFArray from '../objects/PDFArray.js';
|
|
2
|
+
import PDFBool from '../objects/PDFBool.js';
|
|
3
|
+
import PDFDict from '../objects/PDFDict.js';
|
|
4
|
+
import PDFName from '../objects/PDFName.js';
|
|
5
|
+
import PDFNumber from '../objects/PDFNumber.js';
|
|
6
|
+
import PDFContext from '../PDFContext.js';
|
|
7
7
|
export declare enum NonFullScreenPageMode {
|
|
8
8
|
/**
|
|
9
9
|
* After exiting FullScreen mode, neither the document outline nor thumbnail
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import PDFBool from './PDFBool';
|
|
2
|
-
import PDFDict from './PDFDict';
|
|
3
|
-
import PDFHexString from './PDFHexString';
|
|
4
|
-
import PDFName from './PDFName';
|
|
5
|
-
import PDFNull from './PDFNull';
|
|
6
|
-
import PDFNumber from './PDFNumber';
|
|
7
|
-
import PDFObject from './PDFObject';
|
|
8
|
-
import PDFRef from './PDFRef';
|
|
9
|
-
import PDFStream from './PDFStream';
|
|
10
|
-
import PDFString from './PDFString';
|
|
11
|
-
import PDFContext from '../PDFContext';
|
|
12
|
-
import PDFRawStream from './PDFRawStream';
|
|
1
|
+
import PDFBool from './PDFBool.js';
|
|
2
|
+
import PDFDict from './PDFDict.js';
|
|
3
|
+
import PDFHexString from './PDFHexString.js';
|
|
4
|
+
import PDFName from './PDFName.js';
|
|
5
|
+
import PDFNull from './PDFNull.js';
|
|
6
|
+
import PDFNumber from './PDFNumber.js';
|
|
7
|
+
import PDFObject from './PDFObject.js';
|
|
8
|
+
import PDFRef from './PDFRef.js';
|
|
9
|
+
import PDFStream from './PDFStream.js';
|
|
10
|
+
import PDFString from './PDFString.js';
|
|
11
|
+
import PDFContext from '../PDFContext.js';
|
|
12
|
+
import PDFRawStream from './PDFRawStream.js';
|
|
13
13
|
declare class PDFArray extends PDFObject {
|
|
14
14
|
static withContext: (context: PDFContext) => PDFArray;
|
|
15
15
|
private readonly array;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import PDFArray from './PDFArray';
|
|
2
|
-
import PDFBool from './PDFBool';
|
|
3
|
-
import PDFHexString from './PDFHexString';
|
|
4
|
-
import PDFName from './PDFName';
|
|
5
|
-
import PDFNull from './PDFNull';
|
|
6
|
-
import PDFNumber from './PDFNumber';
|
|
7
|
-
import PDFObject from './PDFObject';
|
|
8
|
-
import PDFRef from './PDFRef';
|
|
9
|
-
import PDFStream from './PDFStream';
|
|
10
|
-
import PDFString from './PDFString';
|
|
11
|
-
import PDFContext from '../PDFContext';
|
|
1
|
+
import PDFArray from './PDFArray.js';
|
|
2
|
+
import PDFBool from './PDFBool.js';
|
|
3
|
+
import PDFHexString from './PDFHexString.js';
|
|
4
|
+
import PDFName from './PDFName.js';
|
|
5
|
+
import PDFNull from './PDFNull.js';
|
|
6
|
+
import PDFNumber from './PDFNumber.js';
|
|
7
|
+
import PDFObject from './PDFObject.js';
|
|
8
|
+
import PDFRef from './PDFRef.js';
|
|
9
|
+
import PDFStream from './PDFStream.js';
|
|
10
|
+
import PDFString from './PDFString.js';
|
|
11
|
+
import PDFContext from '../PDFContext.js';
|
|
12
12
|
export type DictMap = Map<PDFName, PDFObject>;
|
|
13
13
|
declare class PDFDict extends PDFObject {
|
|
14
14
|
static withContext: (context: PDFContext) => PDFDict;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import PDFDict from './PDFDict';
|
|
2
|
-
import PDFStream from './PDFStream';
|
|
3
|
-
import PDFContext from '../PDFContext';
|
|
4
|
-
import { CipherTransform } from '../crypto';
|
|
1
|
+
import PDFDict from './PDFDict.js';
|
|
2
|
+
import PDFStream from './PDFStream.js';
|
|
3
|
+
import PDFContext from '../PDFContext.js';
|
|
4
|
+
import { CipherTransform } from '../crypto.js';
|
|
5
5
|
declare class PDFRawStream extends PDFStream {
|
|
6
6
|
static of: (dict: PDFDict, contents: Uint8Array, transform?: CipherTransform) => PDFRawStream;
|
|
7
7
|
readonly contents: Uint8Array;
|