Skip to content

PDFiumAttachmentWriter

@scaryterry/pdfium


Defined in: src/document/attachment-writer.ts:32

getStringValue(key): string | undefined

Defined in: src/document/attachment-writer.ts:101

Get a string value from this attachment.

ParameterTypeDescription
keystringThe key to get

string | undefined

The string value or undefined if not found


getValueType(key): AttachmentValueType

Defined in: src/document/attachment-writer.ts:85

Get the value type of a key on this attachment.

ParameterTypeDescription
keystringThe key to check

AttachmentValueType

The value type


hasKey(key): boolean

Defined in: src/document/attachment-writer.ts:73

Check if this attachment has a specific key.

ParameterTypeDescription
keystringThe key to check

boolean

True if the key exists


setFile(contents): boolean

Defined in: src/document/attachment-writer.ts:54

Set the file contents of this attachment.

ParameterTypeDescription
contentsUint8ArrayThe file contents

boolean

True if successful


setStringValue(key, value): boolean

Defined in: src/document/attachment-writer.ts:116

Set a string value on this attachment.

ParameterTypeDescription
keystringThe key to set
valuestringThe string value

boolean

True if successful