happypdf / PDFObjectStream
Class: PDFObjectStream
Defined in: src/core/structures/PDFObjectStream.ts:12
Extends
Properties
contentsCache
protected contentsCache: Cache<Uint8Array<ArrayBufferLike>>;Defined in: src/core/structures/PDFFlateStream.ts:10
Inherited from
dict
readonly dict: PDFDict;Defined in: src/core/objects/PDFStream.ts:10
Inherited from
encode
protected readonly encode: boolean;Defined in: src/core/structures/PDFFlateStream.ts:11
Inherited from
Methods
clone()
clone(context?): PDFObjectStream;Defined in: src/core/structures/PDFObjectStream.ts:43
Parameters
| Parameter | Type |
|---|---|
context? | PDFContext |
Returns
PDFObjectStream
Overrides
computeContents()
computeContents(): Uint8Array;Defined in: src/core/structures/PDFFlateStream.ts:22
Returns
Uint8Array
Inherited from
PDFFlateStream.computeContents
copyBytesInto()
copyBytesInto(buffer, offset): number;Defined in: src/core/objects/PDFStream.ts:65
Parameters
| Parameter | Type |
|---|---|
buffer | Uint8Array |
offset | number |
Returns
number
Inherited from
getContents()
getContents(): Uint8Array;Defined in: src/core/structures/PDFFlateStream.ts:27
Returns
Uint8Array
Inherited from
getContentsSize()
getContentsSize(): number;Defined in: src/core/structures/PDFFlateStream.ts:31
Returns
number
Inherited from
PDFFlateStream.getContentsSize
getContentsString()
getContentsString(): string;Defined in: src/core/structures/PDFObjectStream.ts:51
Returns
string
Overrides
PDFFlateStream.getContentsString
getObjectsCount()
getObjectsCount(): number;Defined in: src/core/structures/PDFObjectStream.ts:39
Returns
number
getUnencodedContents()
getUnencodedContents(): Uint8Array;Defined in: src/core/structures/PDFObjectStream.ts:60
Returns
Uint8Array
Overrides
PDFFlateStream.getUnencodedContents
getUnencodedContentsSize()
getUnencodedContentsSize(): number;Defined in: src/core/structures/PDFObjectStream.ts:71
Returns
number
registerChange()
registerChange(): void;Defined in: src/core/objects/PDFObject.ts:5
Returns
void
Inherited from
sizeInBytes()
sizeInBytes(): number;Defined in: src/core/objects/PDFStream.ts:51
Returns
number
Inherited from
toString()
toString(): string;Defined in: src/core/objects/PDFStream.ts:56
Returns
string
Inherited from
updateContents()
updateContents(contents): void;Defined in: src/core/structures/PDFFlateStream.ts:42
Parameters
| Parameter | Type |
|---|---|
contents | Uint8Array |
Returns
void
Inherited from
updateDict()
updateDict(): void;Defined in: src/core/objects/PDFStream.ts:46
Returns
void
Inherited from
withContextAndObjects()
static withContextAndObjects(
context,
objects,
encode?): PDFObjectStream;Defined in: src/core/structures/PDFObjectStream.ts:13
Parameters
| Parameter | Type | Default value |
|---|---|---|
context | PDFContext | undefined |
objects | IndirectObject[] | undefined |
encode | boolean | true |
Returns
PDFObjectStream