LFileSettings::SetPDFInitDir

Summary

Overrides the default path of PDF initialization directories.

Syntax

#include "ltwrappr.h"

static L_INT LFileSettings::SetPDFInitDir(pszInitDir)

Parameters

L_TCHAR * pszInitDir

Character string containing the new path of the initialization directory.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

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.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

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 Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.