Aspose::Pdf::Facades::PdfContentEditor Class Referencefinal

Represents a class to edit PDF file's content. More...

#include "PdfContentEditor.h"

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

Public Member Functions

ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::TextSearchOptionsget_TextSearchOptions () const
 Gets text search options. More...
 
ASPOSE_PDF_SHARED_API void set_TextSearchOptions (System::SharedPtr< Aspose::Pdf::Text::TextSearchOptions > value)
 Sets text search options. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::TextEditOptionsget_TextEditOptions () const
 Gets text edit options. More...
 
ASPOSE_PDF_SHARED_API void set_TextEditOptions (System::SharedPtr< Aspose::Pdf::Text::TextEditOptions > value)
 Sets text edit options. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::TextReplaceOptionsget_TextReplaceOptions () const
 Gets text replace options. More...
 
ASPOSE_PDF_SHARED_API void set_TextReplaceOptions (System::SharedPtr< Aspose::Pdf::Text::TextReplaceOptions > value)
 Sets text replace options. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Facades::ReplaceTextStrategyget_ReplaceTextStrategy () const
 A set of parameters for replace text operation More...
 
ASPOSE_PDF_SHARED_API void set_ReplaceTextStrategy (System::SharedPtr< Aspose::Pdf::Facades::ReplaceTextStrategy > value)
 A set of parameters for replace text operation More...
 
ASPOSE_PDF_SHARED_API void BindPdf (System::String inputFile) override
 Binds a PDF file for editing. More...
 
ASPOSE_PDF_SHARED_API void BindPdf (System::SharedPtr< System::IO::Stream > inputStream) override
 Binds a PDF stream for editing. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Aspose::Pdf::Annotations::Annotation > > > ExtractLink ()
 Extracts the collection of Link instances contained in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateWebLink (System::Drawing::Rectangle rect, System::String url, int32_t originalPage, System::Drawing::Color clr, System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >> actionName)
 Creates a web link in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateWebLink (System::Drawing::Rectangle rect, System::String url, int32_t originalPage, System::Drawing::Color clr)
 Creates a web link in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateWebLink (System::Drawing::Rectangle rect, System::String url, int32_t originalPage)
 Creates a web link in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateLocalLink (System::Drawing::Rectangle rect, int32_t desPage, int32_t originalPage, System::Drawing::Color clr, System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >> actionName)
 Creates a local link in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateLocalLink (System::Drawing::Rectangle rect, int32_t desPage, int32_t originalPage, System::Drawing::Color clr)
 Creates a local link in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreatePdfDocumentLink (System::Drawing::Rectangle rect, System::String remotePdf, int32_t originalPage, int32_t destinationPage, System::Drawing::Color clr, System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >> actionName)
 Creates a link to another PDF document page. More...
 
ASPOSE_PDF_SHARED_API void CreatePdfDocumentLink (System::Drawing::Rectangle rect, System::String remotePdf, int32_t originalPage, int32_t destinationPage, System::Drawing::Color clr)
 Creates a link to another PDF document page. More...
 
ASPOSE_PDF_SHARED_API void CreatePdfDocumentLink (System::Drawing::Rectangle rect, System::String remotePdf, int32_t originalPage, int32_t destinationPage)
 Creates a link to another PDF document page. More...
 
ASPOSE_PDF_SHARED_API void CreateCustomActionLink (System::Drawing::Rectangle rect, int32_t originalPage, System::Drawing::Color color, System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >> actionName)
 Creates a link to custom actions in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateApplicationLink (System::Drawing::Rectangle rect, System::String application, int32_t page, System::Drawing::Color clr, System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >> actionName)
 Creates a link to launch an application in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateApplicationLink (System::Drawing::Rectangle rect, System::String application, int32_t page, System::Drawing::Color clr)
 Creates a link to launch an application in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateApplicationLink (System::Drawing::Rectangle rect, System::String application, int32_t page)
 Creates a link to launch an application in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateJavaScriptLink (System::String code, System::Drawing::Rectangle rect, int32_t originalPage, System::Drawing::Color color)
 Creates a link to JavaScript in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateText (System::Drawing::Rectangle rect, System::String title, System::String contents, bool open, System::String icon, int32_t page)
 Creates text annotation in PDF document More...
 
ASPOSE_PDF_SHARED_API void CreateFreeText (System::Drawing::Rectangle rect, System::String contents, int32_t page)
 Creates free text annotation in PDF document More...
 
ASPOSE_PDF_SHARED_API void CreateMarkup (System::Drawing::Rectangle rect, System::String contents, int32_t type, int32_t page, System::Drawing::Color clr)
 Creates markup annotation it PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreatePopup (System::Drawing::Rectangle rect, System::String contents, bool open, int32_t page)
 Creates popup annotation in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateFileAttachment (System::Drawing::Rectangle rect, System::String contents, System::String filePath, int32_t page, System::String name)
 Creates file attachment annotation. More...
 
ASPOSE_PDF_SHARED_API void CreateFileAttachment (System::Drawing::Rectangle rect, System::String contents, System::String filePath, int32_t page, System::String name, double opacity)
 Creates file attachment annotation. More...
 
ASPOSE_PDF_SHARED_API void CreateFileAttachment (System::Drawing::Rectangle rect, System::String contents, System::SharedPtr< System::IO::Stream > attachmentStream, System::String attachmentName, int32_t page, System::String name)
 Creates file attachment annotation. More...
 
ASPOSE_PDF_SHARED_API void CreateFileAttachment (System::Drawing::Rectangle rect, System::String contents, System::SharedPtr< System::IO::Stream > attachmentStream, System::String attachmentName, int32_t page, System::String name, double opacity)
 Creates file attachment annotation. More...
 
ASPOSE_PDF_SHARED_API void AddDocumentAttachment (System::String fileAttachmentPath, System::String description)
 Adds document attachment with no annotation. More...
 
ASPOSE_PDF_SHARED_API void AddDocumentAttachment (System::SharedPtr< System::IO::Stream > fileAttachmentStream, System::String fileAttachmentName, System::String description)
 Adds document attachment with no annotation. More...
 
ASPOSE_PDF_SHARED_API void DeleteAttachments ()
 Deletes all attachments in PDF document. More...
 
ASPOSE_PDF_SHARED_API void CreateLine (System::Drawing::Rectangle rect, System::String contents, float x1, float y1, float x2, float y2, int32_t page, int32_t border, System::Drawing::Color clr, System::String borderStyle, System::ArrayPtr< int32_t > dashArray, System::ArrayPtr< System::String > LEArray)
 Creates line annotation. More...
 
ASPOSE_PDF_SHARED_API void CreateSquareCircle (System::Drawing::Rectangle rect, System::String contents, System::Drawing::Color clr, bool square, int32_t page, int32_t borderWidth)
 Creates square-circle annotation. More...
 
ASPOSE_PDF_SHARED_API void DrawCurve (System::SharedPtr< LineInfo > lineInfo, int32_t page, System::Drawing::Rectangle annotRect, System::String annotContents)
 Creates curve annotation. More...
 
ASPOSE_PDF_SHARED_API void CreatePolygon (System::SharedPtr< LineInfo > lineInfo, int32_t page, System::Drawing::Rectangle annotRect, System::String annotContents)
 Creates polygon annotation. More...
 
ASPOSE_PDF_SHARED_API void CreatePolyLine (System::SharedPtr< LineInfo > lineInfo, int32_t page, System::Drawing::Rectangle annotRect, System::String annotContents)
 Creates polyline annotation. More...
 
ASPOSE_PDF_SHARED_API void CreateCaret (int32_t page, System::Drawing::Rectangle annotRect, System::Drawing::Rectangle caretRect, System::String symbol, System::String annotContents, System::Drawing::Color color)
 Creates caret annotation. More...
 
ASPOSE_PDF_SHARED_API void CreateRubberStamp (int32_t page, System::Drawing::Rectangle annotRect, System::String icon, System::String annotContents, System::Drawing::Color color)
 Creates a rubber stamp annotation. More...
 
ASPOSE_PDF_SHARED_API void CreateRubberStamp (int32_t page, System::Drawing::Rectangle annotRect, System::String annotContents, System::Drawing::Color color, System::String appearanceFile)
 Creates a rubber stamp annotation. More...
 
ASPOSE_PDF_SHARED_API void CreateRubberStamp (int32_t page, System::Drawing::Rectangle annotRect, System::String annotContents, System::Drawing::Color color, System::SharedPtr< System::IO::Stream > appearanceStream)
 Creates a rubber stamp annotation. More...
 
ASPOSE_PDF_SHARED_API void CreateBookmarksAction (System::String title, System::Drawing::Color color, bool boldFlag, bool italicFlag, System::String file, System::String actionType, System::String destination)
 Creates a bookmark with the specified action. More...
 
ASPOSE_PDF_SHARED_API void AddDocumentAdditionalAction (System::String eventType, System::String code)
 Adds additional action for document event. More...
 
ASPOSE_PDF_SHARED_API void RemoveDocumentOpenAction ()
 Removes open action from the document. This operation is useful when concatenating multiple documents that use explicit 'GoTo' action on startup. More...
 
ASPOSE_PDF_SHARED_API void ChangeViewerPreference (int32_t viewerAttribution)
 Changes the view preference. More...
 
ASPOSE_PDF_SHARED_API int32_t GetViewerPreference ()
 Returns the view preference. More...
 
ASPOSE_PDF_SHARED_API void ReplaceImage (int32_t pageNumber, int32_t index, System::String imageFile)
 Replaces the specified image on the specified page of PDF document with another image. More...
 
ASPOSE_PDF_SHARED_API void DeleteImage (int32_t pageNumber, System::ArrayPtr< int32_t > index)
 Deletes the specified images on the specified page. More...
 
ASPOSE_PDF_SHARED_API void DeleteImage ()
 Deletes all images from PDF document. More...
 
ASPOSE_PDF_SHARED_API bool ReplaceText (System::String srcString, int32_t thePage, System::String destString, System::SharedPtr< Aspose::Pdf::Text::TextState > textState)
 Replaces text in the PDF file on the specified page. TextState object (font family, color) can be specified to replaced text. More...
 
ASPOSE_PDF_SHARED_API bool ReplaceText (System::String srcString, System::String destString)
 Replaces text in the PDF file. More...
 
ASPOSE_PDF_SHARED_API bool ReplaceText (System::String srcString, int32_t thePage, System::String destString)
 Replaces text in the PDF file on the specified page. More...
 
ASPOSE_PDF_SHARED_API bool ReplaceText (System::String srcString, System::String destString, System::SharedPtr< Aspose::Pdf::Text::TextState > textState)
 Replaces text in the PDF file using specified TextState object. More...
 
ASPOSE_PDF_SHARED_API void CreateMovie (System::Drawing::Rectangle rect, System::String filePath, int32_t page)
 Creates Movie Annotations. More...
 
ASPOSE_PDF_SHARED_API void CreateSound (System::Drawing::Rectangle rect, System::String filePath, System::String name, int32_t page, System::String rate)
 Creates Sound Annotations. More...
 
ASPOSE_PDF_SHARED_API void DeleteStamp (int32_t pageNumber, System::ArrayPtr< int32_t > index)
 Deletes multiple stamps on the specified page by stamp indexes. More...
 
ASPOSE_PDF_SHARED_API void DeleteStampByIds (System::ArrayPtr< int32_t > stampIds)
 Deletes stamps with specified IDs from all pages of the document. More...
 
ASPOSE_PDF_SHARED_API void DeleteStampByIds (int32_t pageNumber, System::ArrayPtr< int32_t > stampIds)
 Deletes stamps on the specified page by multiple stamp IDs. More...
 
ASPOSE_PDF_SHARED_API void DeleteStampById (int32_t pageNumber, int32_t stampId)
 Deletes stamp on the specified page by stamp ID. More...
 
ASPOSE_PDF_SHARED_API void HideStampById (int32_t pageNumber, int32_t stampId)
 Hides the stamp. After hiding, stamp visibility may be restored with ShowStampById method. More...
 
ASPOSE_PDF_SHARED_API void ShowStampById (int32_t pageNumber, int32_t stampId)
 Shows stamp which was hidden by HiddenStampById. More...
 
ASPOSE_PDF_SHARED_API void MoveStampById (int32_t pageNumber, int32_t stampId, double x, double y)
 Changes position of the stamp on page. More...
 
ASPOSE_PDF_SHARED_API void MoveStamp (int32_t pageNumber, int32_t stampIndex, double x, double y)
 Changes position of the stamp on page. More...
 
ASPOSE_PDF_SHARED_API void DeleteStampById (int32_t stampId)
 Delete stamp by ID from all pages of the document. More...
 
ASPOSE_PDF_SHARED_API PdfContentEditor ()
 The constructor of the PdfContentEditor object. More...
 
ASPOSE_PDF_SHARED_API PdfContentEditor (System::SharedPtr< Aspose::Pdf::Document > document)
 Initializes new PdfContentEditor object on base of the document . More...
 
ASPOSE_PDF_SHARED_API void CreateLocalLink (System::Drawing::Rectangle rect, int32_t desPage, int32_t originalPage)
 Creates a local link in PDF document. More...
 
ASPOSE_PDF_SHARED_API bool ReplaceText (System::String srcString, System::String destString, int32_t fontSize)
 Replaces text in the PDF file and sets font size. More...
 
ASPOSE_PDF_SHARED_API System::ArrayPtr< System::SharedPtr< StampInfo > > GetStamps (int32_t pageNumber)
 Returns array of stamps on the page. More...
 
ASPOSE_PDF_SHARED_API void Close () override
 Closes opened document. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::SaveableFacade
ASPOSE_PDF_SHARED_API void Save (System::String destFile) override
 Saves the PDF document to the specified file. More...
 
ASPOSE_PDF_SHARED_API void Save (System::SharedPtr< System::IO::Stream > destStream) override
 Saves the PDF document to the specified stream. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::Facade
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Documentget_Document () const
 Gets the document facade is working on. More...
 
ASPOSE_PDF_SHARED_API void BindPdf (System::SharedPtr< Aspose::Pdf::Document > srcDoc) override
 Initializes the facade. More...
 
ASPOSE_PDF_SHARED_API void Dispose () override
 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 reference 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 int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () 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 (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Static Public Attributes

static const ASPOSE_PDF_SHARED_API System::String DocumentOpen
 A document event type. Opens a document. More...
 
static const ASPOSE_PDF_SHARED_API System::String DocumentClose
 A document event type. Closes a document. More...
 
static const ASPOSE_PDF_SHARED_API System::String DocumentWillSave
 A document event type. Excute a action before saving. More...
 
static const ASPOSE_PDF_SHARED_API System::String DocumentSaved
 A document event type. Excute a action after saving. More...
 
static const ASPOSE_PDF_SHARED_API System::String DocumentWillPrint
 A document event type. Excute a action before printing. More...
 
static const ASPOSE_PDF_SHARED_API System::String DocumentPrinted
 A document event type. Excute a action after printing. More...
 

Protected Member Functions

virtual ASPOSE_PDF_SHARED_API ~PdfContentEditor ()
 
- Protected Member Functions inherited from Aspose::Pdf::Facades::SaveableFacade
ASPOSE_PDF_SHARED_API SaveableFacade ()
 The constructor. More...
 
ASPOSE_PDF_SHARED_API SaveableFacade (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 The constructor. More...
 
- Protected Member Functions inherited from Aspose::Pdf::Facades::Facade
bool get__IsObjectLicensed ()
 Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise. More...
 
ASPOSE_PDF_SHARED_API Facade ()
 The constructor. More...
 
ASPOSE_PDF_SHARED_API Facade (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 The constructor. More...
 
virtual ASPOSE_PDF_SHARED_API void BindPdf (System::String srcFile, System::String password)
 Initializes the facade. More...
 
virtual ASPOSE_PDF_SHARED_API void BindPdf (System::SharedPtr< System::IO::Stream > srcStream, System::String password)
 Initializes the facade. More...
 
virtual ASPOSE_PDF_SHARED_API void AssertDocument () const
 Asserts if the facade is initialized. More...
 
virtual ASPOSE_PDF_SHARED_API ~Facade ()
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. 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 ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

Represents a class to edit PDF file's content.

Constructor & Destructor Documentation

◆ PdfContentEditor() [1/2]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfContentEditor::PdfContentEditor ( )

The constructor of the PdfContentEditor object.

◆ PdfContentEditor() [2/2]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfContentEditor::PdfContentEditor ( System::SharedPtr< Aspose::Pdf::Document document)

Initializes new PdfContentEditor object on base of the document .

Parameters
documentPdf document.

◆ ~PdfContentEditor()

virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfContentEditor::~PdfContentEditor ( )
protectedvirtual

Member Function Documentation

◆ AddDocumentAdditionalAction()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::AddDocumentAdditionalAction ( System::String  eventType,
System::String  code 
)

Adds additional action for document event.

Parameters
eventTypeThe document event types.
codeThe code of JavaScript.

◆ AddDocumentAttachment() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::AddDocumentAttachment ( System::String  fileAttachmentPath,
System::String  description 
)

Adds document attachment with no annotation.

Parameters
fileAttachmentPathThe path of the file will be attached.
descriptionThe description information.

◆ AddDocumentAttachment() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::AddDocumentAttachment ( System::SharedPtr< System::IO::Stream fileAttachmentStream,
System::String  fileAttachmentName,
System::String  description 
)

Adds document attachment with no annotation.

Parameters
fileAttachmentStreamThe stream of the file will be attached.
fileAttachmentNameThe attachment name.
descriptionThe description information.

◆ BindPdf() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::BindPdf ( System::String  inputFile)
overridevirtual

Binds a PDF file for editing.

Parameters
inputFileA PDF file to be edited.

Reimplemented from Aspose::Pdf::Facades::Facade.

◆ BindPdf() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::BindPdf ( System::SharedPtr< System::IO::Stream inputStream)
overridevirtual

Binds a PDF stream for editing.

Parameters
inputStreamA PDF stream to be edited.

Reimplemented from Aspose::Pdf::Facades::Facade.

◆ ChangeViewerPreference()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::ChangeViewerPreference ( int32_t  viewerAttribution)

Changes the view preference.

Parameters
viewerAttributionThe view attribution defined in the ViewerPreference class.

◆ Close()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::Close ( )
overridevirtual

Closes opened document.

Reimplemented from Aspose::Pdf::Facades::Facade.

◆ CreateApplicationLink() [1/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateApplicationLink ( System::Drawing::Rectangle  rect,
System::String  application,
int32_t  page,
System::Drawing::Color  clr,
System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >>  actionName 
)

Creates a link to launch an application in PDF document.

Parameters
rectThe rectangle for active click.
applicationThe path of application to be launched.
pageThe number of original page where rectangle bound with link will be created.
clrThe colour of rectangle for active click.
actionNameThe array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer.

///

◆ CreateApplicationLink() [2/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateApplicationLink ( System::Drawing::Rectangle  rect,
System::String  application,
int32_t  page,
System::Drawing::Color  clr 
)

Creates a link to launch an application in PDF document.

Parameters
rectThe rectangle for active click.
applicationThe path of application to be launched.
pageThe number of original page where rectangle bound with link will be created.
clrThe colour of rectangle for active click.

◆ CreateApplicationLink() [3/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateApplicationLink ( System::Drawing::Rectangle  rect,
System::String  application,
int32_t  page 
)

Creates a link to launch an application in PDF document.

Parameters
rectThe rectangle for active click.
applicationThe path of application to be launched.
pageThe number of original page where rectangle bound with link will be created.

◆ CreateBookmarksAction()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateBookmarksAction ( System::String  title,
System::Drawing::Color  color,
bool  boldFlag,
bool  italicFlag,
System::String  file,
System::String  actionType,
System::String  destination 
)

Creates a bookmark with the specified action.

Parameters
titleThe title of the bookmark.
colorThe colour of the bookmark's title.
boldFlagThe flag of bold attribution.
italicFlagThe flag of italic attribution.
fileAnother file or application required when the action type is "GoToR" or "Launch".
actionTypeThe action type. The value can be: "GoToR", "Launch", "GoTo", "URI".
destinationThe local destination or remote destination or URL.

◆ CreateCaret()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateCaret ( int32_t  page,
System::Drawing::Rectangle  annotRect,
System::Drawing::Rectangle  caretRect,
System::String  symbol,
System::String  annotContents,
System::Drawing::Color  color 
)

Creates caret annotation.

Parameters
pageThe number of original page where the annotation will be created.
annotRectThe annotation rectangle defining the location of the annotation on the page.
caretRectThe actual boundaries of the underlying caret.
symbolA symbol will be associated with the caret. Value can be: "P" (Paragraph), "None".
annotContentsThe contents of the annotation.
colorThe color of the annotation.

◆ CreateCustomActionLink()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateCustomActionLink ( System::Drawing::Rectangle  rect,
int32_t  originalPage,
System::Drawing::Color  color,
System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >>  actionName 
)

Creates a link to custom actions in PDF document.

Parameters
rectThe rectangle for active click.
originalPageThe number of original page where rectangle bound with link will be created.
colorThe colour of rectangle for active click.
actionNameThe array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer.

///

◆ CreateFileAttachment() [1/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateFileAttachment ( System::Drawing::Rectangle  rect,
System::String  contents,
System::String  filePath,
int32_t  page,
System::String  name 
)

Creates file attachment annotation.

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
contentsThe contents of the annotation.
filePathThe path of the file will be attached.
pageThe number of original page where the annotation will be created.
nameThe name of an icon will be used in displaying the annotation. This value can be: "Graph", "PushPin", "Paperclip", "Tag".

◆ CreateFileAttachment() [2/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateFileAttachment ( System::Drawing::Rectangle  rect,
System::String  contents,
System::String  filePath,
int32_t  page,
System::String  name,
double  opacity 
)

Creates file attachment annotation.

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
contentsThe contents of the annotation.
filePathThe path of the file will be attached.
pageThe number of original page where the annotation will be created.
nameThe name of an icon will be used in displaying the annotation. This value can be: "Graph", "PushPin", "Paperclip", "Tag".
opacityIcon's opacity from 0 to 1: 0 - completely transparant, 1 - completely opaque.

◆ CreateFileAttachment() [3/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateFileAttachment ( System::Drawing::Rectangle  rect,
System::String  contents,
System::SharedPtr< System::IO::Stream attachmentStream,
System::String  attachmentName,
int32_t  page,
System::String  name 
)

Creates file attachment annotation.

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
contentsThe contents of the annotation.
attachmentStreamThe attachment file stream.
attachmentNameThe attachment name.
pageThe number of original page where the annotation will be created.
nameThe name of an icon will be used in displaying the annotation. This value can be: "Graph", "PushPin", "Paperclip", "Tag".

◆ CreateFileAttachment() [4/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateFileAttachment ( System::Drawing::Rectangle  rect,
System::String  contents,
System::SharedPtr< System::IO::Stream attachmentStream,
System::String  attachmentName,
int32_t  page,
System::String  name,
double  opacity 
)

Creates file attachment annotation.

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
contentsThe contents of the annotation.
attachmentStreamThe attachment file stream.
attachmentNameThe attachment name.
pageThe number of original page where the annotation will be created.
nameThe name of an icon will be used in displaying the annotation. This value can be: "Graph", "PushPin", "Paperclip", "Tag".
opacityIcon's opacity from 0 to 1: 0 - completely transparant, 1 - completely opaque.

◆ CreateFreeText()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateFreeText ( System::Drawing::Rectangle  rect,
System::String  contents,
int32_t  page 
)

Creates free text annotation in PDF document

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
contentsThe contents of the annotation.
pageThe number of original page where the text annotation will be created.

◆ CreateJavaScriptLink()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateJavaScriptLink ( System::String  code,
System::Drawing::Rectangle  rect,
int32_t  originalPage,
System::Drawing::Color  color 
)

Creates a link to JavaScript in PDF document.

Parameters
codeThe JavaScript code.
rectThe rectangle for active click.
originalPageThe number of original page where rectangle bound with link will be created.
colorThe colour of rectangle for active click.

◆ CreateLine()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateLine ( System::Drawing::Rectangle  rect,
System::String  contents,
float  x1,
float  y1,
float  x2,
float  y2,
int32_t  page,
int32_t  border,
System::Drawing::Color  clr,
System::String  borderStyle,
System::ArrayPtr< int32_t >  dashArray,
System::ArrayPtr< System::String LEArray 
)

Creates line annotation.

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
contentsThe contents of the annotation.
x1The starting horizontal coordinate of the line.
y1The starting vertical coordinate of the line.
x2The ending horizontal coordinate of the line.
y2The ending vertical coordinate of the line.
pageThe number of original page where the annotation will be created.
borderThe border width in points. If this value is 0 no border is drawn. Default value is 1.
clrThe color of line.
borderStyleThe border style specifying the width and dash pattern to be used in drawing the line. This value can be: "S" (Solid), "D" (Dashed), "B" (Beveled), "I" (Inset), "U" (Underline).
dashArrayA dash array defining a pattern of dashes and gaps to be used in drawing a dashed border. If it is used, borderSyle must be accordingly set to "D".
LEArrayAn array of two values respectively specifying the beginning and ending style of the drawing line. The values can be: "Square", "Circle", "Diamond", "OpenArrow", "ClosedArrow", "None", "Butt", "ROpenArrow", "RClosedArrow", "Slash".

◆ CreateLocalLink() [1/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateLocalLink ( System::Drawing::Rectangle  rect,
int32_t  desPage,
int32_t  originalPage,
System::Drawing::Color  clr,
System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >>  actionName 
)

Creates a local link in PDF document.

Parameters
rectThe rectangle for active click.
desPageThe destination page.
originalPageThe number of original page where rectangle bound with local link will be created.
clrThe colour of rectangle for active click.
actionNameThe array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer.

◆ CreateLocalLink() [2/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateLocalLink ( System::Drawing::Rectangle  rect,
int32_t  desPage,
int32_t  originalPage,
System::Drawing::Color  clr 
)

Creates a local link in PDF document.

Parameters
rectThe rectangle for active click.
desPageThe destination page.
originalPageThe number of original page where rectangle bound with local link will be created.
clrThe colour of rectangle for active click.

◆ CreateLocalLink() [3/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateLocalLink ( System::Drawing::Rectangle  rect,
int32_t  desPage,
int32_t  originalPage 
)

Creates a local link in PDF document.

Parameters
rectThe rectangle for active click.
desPageThe destination page.
originalPageThe number of original page where rectangle bound with local link will be created.

◆ CreateMarkup()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateMarkup ( System::Drawing::Rectangle  rect,
System::String  contents,
int32_t  type,
int32_t  page,
System::Drawing::Color  clr 
)

Creates markup annotation it PDF document.

Parameters
rectThe rectangle defining the location of the annotation on the page.
contentsThe contents of the annotation.
typeThe type of markup annotation. Can be 0 (Highlight), 1 (Underline), 2 (StrikeOut), 3 (Squiggly).
pageThe number of original page where the annotation will be created.
clrThe color of markup.

◆ CreateMovie()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateMovie ( System::Drawing::Rectangle  rect,
System::String  filePath,
int32_t  page 
)

Creates Movie Annotations.

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
filePathThe path of movie file to be played.
pageThe page in which the Line annotation is created.

◆ CreatePdfDocumentLink() [1/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreatePdfDocumentLink ( System::Drawing::Rectangle  rect,
System::String  remotePdf,
int32_t  originalPage,
int32_t  destinationPage,
System::Drawing::Color  clr,
System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >>  actionName 
)

Creates a link to another PDF document page.

Parameters
rectThe rectangle for active click.
remotePdfThe PDF document which page will be opened.
originalPageThe number of original page where rectangle bound with link will be created.
destinationPageThe destination page.
clrThe colour of rectangle for active click.
actionNameThe array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer.

◆ CreatePdfDocumentLink() [2/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreatePdfDocumentLink ( System::Drawing::Rectangle  rect,
System::String  remotePdf,
int32_t  originalPage,
int32_t  destinationPage,
System::Drawing::Color  clr 
)

Creates a link to another PDF document page.

Parameters
rectThe rectangle for active click.
remotePdfThe PDF document which page will be opened.
originalPageThe number of original page where rectangle bound with link will be created.
destinationPageThe destination page.
clrThe colour of rectangle for active click.

◆ CreatePdfDocumentLink() [3/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreatePdfDocumentLink ( System::Drawing::Rectangle  rect,
System::String  remotePdf,
int32_t  originalPage,
int32_t  destinationPage 
)

Creates a link to another PDF document page.

Parameters
rectThe rectangle for active click.
remotePdfThe PDF document which page will be opened.
originalPageThe number of original page where rectangle bound with link will be created.
destinationPageThe destination page.

◆ CreatePolygon()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreatePolygon ( System::SharedPtr< LineInfo lineInfo,
int32_t  page,
System::Drawing::Rectangle  annotRect,
System::String  annotContents 
)

Creates polygon annotation.

Parameters
lineInfoThe instance of LineInfo class.
pageThe number of original page where the annotation will be created.
annotRectThe annotation rectangle defining the location of the annotation on the page.
annotContentsThe contents of the annotation.

◆ CreatePolyLine()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreatePolyLine ( System::SharedPtr< LineInfo lineInfo,
int32_t  page,
System::Drawing::Rectangle  annotRect,
System::String  annotContents 
)

Creates polyline annotation.

Parameters
lineInfoThe instance of LineInfo class.
pageThe number of original page where the annotation will be created.
annotRectThe annotation rectangle defining the location of the annotation on the page.
annotContentsThe contents of the annotation.

◆ CreatePopup()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreatePopup ( System::Drawing::Rectangle  rect,
System::String  contents,
bool  open,
int32_t  page 
)

Creates popup annotation in PDF document.

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
contentsThe contents of the annotation.
openA flag specifying whether the pop-up annotation should initially be displayed open.
pageThe number of original page where the annotation will be created.

◆ CreateRubberStamp() [1/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateRubberStamp ( int32_t  page,
System::Drawing::Rectangle  annotRect,
System::String  icon,
System::String  annotContents,
System::Drawing::Color  color 
)

Creates a rubber stamp annotation.

Parameters
pageThe number of original page where the annotation will be created.
annotRectThe annotation rectangle defining the location of the annotation on the page.
iconAn icon is to be used in displaying the annotation. Default value: 'Draft'.
annotContentsThe contents of the annotation.
colorThe color of the annotation.

◆ CreateRubberStamp() [2/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateRubberStamp ( int32_t  page,
System::Drawing::Rectangle  annotRect,
System::String  annotContents,
System::Drawing::Color  color,
System::String  appearanceFile 
)

Creates a rubber stamp annotation.

Parameters
pageThe number of original page where the annotation will be created.
annotRectThe annotation rectangle defining the location of the annotation on the page.
annotContentsThe contents of the annotation.
colorThe colour of the annotation.
appearanceFileThe path of appearance file.

◆ CreateRubberStamp() [3/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateRubberStamp ( int32_t  page,
System::Drawing::Rectangle  annotRect,
System::String  annotContents,
System::Drawing::Color  color,
System::SharedPtr< System::IO::Stream appearanceStream 
)

Creates a rubber stamp annotation.

Parameters
pageThe number of original page where the annotation will be created.
annotRectThe annotation rectangle defining the location of the annotation on the page.
annotContentsThe contents of the annotation.
colorThe colour of the annotation.
appearanceStreamThe stream of appearance file.

◆ CreateSound()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateSound ( System::Drawing::Rectangle  rect,
System::String  filePath,
System::String  name,
int32_t  page,
System::String  rate 
)

Creates Sound Annotations.

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
filePathThe file path of sound file.
nameThe name of an icon to be used in displaying the annotation,include:Speaker and Mic.
pageThe page in which the Sound annotation is created.
rateThe sampling rate, in samples per second.

◆ CreateSquareCircle()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateSquareCircle ( System::Drawing::Rectangle  rect,
System::String  contents,
System::Drawing::Color  clr,
bool  square,
int32_t  page,
int32_t  borderWidth 
)

Creates square-circle annotation.

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
contentsThe contents of the annotation.
clrThe colour of square or circle.
squareTrue (square), false (sircle).
pageThe number of original page where the annotation will be created.
borderWidthThe border width of square or circle.

◆ CreateText()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateText ( System::Drawing::Rectangle  rect,
System::String  title,
System::String  contents,
bool  open,
System::String  icon,
int32_t  page 
)

Creates text annotation in PDF document

Parameters
rectThe annotation rectangle defining the location of the annotation on the page.
titleThe title of the annotation.
contentsThe contents of the annotation.
openA flag specifying whether the annotation should initially be displayed open.
iconThe name of an icon will be used in displaying the annotation. This value can be: "Comment", "Key", "Note", "Help", "NewParagraph", "Paragraph", "Insert"
pageThe number of original page where the text annotation will be created.

◆ CreateWebLink() [1/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateWebLink ( System::Drawing::Rectangle  rect,
System::String  url,
int32_t  originalPage,
System::Drawing::Color  clr,
System::ArrayPtr< System::SharedPtr< System::BoxedValueBase >>  actionName 
)

Creates a web link in PDF document.

Parameters
rectThe rectangle for active click.
urlThe web link destination.
originalPageThe number of original page on which rectangle bound with web link will be created.
clrThe colour of rectangle for active click.
actionNameThe array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer.

◆ CreateWebLink() [2/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateWebLink ( System::Drawing::Rectangle  rect,
System::String  url,
int32_t  originalPage,
System::Drawing::Color  clr 
)

Creates a web link in PDF document.

Parameters
rectThe rectangle for active click.
urlThe web link destination.
originalPageThe number of original page where rectangle bound with web link will be created.
clrThe colour of rectangle for active click.

◆ CreateWebLink() [3/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateWebLink ( System::Drawing::Rectangle  rect,
System::String  url,
int32_t  originalPage 
)

Creates a web link in PDF document.

Parameters
rectThe rectangle for active click.
urlThe web link destination.
originalPageThe number of original page where rectangle bound with web link will be created.

◆ DeleteAttachments()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteAttachments ( )

Deletes all attachments in PDF document.

◆ DeleteImage() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteImage ( int32_t  pageNumber,
System::ArrayPtr< int32_t >  index 
)

Deletes the specified images on the specified page.

Parameters
pageNumberThe number of page on which images must be deleted.
indexAn array repsents images' indexes.

◆ DeleteImage() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteImage ( )

Deletes all images from PDF document.

◆ DeleteStamp()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteStamp ( int32_t  pageNumber,
System::ArrayPtr< int32_t >  index 
)

Deletes multiple stamps on the specified page by stamp indexes.

Parameters
pageNumberPage number where stamp will be deleted.
indexStamp indexes.

◆ DeleteStampById() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteStampById ( int32_t  pageNumber,
int32_t  stampId 
)

Deletes stamp on the specified page by stamp ID.

Parameters
pageNumberPage number where stamp will be deleted.
stampIdIdentifier of stanp which should be deleted.

◆ DeleteStampById() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteStampById ( int32_t  stampId)

Delete stamp by ID from all pages of the document.

Parameters
stampIdIdentifier of stamp which should be deleted.

◆ DeleteStampByIds() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteStampByIds ( System::ArrayPtr< int32_t >  stampIds)

Deletes stamps with specified IDs from all pages of the document.

Parameters
stampIdsArray of stamp IDs.

◆ DeleteStampByIds() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteStampByIds ( int32_t  pageNumber,
System::ArrayPtr< int32_t >  stampIds 
)

Deletes stamps on the specified page by multiple stamp IDs.

Parameters
pageNumberPage number where stamps will be deleted.
stampIdsArray of stamp IDs.

◆ DrawCurve()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DrawCurve ( System::SharedPtr< LineInfo lineInfo,
int32_t  page,
System::Drawing::Rectangle  annotRect,
System::String  annotContents 
)

Creates curve annotation.

Parameters
lineInfoThe instance of LineInfo class.
pageThe number of original page where the annotation will be created.
annotRectThe annotation rectangle defining the location of the annotation on the page.
annotContentsThe contents of the annotation.

◆ ExtractLink()

ASPOSE_PDF_SHARED_API System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Aspose::Pdf::Annotations::Annotation> > > Aspose::Pdf::Facades::PdfContentEditor::ExtractLink ( )

Extracts the collection of Link instances contained in PDF document.

Returns
The collection of Link objects

◆ get_ReplaceTextStrategy()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Facades::ReplaceTextStrategy> Aspose::Pdf::Facades::PdfContentEditor::get_ReplaceTextStrategy ( ) const

A set of parameters for replace text operation

◆ get_TextEditOptions()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::TextEditOptions> Aspose::Pdf::Facades::PdfContentEditor::get_TextEditOptions ( ) const

Gets text edit options.

◆ get_TextReplaceOptions()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::TextReplaceOptions> Aspose::Pdf::Facades::PdfContentEditor::get_TextReplaceOptions ( ) const

Gets text replace options.

◆ get_TextSearchOptions()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::TextSearchOptions> Aspose::Pdf::Facades::PdfContentEditor::get_TextSearchOptions ( ) const

Gets text search options.

◆ GetStamps()

ASPOSE_PDF_SHARED_API System::ArrayPtr<System::SharedPtr<StampInfo> > Aspose::Pdf::Facades::PdfContentEditor::GetStamps ( int32_t  pageNumber)

Returns array of stamps on the page.

Parameters
pageNumberPage number where stamps will be searched.
Returns
Array of stamps.

◆ GetViewerPreference()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::PdfContentEditor::GetViewerPreference ( )

Returns the view preference.

Returns
Returns set of ViewerPrefernece flags

◆ HideStampById()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::HideStampById ( int32_t  pageNumber,
int32_t  stampId 
)

Hides the stamp. After hiding, stamp visibility may be restored with ShowStampById method.

Parameters
pageNumberNumber of the page.
stampIdIdentifier of stamp which should be hidden.

◆ MoveStamp()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::MoveStamp ( int32_t  pageNumber,
int32_t  stampIndex,
double  x,
double  y 
)

Changes position of the stamp on page.

Parameters
pageNumberNumber of page.
stampIndexIndex of stamp on the page.
xNew stamp horizontal position.
yNew stamp vertical position.

◆ MoveStampById()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::MoveStampById ( int32_t  pageNumber,
int32_t  stampId,
double  x,
double  y 
)

Changes position of the stamp on page.

Parameters
pageNumberNumer of page.
stampIdIdentifier of stamp which should be moved.
xNew stamp horizontal pozition on the page.
yNew stamp vertical position on the page.

◆ RemoveDocumentOpenAction()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::RemoveDocumentOpenAction ( )

Removes open action from the document. This operation is useful when concatenating multiple documents that use explicit 'GoTo' action on startup.

◆ ReplaceImage()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::ReplaceImage ( int32_t  pageNumber,
int32_t  index,
System::String  imageFile 
)

Replaces the specified image on the specified page of PDF document with another image.

Parameters
pageNumberThe number of page on which the image is replaced.
indexThe index of the image object must be replaced.
imageFileThe image file will be used for replacing.

◆ ReplaceText() [1/5]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText ( System::String  srcString,
int32_t  thePage,
System::String  destString,
System::SharedPtr< Aspose::Pdf::Text::TextState textState 
)

Replaces text in the PDF file on the specified page. TextState object (font family, color) can be specified to replaced text.

Parameters
srcStringThe string to be replaced.
thePagePage number (0 means "all pages").
destStringThe replaced string.
textStateText state (Text Color, Font etc).
Returns
Returns true if replacement was made.

◆ ReplaceText() [2/5]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText ( System::String  srcString,
System::String  destString 
)

Replaces text in the PDF file.

Parameters
srcStringThe string to be replaced.
destStringReplacing string.
Returns
Returns true if replacement was made.

◆ ReplaceText() [3/5]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText ( System::String  srcString,
int32_t  thePage,
System::String  destString 
)

Replaces text in the PDF file on the specified page.

Parameters
srcStringThe sting to be replaced.
thePagePage number (0 for all pages)
destStringReplacing string.
Returns
Returns true if replacement was made.

◆ ReplaceText() [4/5]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText ( System::String  srcString,
System::String  destString,
System::SharedPtr< Aspose::Pdf::Text::TextState textState 
)

Replaces text in the PDF file using specified TextState object.

Parameters
srcStringString to be replaced
destStringReplacing string
textStateText state (Text Color, Font etc)
Returns
Returns true if replacement was made.

◆ ReplaceText() [5/5]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText ( System::String  srcString,
System::String  destString,
int32_t  fontSize 
)

Replaces text in the PDF file and sets font size.

Parameters
srcStringString to be replaced.
destStringReplacing string.
fontSizeFont size.
Returns
Returns true if replacement was made.

◆ set_ReplaceTextStrategy()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::set_ReplaceTextStrategy ( System::SharedPtr< Aspose::Pdf::Facades::ReplaceTextStrategy value)

A set of parameters for replace text operation

◆ set_TextEditOptions()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::set_TextEditOptions ( System::SharedPtr< Aspose::Pdf::Text::TextEditOptions value)

Sets text edit options.

◆ set_TextReplaceOptions()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::set_TextReplaceOptions ( System::SharedPtr< Aspose::Pdf::Text::TextReplaceOptions value)

Sets text replace options.

◆ set_TextSearchOptions()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::set_TextSearchOptions ( System::SharedPtr< Aspose::Pdf::Text::TextSearchOptions value)

Sets text search options.

◆ ShowStampById()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::ShowStampById ( int32_t  pageNumber,
int32_t  stampId 
)

Shows stamp which was hidden by HiddenStampById.

Parameters
pageNumberNumber of the page.
stampIdIdentifier of stamp which should be shown.

Member Data Documentation

◆ DocumentClose

const ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfContentEditor::DocumentClose
static

A document event type. Closes a document.

◆ DocumentOpen

const ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfContentEditor::DocumentOpen
static

A document event type. Opens a document.

◆ DocumentPrinted

const ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfContentEditor::DocumentPrinted
static

A document event type. Excute a action after printing.

◆ DocumentSaved

const ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfContentEditor::DocumentSaved
static

A document event type. Excute a action after saving.

◆ DocumentWillPrint

const ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfContentEditor::DocumentWillPrint
static

A document event type. Excute a action before printing.

◆ DocumentWillSave

const ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfContentEditor::DocumentWillSave
static

A document event type. Excute a action before saving.