InitDirectPDF (class MKI_PRINT_DEVICE) New in Version 2025.1

www.CAD6.com

C++ Syntax

void

MKI_PRINT_DEVICE::InitPDF(

 const LPCWSTR f_pszFileName );

 

Initializes the structure with default values and switches to PDF export using DirectPDF into the given file.

 

While you can use most of the default values, you'll usually want to set at least the page size afterwards using m_cPrintDirectPDF.SetPage().

 

Parameters

f_pszFileName

[const LPCWSTR] Filename to write the PDF file to.

 

Comment

This procedure is a kind of macro that sets all values to default and switches to silent DirectPDF output:

 

m_nType = MKI_PRINTERTYPE_DIRECTPDF;

m_nOutputMode = MKI_PRINTOUTPUT_USER_FILE;

MKI_CopyW( m_szOutputFile, f_pszFileName );

m_cPrintDirectPDF.m_nOutputFlag = MKI_PRINTPDF_FLAG_NONE;

 

CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH