LEADTOOLS Raster Imaging C DLL Help > Function References > l_prngetembeddedfonts |
#include "Ltprinter.h"
L_LTPRINTER_API L_INT EXT_FUNCTION L_PrnGetEmbeddedFonts( pszDirectoryPath, nJobId, pszFontNames, pnBufferSize, pnElements)
L_TCHAR * pszDirectoryPath; |
/* folder path to copy the fonts to */ |
L_INT nJobId; |
/* job ID*/ |
L_TCHAR * pszFontNames; |
/* fonts buffer */ |
L_INT * pnBufferSize; |
/* size of pszFontNames buffer in bytes */ |
L_INT * pnElements; |
/* number of elements in the pszFontNames buffer */ |
Obtains the embedded fonts attached to a specific print job.
Parameter |
Description |
pszDirectoryPath |
Character string that contains the folder path, to copy the fonts to. |
nJobId |
Job ID to retrieve the fonts from. |
pszFontNames |
A NULL terminated string buffer to be updated with the fonts name. Each font name will be of MAX_PATH length. |
pnBufferSize |
Pointer to an integer to be updated with the size of pszFontNames in bytes. |
pnElements |
Pointer to an integer to be updated with number of elements of pszFontNames. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
To use this function:
Declare two variables of type L_INT and pass the address of the variables as pnBufferSize and pnElements parameters.
Pass NULL for the pszFontNames parameter.
The size will be returned in the variable *pnBufferSize.
Locate a buffer of *pnBufferSize.
Call the function again passing the address of the buffer for pszFontNames.
The embedded fonts are returned in the buffer pszFontNames. Each font will be of MAX_PATH length.
Required DLLs and Libraries
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your LEADTOOLS Virtual Printer Driver Application. |
Win32, x64.
See Also
Functions: |
L_PrnLockPrinter, L_PrnUnlockPrinter, L_PrnUninstallPrinter, L_PrnIsLeadtoolsPrinter |
Topics: |
Example
For an Example, refer to L_PrnGetRemoteData