CreateBuffer

Miscellaneous functions

Description

Creates a buffer that can be used to send strings to PDF Library DLL containing null characters.

Once the buffer has been created, use the AddToBuffer function to add data to the buffer. The data can be added to the buffer in one call, or chunks of data can be sent one at a time until the buffer is full.

When you are finished with the buffer, call the ReleaseBuffer function to release it.

Syntax

DLL

char * DLCreateBuffer(int InstanceID, int BufferLength);

Parameters

BufferLengthThe size in bytes of the buffer that must be created

Return values

0The BufferLength value was less than 1, or the InstanceID was invalid
Non-zeroA PChar that can be passed as any string parameter to other functions