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:

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 be of MAX_PATH length.

Required DLLs and Libraries

LTPRINTER

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.

Platforms

Win32, x64.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help