SetCairoFileName
Miscellaneous functions
Description
Sets the path and file name of the Cairo DLL. The SelectRenderer function can be used to select the Cairo renderer rather than the default GDI+ renderer.
The Cairo DLL is usually dependent on other DLLs. If these are not all stored in the same directory as the application, or a system directory, the Windows API function SetDllDirectory should be used to add the correct path before calling any rendering functions.
Rendering using Cairo is currently experimental.
Syntax
Delphi
function TPDFlib.SetCairoFileName(Const FileName: WideString): Integer;ActiveX
Function PDFlib::SetCairoFileName(FileName As String) As LongDLL
int DLSetCairoFileName(int InstanceID, wchar_t * FileName);Parameters
| FileName | The path and file name of the Cairo DLL. |
|---|
Return values
| 0 | The specified DLL was not a valid Cairo DLL |
|---|---|
| 1 | The specified Cairo DLL was valid |