#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 font's name. Each font name will have a 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 the number of elements of pszFontNames. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
To use this function:
1. Declare two variables of type L_INT and pass the address of the variables as pnBufferSize and pnElements parameters.
2. Pass NULL for the pszFontNames parameter.
3. The size will be returned in the variable *pnBufferSize.
4. Locate a buffer of *pnBufferSize.
5. Call the function again passing the address of the buffer for pszFontNames.
6. The embedded fonts are returned in the buffer pszFontNames. Each font will have a 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.
Functions: |
L_PrnLockPrinter, L_PrnUnlockPrinter, L_PrnUninstallPrinter, L_PrnIsLeadtoolsPrinter |
Topics: |
For an Example, refer to L_PrnGetRemoteData