Aspose::Pdf::Facades::PdfAnnotationEditor Class Referencefinal

Represents a class for work with PDF document annotations (comments). More...

Inherits Aspose::Pdf::Facades::SaveableFacade.

Public Member Functions

void ImportAnnotationsFromXfdf (System::String xfdfFile)
 Imports all annotations from XFDF file. More...
 
void ImportAnnotationFromXfdf (System::String xfdfFile)
 Imports all annotations from XFDF file. More...
 
void ImportAnnotationFromXfdf (System::String xfdfFile, System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType > annotType)
 Imports the specified annotations from XFDF file. More...
 
void ImportAnnotationFromXfdf (System::SharedPtr< System::IO::Stream > xfdfStream, System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType > annotType)
 Imports the specified annotations from XFDF data stream. More...
 
void ImportAnnotationsFromXfdf (System::SharedPtr< System::IO::Stream > xfdfStream)
 Imports all annotations from XFDF data stream. More...
 
void ImportAnnotationFromXfdf (System::SharedPtr< System::IO::Stream > xfdfStream)
 Imports all annotations from XFDF data stream. More...
 
void ImportAnnotations (System::ArrayPtr< System::String > annotFile, System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType > annotType)
 Imports the specified annotations into document from array of another PDF documents. More...
 
void ImportAnnotations (System::ArrayPtr< System::String > annotFile)
 Imports annotations into document from array of another PDF documents. More...
 
void ImportAnnotations (System::ArrayPtr< System::SharedPtr< System::IO::Stream >> annotFileStream, System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType > annotType)
 Imports the specified annotations into document from array of another PDF document streams. More...
 
void ImportAnnotations (System::ArrayPtr< System::SharedPtr< System::IO::Stream >> annotFileStream)
 Imports annotations into document from array of another PDF document streams. More...
 
void ModifyAnnotationsAuthor (int32_t start, int32_t end, System::String srcAuthor, System::String desAuthor)
 Modifies the author of annotations on the specified page range. More...
 
void FlatteningAnnotations ()
 Flattens all annotations in the document. More...
 
void FlatteningAnnotations (int32_t start, int32_t end, System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType > annotType)
 Flattens the annotations of the specified types. More...
 
void DeleteAnnotations ()
 Deletes all annotations in the document. More...
 
void DeleteAnnotations (System::String annotType)
 Deletes all annotations of the specified type in the document. More...
 
void DeleteAnnotation (System::String annotName)
 Deletes the annotation with specified annotation name. More...
 
void ExportAnnotationsXfdf (System::SharedPtr< System::IO::Stream > xmlOutputStream, int32_t start, int32_t end, System::ArrayPtr< System::String > annotTypes)
 Exports the content of the specified annotation types into XFDF More...
 
void ExportAnnotationsXfdf (System::SharedPtr< System::IO::Stream > xmlOutputStream, int32_t start, int32_t end, System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType > annotTypes)
 Exports the content of the specified annotations types into XFDF More...
 
void ExportAnnotationsToXfdf (System::SharedPtr< System::IO::Stream > xmlOutputStream)
 Exports More...
 
System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Aspose::Pdf::Annotations::Annotation > > > ExtractAnnotations (int32_t start, int32_t end, System::ArrayPtr< System::String > annotTypes)
 Gets the list of annotations of the specified types. More...
 
System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Aspose::Pdf::Annotations::Annotation > > > ExtractAnnotations (int32_t start, int32_t end, System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType > annotTypes)
 Gets the list of annotations of the specified types. More...
 
 PdfAnnotationEditor ()
 Initializes new PdfAnnotationEditor object. More...
 
 PdfAnnotationEditor (System::SharedPtr< Aspose::Pdf::Document > document)
 Initializes new PdfAnnotationEditor object on base of the document . More...
 
void ModifyAnnotations (int32_t start, int32_t end, System::SharedPtr< Aspose::Pdf::Annotations::Annotation > annotation)
 Modifies the annotations of the specifed type on the specified page range. It supports to modify next annotation properties: Modified, Title, Contents, Color, Subject and Open. More...
 
void RedactArea (int32_t pageIndex, System::SharedPtr< Rectangle > rect, System::Drawing::Color color)
 Redacts area on the specified page. All contents is removed. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::SaveableFacade
virtual void Save (System::String destFile)
 Saves the PDF document to the specified file. More...
 
virtual void Save (System::SharedPtr< System::IO::Stream > destStream)
 Saves the PDF document to the specified stream. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::Facade
System::SharedPtr< Aspose::Pdf::Documentget_Document () const
 Gets the document facade is working on. More...
 
virtual void BindPdf (System::String srcFile)
 Initializes the facade. More...
 
virtual void BindPdf (System::SharedPtr< System::IO::Stream > srcStream)
 Initializes the facade. More...
 
virtual void BindPdf (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 Initializes the facade. More...
 
virtual void Close ()
 Disposes Aspose.Pdf.Document bound with a facade. More...
 
void Dispose ()
 Disposes the facade. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::IFacade
virtual void BindPdf (System::SharedPtr< Document > srcDoc)=0
 Binds PDF document for editing. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 
- Protected Member Functions inherited from Aspose::Pdf::Facades::SaveableFacade
 SaveableFacade ()
 The constructor. More...
 
 SaveableFacade (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 The constructor. More...
 
- Protected Member Functions inherited from Aspose::Pdf::Facades::Facade
 Facade ()
 The constructor. More...
 
 Facade (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 The constructor. More...
 
virtual void BindPdf (System::String srcFile, System::String password)
 Initializes the facade. More...
 
virtual void BindPdf (System::SharedPtr< System::IO::Stream > srcStream, System::String password)
 Initializes the facade. More...
 
virtual void AssertDocument () const
 Asserts if the facade is initialized. More...
 

Detailed Description

Represents a class for work with PDF document annotations (comments).

Constructor & Destructor Documentation

◆ PdfAnnotationEditor() [1/2]

Aspose::Pdf::Facades::PdfAnnotationEditor::PdfAnnotationEditor ( )

Initializes new PdfAnnotationEditor object.

◆ PdfAnnotationEditor() [2/2]

Aspose::Pdf::Facades::PdfAnnotationEditor::PdfAnnotationEditor ( System::SharedPtr< Aspose::Pdf::Document document)

Initializes new PdfAnnotationEditor object on base of the document .

Parameters
documentPdf document.

Member Function Documentation

◆ DeleteAnnotation()

void Aspose::Pdf::Facades::PdfAnnotationEditor::DeleteAnnotation ( System::String  annotName)

Deletes the annotation with specified annotation name.

Parameters
annotNameThe annotation name
editor.BindPdf("example.pdf");
editor.DeleteAnnotation("4cfa69cd-9bff-49e0-9005-e22a77cebf38");
editor.Save("example_out.pdf");

◆ DeleteAnnotations() [1/2]

void Aspose::Pdf::Facades::PdfAnnotationEditor::DeleteAnnotations ( )

Deletes all annotations in the document.

editor.BindPdf("example.pdf");
editor.DeleteAnnotations();
editor.Save("example_out.pdf");

◆ DeleteAnnotations() [2/2]

void Aspose::Pdf::Facades::PdfAnnotationEditor::DeleteAnnotations ( System::String  annotType)

Deletes all annotations of the specified type in the document.

Parameters
annotTypeThe type of annotation will be deleted.
editor.BindPdf("example.pdf");
editor.DeleteAnnotations("Text");
editor.Save("example_out.pdf");

◆ ExportAnnotationsToXfdf()

void Aspose::Pdf::Facades::PdfAnnotationEditor::ExportAnnotationsToXfdf ( System::SharedPtr< System::IO::Stream xmlOutputStream)

Exports

Parameters
xmlOutputStream

◆ ExportAnnotationsXfdf() [1/2]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ExportAnnotationsXfdf ( System::SharedPtr< System::IO::Stream xmlOutputStream,
int32_t  start,
int32_t  end,
System::ArrayPtr< System::String annotTypes 
)

Exports the content of the specified annotation types into XFDF

Parameters
xmlOutputStreamThe output XFDF stream.
startStart page from which the annotations of the document will be exported.
endEnd page to which the annotations of the document will be exported.
annotTypesThe array of annotation types need be exported.
editor.BindPdf("example.pdf");
string[] annotTypes = new string[] {"Text", "Highlight"};
using (Stream stream = File.Create("example.xfdf"))
{
editor.ExportAnnotationsXfdf(stream, 1, 2, annotTypes);
}

◆ ExportAnnotationsXfdf() [2/2]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ExportAnnotationsXfdf ( System::SharedPtr< System::IO::Stream xmlOutputStream,
int32_t  start,
int32_t  end,
System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType annotTypes 
)

Exports the content of the specified annotations types into XFDF

Parameters
xmlOutputStreamThe output XFDF stream.
startStart page from which the annotations of the document will be exported.
endEnd page to which the annotations of the document will be exported.
annotTypesThe array of annotation types need be exported.
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = new AnnotationType[] {AnnotationType.Text, AnnotationType.Highlight};
using (Stream stream = File.Create("example.xfdf"))
{
editor.ExportAnnotationsXfdf(stream, 1, 2, annotTypes);
}

◆ ExtractAnnotations() [1/2]

System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Aspose::Pdf::Annotations::Annotation> > > Aspose::Pdf::Facades::PdfAnnotationEditor::ExtractAnnotations ( int32_t  start,
int32_t  end,
System::ArrayPtr< System::String annotTypes 
)

Gets the list of annotations of the specified types.

Parameters
startStart page from which the annotations will be selected.
endEnd page to which the annotations will be selected.
annotTypesThe array of needed annotation types.
Returns
Annotations list.
editor.BindPdf("example.pdf");
string[] annotTypes = new string[] {"Text", "Highlight"};
IList annotList = editor.ExtractAnnotations(1, 2 , annotTypes);

◆ ExtractAnnotations() [2/2]

System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Aspose::Pdf::Annotations::Annotation> > > Aspose::Pdf::Facades::PdfAnnotationEditor::ExtractAnnotations ( int32_t  start,
int32_t  end,
System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType annotTypes 
)

Gets the list of annotations of the specified types.

Parameters
startStart page from which the annotations will be selected.
endEnd page to which the annotations will be selected.
annotTypesThe array of needed annotation types.
Returns
Annotations list.
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = new AnnotationType[] {AnnotationType.Text, AnnotationType.Highlight};
IList annotList = editor.ExtractAnnotations(1, 2 , annotTypes);

◆ FlatteningAnnotations() [1/2]

void Aspose::Pdf::Facades::PdfAnnotationEditor::FlatteningAnnotations ( )

Flattens all annotations in the document.

editor.BindPdf("example.pdf");
editor.FlatteningAnnotations();
editor.Save(example_out.pdf");

◆ FlatteningAnnotations() [2/2]

void Aspose::Pdf::Facades::PdfAnnotationEditor::FlatteningAnnotations ( int32_t  start,
int32_t  end,
System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType annotType 
)

Flattens the annotations of the specified types.

Parameters
startThe start page.
endThen end page.
annotTypeThe annotation types should be flattened.
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes ={AnnotationType.Line, AnnotationType.FreeText};
editor.FlatteningAnnotations(1, 2, annotTypes);
editor.Save("example_out.pdf");

◆ ImportAnnotationFromXfdf() [1/4]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotationFromXfdf ( System::String  xfdfFile)

Imports all annotations from XFDF file.

Parameters
xfdfFileThe input XFDF file.
editor.BindPdf("example.pdf");
editor.ImportAnnotationsFromXfdf("annots.xfdf");
editor.Save("example_out.pdf");

◆ ImportAnnotationFromXfdf() [2/4]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotationFromXfdf ( System::String  xfdfFile,
System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType annotType 
)

Imports the specified annotations from XFDF file.

Parameters
xfdfFileThe input XFDF file.
annotTypeThe annotations array to be imported.
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotationFromXfdf("annots.xfdf", annotTypes);
editor.Save("example_out.pdf");

◆ ImportAnnotationFromXfdf() [3/4]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotationFromXfdf ( System::SharedPtr< System::IO::Stream xfdfStream,
System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType annotType 
)

Imports the specified annotations from XFDF data stream.

Parameters
xfdfStreamThe input XFDF data stream.
annotTypeThe array of annotation types to be imported.
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes ={ AnnotationType.Highlight, AnnotationType.Line };
editor.ImportAnnotationFromXfdf(File.OpenRead("annots.xfdf"), annotTypes);
editor.Save("example_out.pdf");

◆ ImportAnnotationFromXfdf() [4/4]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotationFromXfdf ( System::SharedPtr< System::IO::Stream xfdfStream)

Imports all annotations from XFDF data stream.

Parameters
xfdfStreamThe input XFDF data stream.
editor.BindPdf("example.pdf");
editor.ImportAnnotationFromXfdf(File.OpenRead("annots.xfdf"));
editor.Save("example_out.pdf");

◆ ImportAnnotations() [1/4]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotations ( System::ArrayPtr< System::String annotFile,
System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType annotType 
)

Imports the specified annotations into document from array of another PDF documents.

Parameters
annotFileThe array of paths of PDF documents that contain source annotations.
annotTypeThe array of annotation types to be imported.
editor.BindPdf("example.pdf");
string[] paths = new string[2] {"with_annots1.pdf", "with_annots2.pdf"};
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotations(paths, annotTypes);
editor.Save("example_out.pdf");

◆ ImportAnnotations() [2/4]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotations ( System::ArrayPtr< System::String annotFile)

Imports annotations into document from array of another PDF documents.

Parameters
annotFileThe array of paths of PDF documents that contain source annotations.
editor.BindPdf("example.pdf");
string[] paths = new string[2] {"with_annots1.pdf", "with_annots2.pdf"};
editor.ImportAnnotations(paths);
editor.Save("example_out.pdf");

◆ ImportAnnotations() [3/4]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotations ( System::ArrayPtr< System::SharedPtr< System::IO::Stream >>  annotFileStream,
System::ArrayPtr< Aspose::Pdf::Annotations::AnnotationType annotType 
)

Imports the specified annotations into document from array of another PDF document streams.

Parameters
annotFileStreamThe array of streams of PDF documents that contain source annotations.
annotTypeThe annotation types to be imported.
editor.BindPdf("example.pdf");
Stream[] streams = new FileStream[2];
stream[0]= File.OpenRead("with_annots1.pdf");
stream[1]= File.OpenRead("with_annots2.pdf");
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotations(streams, annotTypes);
editor.Save("example_out.pdf");
stream[0].Close();
stream[1].Close();

◆ ImportAnnotations() [4/4]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotations ( System::ArrayPtr< System::SharedPtr< System::IO::Stream >>  annotFileStream)

Imports annotations into document from array of another PDF document streams.

Parameters
annotFileStreamThe array of streams of PDF documents that contain source annotations.
editor.BindPdf("example.pdf");
Stream[] streams = new FileStream[2];
streams[0]= File.OpenRead("with_annots1.pdf");
streams[1]= File.OpenRead("with_annots2.pdf");
editor.ImportAnnotations(streams);
editor.Save("example_out.pdf");
streams[0].Close();
streams[1].Close();

◆ ImportAnnotationsFromXfdf() [1/2]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotationsFromXfdf ( System::String  xfdfFile)

Imports all annotations from XFDF file.

Parameters
xfdfFileThe input XFDF file.
editor.BindPdf("example.pdf");
editor.ImportAnnotationsFromXfdf("annots.xfdf");
editor.Save("example_out.pdf");

◆ ImportAnnotationsFromXfdf() [2/2]

void Aspose::Pdf::Facades::PdfAnnotationEditor::ImportAnnotationsFromXfdf ( System::SharedPtr< System::IO::Stream xfdfStream)

Imports all annotations from XFDF data stream.

Parameters
xfdfStreamThe input XFDF data stream.
editor.BindPdf("example.pdf");
editor.ImportAnnotationsFromXfdf(File.OpenRead("annots.xfdf"));
editor.Save("example_out.pdf");

◆ ModifyAnnotations()

void Aspose::Pdf::Facades::PdfAnnotationEditor::ModifyAnnotations ( int32_t  start,
int32_t  end,
System::SharedPtr< Aspose::Pdf::Annotations::Annotation annotation 
)

Modifies the annotations of the specifed type on the specified page range. It supports to modify next annotation properties: Modified, Title, Contents, Color, Subject and Open.

Parameters
startThe start page number.
endThe end page number.
annotationThe annotation object contains new properties.
editor.BindPdf("example.pdf");
TextAnnotation annot = new TextAnnotation();
annot.Modified = DateTime.Now;
annot.Title = "NEW AUTHOR";
annot.Contents = "NEW CONTENTS";
annot.Color = Color.Red;
annot.Subject = "NEW SUBJECT";
annot.Open = true;
editor.ModifyAnnotations(1, 2, annot);
editor.Save("example_out.pdf");

◆ ModifyAnnotationsAuthor()

void Aspose::Pdf::Facades::PdfAnnotationEditor::ModifyAnnotationsAuthor ( int32_t  start,
int32_t  end,
System::String  srcAuthor,
System::String  desAuthor 
)

Modifies the author of annotations on the specified page range.

Parameters
startThe start page number.
endThe end page number.
srcAuthorThe author that must be modified.
desAuthorThe new author.
editor.BindPdf("example.pdf");
editor.ModifyAnnotationsAuthor(1, 2, "PREV AUTHOR", "NEW AUTHOR");
editor.Save("example_out.pdf");

◆ RedactArea()

void Aspose::Pdf::Facades::PdfAnnotationEditor::RedactArea ( int32_t  pageIndex,
System::SharedPtr< Rectangle rect,
System::Drawing::Color  color 
)

Redacts area on the specified page. All contents is removed.

Parameters
pageIndexIndex of the page.
rectArea rectangle.
colorFilling color.