CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PdfImportEx.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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 _PDF_IMPORTER_EX_INCLUDED_
25#define _PDF_IMPORTER_EX_INCLUDED_
26
27#include "PdfImport.h"
28#include <map>
29#include "Ge/GePoint2dArray.h"
30#define STL_USING_STRING
31#include "OdaSTL.h"
32#include "StringArray.h" //FELIX_CHANGE Build fix
33
34class PdfProperties;
35
40
41class OdGiRasterImage;
43
49{
50public:
51
57
62 virtual ImportResult import() = 0;
63
69
74 virtual bool isDocumentLoaded() const = 0;
75
80 virtual ImportResult loadPage() = 0;
81
86 virtual bool isPageLoaded() const = 0;
87
92 virtual OdUInt32 getPageCount() const = 0;
93
101 virtual double getMeasureDictInfo() = 0;
102
112 virtual OdPdfImport::ImportResult fillLayersInfo(std::map<std::wstring, bool>& layers_info) = 0;
113
118 virtual double getPageWidth() const = 0;
119
124 virtual double getPageHeight() const = 0;
125
131 virtual void setClipBoundary(const OdGePoint2dArray& clipBoundary, const bool is_clip_boundary_inverted) = 0;
132
142 virtual void setLayersInfo(std::map<std::wstring, bool>& layers_info) = 0;
143
147 virtual void clearUnderlayInfo() = 0;
148
149 virtual int preview( int pic_width, int pic_height, OdGiRasterImagePtr& pImage ) = 0; //FELIX_CHANGE
155 virtual void getImportedObjectsInfo(size_t& object_count, size_t& error_count) = 0;
156
166 virtual OdPdfImport::ImportResult fillFontsInfo(std::map<OdAnsiString, OdAnsiString>& font_map) = 0;
167
175
185};
186
191
192#endif // _PDF_IMPORTER_EX_INCLUDED_
unsigned int OdUInt32
std::function< OdAnsiString(const char *, const char *, const bool)> PreferableFontCallback
Definition: PdfImport.h:57
OdSmartPtr< OdGiRasterImage > OdGiRasterImagePtr
Definition: PdfImportEx.h:42
OdSmartPtr< PdfImporterEx > PdfImporterExPtr
Definition: PdfImportEx.h:190
OdSmartPtr< PdfProperties > PdfPropertiesPtr
Definition: PdfImportEx.h:39
virtual void setPreferableFontCallback(PreferableFontCallback callback)=0
virtual OdRxDictionaryPtr properties()=0
virtual OdPdfImport::ImportResult fillLayersInfo(std::map< std::wstring, bool > &layers_info)=0
virtual ImportResult loadPage()=0
virtual void setClipBoundary(const OdGePoint2dArray &clipBoundary, const bool is_clip_boundary_inverted)=0
virtual void setLayersInfo(std::map< std::wstring, bool > &layers_info)=0
virtual double getPageHeight() const =0
virtual bool isPageLoaded() const =0
virtual void getImportedObjectsInfo(size_t &object_count, size_t &error_count)=0
virtual OdPdfImport::ImportResult fillFontsInfo(std::map< OdAnsiString, OdAnsiString > &font_map)=0
virtual int preview(int pic_width, int pic_height, OdGiRasterImagePtr &pImage)=0
virtual OdPdfImport::ImportResult extractEmbededFonts(OdStringArray &font_list) const =0
virtual double getMeasureDictInfo()=0
virtual void clearUnderlayInfo()=0
virtual bool isDocumentLoaded() const =0
virtual OdUInt32 getPageCount() const =0
virtual double getPageWidth() const =0
virtual ImportResult loadDocument()=0