CFx SDK Documentation  2023 SP0
PdfImportEx.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2018, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2018 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 
31 class PdfProperties;
33 
34 class OdGiRasterImage;
36 
41 class PdfImporterEx : public OdPdfImport
42 {
43 public:
44 
50 
55  virtual ImportResult import() = 0;
56 
61  virtual ImportResult loadDocument() = 0;
62 
67  virtual bool isDocumentLoaded() const = 0;
68 
73  virtual ImportResult loadPage() = 0;
74 
79  virtual bool isPageLoaded() const = 0;
80 
85  virtual OdUInt32 getPageCount() const = 0;
86 
91  virtual double getMeasureDictInfo() = 0;
92 
102  virtual OdPdfImport::ImportResult fillLayersInfo(std::map<std::wstring, bool>& layers_info) = 0;
103 
108  virtual double getPageWidth() const = 0;
109 
114  virtual double getPageHeight() const = 0;
115 
121  virtual void setClipBoundary(const OdGePoint2dArray& clipBoundary, const bool is_clip_boundary_inverted) = 0;
122 
132  virtual void setLayersInfo(std::map<std::wstring, bool>& layers_info) = 0;
133 
137  virtual void clearUnderlayInfo() = 0;
138 
139  virtual int preview( int pic_width, int pic_height, OdGiRasterImagePtr& pImage ) = 0; //FELIX_CHANGE
145  virtual void getImportedObjectsInfo(size_t& object_count, size_t& error_count) = 0;
146 
147 };
148 
153 
154 #endif // _PDF_IMPORTER_EX_INCLUDED_
unsigned int OdUInt32
OdSmartPtr< OdGiRasterImage > OdGiRasterImagePtr
Definition: PdfImportEx.h:34
OdSmartPtr< PdfImporterEx > PdfImporterExPtr
Definition: PdfImportEx.h:152
OdSmartPtr< PdfProperties > PdfPropertiesPtr
Definition: PdfImportEx.h:31
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 int preview(int pic_width, int pic_height, OdGiRasterImagePtr &pImage)=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