Overrides the default path of PDF initialization directories.
#include "ltwrappr.h"
static L_INT LFileSettings::SetPDFInitDir(pszInitDir)
Character string containing the new path of the initialization directory.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The user calls this function to override the default path of the PDF initialization directories. This allows the user to choose which PDF runtime library his or her application loads at runtime.
The default PDF initialization directories path is stored in the system registry key: "HKEY_LOCAL_MACHINE\SOFTWARE\LEAD Technologies, Inc.\Pdf\GS_LIB"
If you call this function with an empty string (length = 0), then the engine will look for the PDF initialization files in the default PDF initialization directories path (specified by the registry key).
The new path must both exist prior to calling the function and contain the Lib, Font, and Resource directories for the PDF Filter. If either of the above is not true, the engine fails and returns an error when the user attempts to load a PDF file.
Win32, x64.
L_INT LFileSettings__SetPDFInitDirExample()
{
L_INT nRet;
L_TCHAR *pszInitDir=NULL;
pszInitDir = (L_TCHAR*)malloc(MAX_PATH*sizeof(L_TCHAR));
nRet = LFileSettings::GetPDFInitDir(pszInitDir, MAX_PATH);
if(nRet != SUCCESS)
return nRet;
nRet = LFileSettings::SetPDFInitDir(pszInitDir);
free(pszInitDir);
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document