- DWORD nfxConvertFileDirect (CTAHD ctahd,
char *input_file,
char *output_file,
NFX_CONVERT_PARMS *ptr_convert_parms,
DWORD *ptr_converted_pages)
- ctahd Handle returned by ctaCreateContext
- input_file Name of an existing file to be converted
- output_file Name of file to be created to
receive the conversion output
- ptr_convert_parms Pointer to a structure of parameters which identifies the expected input format and selection options for the output format. The NFX_CONVERT_PARMS structure is defined as follows:
typedef struct
{
DWORD size; /* size of this structure */
DWORD type; /* NFX_TIFF_F */
DWORD resolution; /* NFX_RESOLUTION_HIGH */
/* NFX_RESOLUTION_LOW */
/* NFX_RESOLUTION_SUPER_HIGH */
DWORD encoding; /* NFX_ENCODE_1D or NFX_ENCODE_2D */
DWORD pagewidth; /* NFX_PAGE_WIDTH_A4 */
/* NFX_PAGE_WIDTH_B4 */
/* NFX_PAGE_WIDTH_A3 */
DWORD badlineaction; /* NFX_BAD_LINE_ACTION_DROP */
/* NFX_BAD_LINE_ACTION_REPT */
/* NFX_BAD_LINE_ACTION_TICK */
} NFX_CONVERT_PARMS;
- ptr_converted_pages Pointer to a location to receive a count of the number of pages converted