TextMarkupAnnotation.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/array.h>
5 
6 #include "Aspose.PDF.Cpp/InteractiveFeatures/Annotations/MarkupAnnotation.h"
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 namespace Annotations
14 {
15 class HighlightAnnotation;
16 class SquigglyAnnotation;
17 class StrikeOutAnnotation;
18 class UnderlineAnnotation;
19 } // namespace Annotations
20 class Document;
21 namespace Engine
22 {
23 namespace Data
24 {
25 class IPdfObject;
26 } // namespace Data
27 } // namespace Engine
28 class Matrix;
29 class Page;
30 class Point;
31 class Rectangle;
32 namespace Text
33 {
34 class TextFragmentCollection;
35 } // namespace Text
36 class XForm;
37 } // namespace Pdf
38 } // namespace Aspose
39 namespace System
40 {
41 namespace Xml
42 {
43 class XmlReader;
44 class XmlWriter;
45 } // namespace Xml
46 } // namespace System
47 
48 namespace Aspose {
49 
50 namespace Pdf {
51 
52 namespace Annotations {
53 
58 {
61 
62  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
63  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
64 
69 
70 public:
71 
79  ASPOSE_PDF_SHARED_API void set_QuadPoints(System::ArrayPtr<System::SharedPtr<Point>> value);
80 
85  ASPOSE_PDF_SHARED_API void ChangeAfterResize(System::SharedPtr<Matrix> transform) override;
90  ASPOSE_PDF_SHARED_API System::String GetMarkedText();
96 
97 protected:
98 
106 
111  ASPOSE_PDF_SHARED_API void WriteXfdfAttributes(System::SharedPtr<System::Xml::XmlWriter> writer) override;
116  ASPOSE_PDF_SHARED_API void ReadXfdfAttributes(System::SharedPtr<System::Xml::XmlReader> reader) override;
117  ASPOSE_PDF_SHARED_API void ReadXfdf(System::SharedPtr<System::Xml::XmlReader> reader) override;
118 
119 private:
120 
121  System::SharedPtr<Aspose::Pdf::Text::TextFragmentCollection> GetTextFragmentsForMarkedText(System::SharedPtr<XForm> xform = nullptr);
122 
123 };
124 
125 } // namespace Annotations
126 } // namespace Pdf
127 } // namespace Aspose
128 
129 
Abstract class representing markup annotation.
Definition: MarkupAnnotation.h:82
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
ASPOSE_PDF_SHARED_API void set_QuadPoints(System::ArrayPtr< System::SharedPtr< Point >> value)
Sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasse...
ASPOSE_PDF_SHARED_API void ReadXfdf(System::SharedPtr< System::Xml::XmlReader > reader) override
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::TextFragmentCollection > GetMarkedTextFragments()
Gets text under markup annotation as TextFragmentCollection.
Definition: Artifact.h:67
ASPOSE_PDF_SHARED_API System::ArrayPtr< System::SharedPtr< Point > > get_QuadPoints()
Gets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasse...
ASPOSE_PDF_SHARED_API void ChangeAfterResize(System::SharedPtr< Matrix > transform) override
Updates the QuadPoints, according to the matrix transform.
Represents the squiggly annotation that appears as a jagged underline in the text of a document...
Definition: SquigglyAnnotation.h:53
Represents a highlight annotation that highlights a range of text in the document.
Definition: HighlightAnnotation.h:67
ASPOSE_PDF_SHARED_API System::String GetMarkedText()
Gets text under markup annotation as string.
Represents an underline annotation that appears as an underline in the text of the document...
Definition: UnderlineAnnotation.h:53
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
means saving in XML format
Definition: AFRelationship.h:4
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:15
ASPOSE_PDF_SHARED_API void WriteXfdfAttributes(System::SharedPtr< System::Xml::XmlWriter > writer) override
When overridden in a derived class, exports annotation attributes into XFDF.
A printer&#39;s point (1/72 of an inch).
TextMarkupAnnotation(System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfObject > annotation, System::SharedPtr< Document > document)
The coordinates are in the page coordinate context.
Abstract base class for text markup annotations.
Definition: TextMarkupAnnotation.h:57
Represents a abstract base object can be added to the page(doc.Paragraphs.Add()). ...
Definition: BaseParagraph.h:66
Represents a strikeout annotation that appears as a strikeout in the text of the document.
Definition: StrikeOutAnnotation.h:74
ASPOSE_PDF_SHARED_API void ReadXfdfAttributes(System::SharedPtr< System::Xml::XmlReader > reader) override
When overridden in a derived class, import annotation attributes from XFDF.
Whole PDF file will be submitted.