@contentauth/c2pa-node


@contentauth/c2pa-node / ReaderInterface

Interface: ReaderInterface

Defined in: types.d.ts:338

Methods

getHandle()

getHandle(): unknown

Defined in: types.d.ts:369

Get the internal handle for use with Neon bindings

Returns

unknown


isEmbedded()

isEmbedded(): boolean

Defined in: types.d.ts:352

Returns true if the the reader was created from an embedded manifest

Returns

boolean


json()

json(): ManifestStore

Defined in: types.d.ts:342

Get the JSON representation of the manifest

Returns

ManifestStore


remoteUrl()

remoteUrl(): string

Defined in: types.d.ts:347

Get the remote url of the manifest if this reader obtained the manifest remotely

Returns

string


resourceToAsset()

resourceToAsset(uri, output): Promise<ResourceAsset>

Defined in: types.d.ts:361

Write a resource to a buffer or file

Parameters

uri

string

The URI of the resource

output

DestinationAsset

The destination asset (file or buffer)

Returns

Promise<ResourceAsset>

When output is a file, returns the number of bytes written. When output is a buffer, returns an object with the buffer and bytes written.