Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# DocumentLibrary.loadDocumentTemplateBuffer Method

Module: DocumentLibrary

## Definition

Loads a document template from a data buffer.

Python

    @staticmethod
    load_document_template_buffer(buffer: bytearray) -> None

Parameters

> `buffer` bytearray
> in A buffer containing the document template data.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Dart

    static void loadDocumentTemplateBuffer(Uint8List? buffer)

Parameters

> `buffer` Uint8List
> in A buffer containing the document template data.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C#

    public static void LoadDocumentTemplateBuffer(byte[] buffer)

Parameters

> `buffer` byte[]
> in A buffer containing the document template data.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Java

    public static void loadDocumentTemplateBuffer(byte[] buffer) throws DocumentException

Parameters

> `buffer` byte[]
> in A buffer containing the document template data.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Swift

    public static func loadDocumentTemplateBuffer(buffer: [UInt8]) throws

Parameters

> `buffer` [UInt8]
> in A buffer containing the document template data.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DocumentLibrary_LoadDocumentTemplateBuffer (
        unsigned char * buffer,
        int bufferSize)

Parameters

> `buffer` unsigned char *
> in A buffer containing the document template data.
> `bufferSize` int
> in Size of the ‘buffer’ buffer.

Returns

> `int`
> An error code.
> See id3DocumentError file for the list of possible error codes.