CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfImport.h File Reference
#include "RxModule.h"
#include "RxDictionary.h"
#include "DynamicLinker.h"
#include "OdPlatformSettings.h"
#include <functional>

Go to the source code of this file.

Classes

class  OdPdfImport
 
class  OdPdfImportModule
 

Macros

#define PDFIMPORT_TOOLKIT   OD_TOOLKIT_IMPORT
 
#define PDFIMPORT_TOOLKIT_STATIC   OD_STATIC_IMPORT
 

Typedefs

using PreferableFontCallback = std::function<OdAnsiString(const char*, const char*, const bool)>
 
typedef OdSmartPtr< OdPdfImportOdPdfImportPtr
 
typedef OdSmartPtr< OdPdfImportModuleOdPdfImportModulePtr
 

Functions

OdPdfImportPtr createImporter ()
 

Macro Definition Documentation

◆ PDFIMPORT_TOOLKIT

#define PDFIMPORT_TOOLKIT   OD_TOOLKIT_IMPORT

Definition at line 40 of file PdfImport.h.

◆ PDFIMPORT_TOOLKIT_STATIC

#define PDFIMPORT_TOOLKIT_STATIC   OD_STATIC_IMPORT

Definition at line 41 of file PdfImport.h.

Typedef Documentation

◆ OdPdfImportModulePtr

A data type that represents a smart pointer to a <link OdPdfImportModule, PDF import module>.

Definition at line 395 of file PdfImport.h.

◆ OdPdfImportPtr

A data type that represents a smart pointer to a <link OdPdfImport, PDF importer> object.

Definition at line 374 of file PdfImport.h.

◆ PreferableFontCallback

using PreferableFontCallback = std::function<OdAnsiString(const char*, const char*, const bool)>

This is a prototype of the function that selects the preferred font function.

Parameters
font_name[in] The name of the current font. The name is the same as the one displayed in the properties of the PDF document.
font_family[in] The FamilyName for the current font.
is_found[in] A flag that determines whether the current font is found in the list of fonts installed in the operating system.
Returns
The name of the preferred font. The preferred font replaces the current system font. If the current system font should not be replaced, the function returns an empty string.

Definition at line 59 of file PdfImport.h.

Function Documentation

◆ createImporter()

OdPdfImportPtr createImporter ( )
inline

Creates an instance of the <link OdPdfImportModule, PDF import module> class.

Returns
Returns a smart pointer to the <link OdPdfImportModule, PDF import module>. <group OdPdfImport_Classes>

Definition at line 403 of file PdfImport.h.