CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfImport.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef _PDFIMPORT_INCLUDED_
25#define _PDFIMPORT_INCLUDED_
26
27#include "RxModule.h"
28#include "RxDictionary.h"
29#include "DynamicLinker.h"
30
32
33#include "OdPlatformSettings.h"
34#include <functional>
35
36#ifdef PDFIMPORT_EXPORTS
37 #define PDFIMPORT_TOOLKIT OD_TOOLKIT_EXPORT
38 #define PDFIMPORT_TOOLKIT_STATIC OD_STATIC_EXPORT
39#else
40 #define PDFIMPORT_TOOLKIT OD_TOOLKIT_IMPORT
41 #define PDFIMPORT_TOOLKIT_STATIC OD_STATIC_IMPORT
42#endif
43
45
46class OdDbDatabase;
47
59using PreferableFontCallback = std::function<OdAnsiString(const char*, const char*, const bool)>;
60
61//DD:EXPORT_ON
62
370
375
381{
382public:
383
388 virtual OdPdfImportPtr create () = 0;
389
390};
391
396
397
404{
406 if ( !pModule.isNull() ) return pModule->create ();
407 return (OdPdfImport*)0;
408}
409
410//DD:EXPORT_OFF
411
412#endif // _PDFIMPORT_INCLUDED_
FIRSTDLL_EXPORT OdRxDynamicLinker * odrxDynamicLinker()
OdSmartPtr< OdRxDictionary > OdRxDictionaryPtr
Definition Gs.h:93
#define OdPdfImportModuleName
OdPdfImportPtr createImporter()
Definition PdfImport.h:403
std::function< OdAnsiString(const char *, const char *, const bool)> PreferableFontCallback
Definition PdfImport.h:59
OdSmartPtr< OdPdfImport > OdPdfImportPtr
Definition PdfImport.h:374
OdSmartPtr< OdPdfImportModule > OdPdfImportModulePtr
Definition PdfImport.h:395
bool isNull() const
virtual OdRxDictionaryPtr properties()=0
virtual void setPreferableFontCallback(PreferableFontCallback callback)=0
@ image_file_error
Definition PdfImport.h:90
@ invalid_page_number
Definition PdfImport.h:88
@ no_objects_imported
Definition PdfImport.h:92
@ font_file_error
Definition PdfImport.h:94
virtual OdPdfImportPtr create()=0
virtual OdRxModulePtr loadApp(const OdString &applicationName, bool silent=true)=0