MKI_PRINT_PDF (Basic Classes) Changed in Version 2025.1

www.CAD6.com

C++ Syntax

class MKI_PRINT_PDF

{

  public:

 

  MKI_VECTOR m_cPageSize;

  __int32 m_nPageType,

          m_nPageOrient,

          m_nPageDisplay,

          m_nOutputType,

          m_nOutputFlag,

          m_nUnused1,

          m_nUnused2,

          m_nBitmapType,

          m_nGamma,

          m_nUnused3;

  MKI_FILENAMEW m_szProfileNameX4;

 

  void

  Init( void );

 

  bool

  SetPage(

 __int32 f_nPageType,

 bool f_fLandscape ); New in Version 2025.1

};

 

This structure contains PDF export settings.

 

Element Description

PageSize

[MKI_VECTOR] These values state the page's horizontal and vertical size in [mm]. They must be valid even if PageType states an explicit page format. The valid range is 10.0 to 25000.0 inclusive.

Although values up to 25000 millimeters will be accepted here, pages in PDF files are limited to 200 × 200 inches (5080 × 5080 millimeters) as per the PDF standard. Using larger values will result in illegible PDF files.

PageType

[__int32] This value determines the page's size (see MKI_PAGETYPE_*).

PageOrient

[__int32] This value determines whether the page shall have landscape or portrait orientation (see MKI_PAGEORIENT_*).

OutputType

[__int32] Determines which type of PDF file to export (see MKI_PRINTPDF_TYPE_*).

OutputFlag

[__int32] Determines specific PDF export options (see MKI_PRINTPDF_FLAG_*).

Unused1 Renamed in Version 2026.0

[__int32] Currently unused, reserved for later use.

Unused2 Renamed in Version 2026.0

[__int32] Currently unused, reserved for later use.

BitmapType New in Version 2013.2

[__int32] Identifier of the file type the bitmap shall be written to (see MKI_BITMAPMODE_*). Only PNG (lossless compression with alpha channel) and JPEG (different lossy compression levels without alpha channel) are supported. If the original bitmap has an alpha channel, the bitmap will always be exported as PNG regardless of this setting.

Gamma New in Version 2022.1

[__int32] Gamma index for output color processing. Resulting gamma value is 10^(Gamma/100). Allowed values are -100 to 100 (resulting in gamma values of 0.1 to 10.0).

Unused3 Renamed in Version 2026.0

[__int32] Currently unused, reserved for later use.

Unused Renamed in Version 2026.0

[MKI_FILENAMEW] Currently unused, reserved for later use.

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH