Click or drag to resize

Doc_getFilePath_callback Delegate

Get the file path of the current document.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public delegate int Doc_getFilePath_callback(
	IPDF_JSPLATFORM pThis,
	IntPtr filePath,
	int length
)

Parameters

pThis  IPDF_JSPLATFORM
Pointer to the interface structure itself
filePath  IntPtr
The string buffer to receive the file path. Can be NULL.
length  Int32
The length of the buffer, number of bytes. Can be 0.

Return Value

Int32
Number of bytes the filePath consumes, including trailing zeros.
Remarks
Required: Yes. The filePath should be always input in local encoding. The return value always indicated number of bytes required for the buffer, even when there is no buffer specified, or the buffer size is less then required. In this case, the buffer will not be modified.
See Also