Returns the current internal memory buffer when the document
is created in memory. The internal buffer will be set to a length of 0
when calling this function. You should output or save the return
buffer pointer before calling any other pslib functions. The parameter
size can be used to retrieve the number of
bytes in the buffer.