happypdf / PDFContentStream
Class: PDFContentStream
Defined in: src/core/structures/PDFContentStream.ts:7
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?): PDFContentStream;Defined in: src/core/structures/PDFContentStream.ts:22
Parameters
| Parameter | Type |
|---|---|
context? | PDFContext |
Returns
PDFContentStream
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/PDFContentStream.ts:31
Returns
string
Overrides
PDFFlateStream.getContentsString
getUnencodedContents()
getUnencodedContents(): Uint8Array;Defined in: src/core/structures/PDFContentStream.ts:39
Returns
Uint8Array
Overrides
PDFFlateStream.getUnencodedContents
getUnencodedContentsSize()
getUnencodedContentsSize(): number;Defined in: src/core/structures/PDFContentStream.ts:49
Returns
number
of()
static of(
dict,
operators,
encode?): PDFContentStream;Defined in: src/core/structures/PDFContentStream.ts:8
Parameters
| Parameter | Type | Default value |
|---|---|---|
dict | PDFDict | undefined |
operators | PDFOperator[] | undefined |
encode | boolean | true |
Returns
PDFContentStream
push()
push(...operators): void;Defined in: src/core/structures/PDFContentStream.ts:18
Parameters
| Parameter | Type |
|---|---|
...operators | PDFOperator[] |
Returns
void
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