Documentation
 All Classes Functions Variables Properties
Document.h
1 #pragma once
2 #include "FileFormat.h"
3 #include "PdfPage.h"
4 using namespace System::Drawing;
5 using namespace System::Collections::Generic;
6 
7 namespace MST {
8  namespace Imaging {
9 
14  public ref class Document:public FileFormat
15  {
16  public:
17  Document()
18  {
19  m_sRedactRectXML = nullptr;
20  m_RecductionRects = nullptr;
21  m_PageNos = nullptr;
22  m_sWatermarkText = nullptr;
23  m_sFontName = nullptr;
24  m_nFontHeight = 0;
25  m_nRotationAngle = 0;
26  m_nAlignment = Alignment::Center;
27  m_WatermarkColor = Color::Blue;
28  }
29 
33  property bool IsDocument
34  {
35  virtual bool get()override
36  {
37  return true;
38  }
39  }
40 
41  property String^ RedactTextXML
42  {
43  String^ get()
44  {
45  return CreateXML();
46  }
47  }
48 
57  bool Find(System::String^ Text,Dictionary<int,List<System::Drawing::Rectangle>^>^ searchRects,bool MatchCase,bool IsWholeWord);
58  void RedactText(Dictionary<int,List<System::Drawing::Rectangle>^>^ rects,array<int>^ PageNos,Color clr);
59  void RedactArea(System::Drawing::Rectangle rect,int PageNos,Color clr);
60  void AddWaterMark(String^ WatermarkText, String^ FontName ,int FontHeight,int RotationAngle,Alignment alignment, System::Drawing::Color clr);
61  void AdvancedTextSearch(Dictionary<int,List<System::Drawing::Rectangle>^>^ rects,String^ strName, bool keepPrefix, bool RevealLastDigits, int CategoryIndex);
62  private:
63  String^ CreateXML();
64  private:
65  String^ m_sWatermarkText;
66  String^ m_sFontName;
67  int m_nFontHeight;
68  int m_nRotationAngle;
69  Alignment m_nAlignment;
70  Color m_WatermarkColor;
71  Color m_RedactionColor;
72  String^ m_sRedactRectXML;
73  Dictionary<int,List<System::Drawing::Rectangle>^>^ m_RecductionRects;
74  array<int>^ m_PageNos;
75  };
76 }
77 }
Definition: Document.h:14
Definition: FileFormat.h:15