Documentation
 All Classes Functions Variables Properties
PDFPage.h
1 #pragma once
2 #include "Page.h"
3 #include "FileFormat.h"
4 #include "Document.h"
5 using namespace System::IO;
6 using namespace System::Xml;
7 using namespace System::Drawing;
8 using namespace System::Collections::Generic;
9 namespace MST
10 {
11  namespace Imaging
12  {
13  public enum class CategoryIndex : int
14  {
15  None = 0,
16  US_Phone_No = 1,
17  SSN = 2,
18  Email = 3,
19  US_Money = 4,
20  DOB = 5,
21  CreditCard = 6,
22  Name = 7,
23  Commonwealth_Territory_FullName = 8,
24  Commonwealth_Territory_2_letter_abbrev = 9,
25  US_Address = 10,
26  Age = 11,
27  Gender = 12,
28  Race = 13,
29  Account_Number = 14,
30  Policy_Number = 15,
31  Passport_Number = 16,
32  Driver_License = 17,
33  State_FullName = 18,
34  State_2_letter_abbrev = 19,
35  Date = 20,
36  Redact_Between_Brackets = 21,
37  Military_locations_FullName = 22,
38  Military_locations_2_letter_abbrev = 23
39  };
40 
41 
42 
43 
44  public ref class MSTPdfPage : public Page
45  {
46  public:
47  MSTPdfPage(FileFormat^ fileFmt,int iPageNum):Page(fileFmt,iPageNum)
48  {
49  }
50 
51  void RedactText(Color clr,Dictionary<int,List<System::Drawing::Rectangle>^>^ TextRects,array<int>^ PageNos);
52  void AddWaterMark(String^ WatermarkText, String^ FontName ,int FontHeight,int RotationAngle,Alignment alignment, Color clr);
53  void AdvancedTextSearch(Dictionary<int,List<System::Drawing::Rectangle>^>^ rects,String^ strName, bool keepPrefix, bool RevealLastDigits, int CategoryIndex);
54  public:
58  property System::Drawing::Image^ ScaledImage[float,float]
59  {
60  virtual System::Drawing::Image^ get(float x,float y)override
61  {
62  return GetScaledImage(x,y);
63  }
64  }
65  private:
66  System::Drawing::Image^ GetScaledImage(float x,float y);
67  };
68 
69  }
70 }
Definition: PDFPage.h:44
Definition: FileFormat.h:15
Definition: Page.h:13