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::TextSearchOptions > | get_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::TextEditOptions > | get_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::TextReplaceOptions > | get_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::ReplaceTextStrategy > | get_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::Document > | get_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... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
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 TypeInfo & | GetType () 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< Object > | ptr |
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 TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Represents a class to edit PDF file's content.
ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfContentEditor::PdfContentEditor | ( | ) |
The constructor of the PdfContentEditor object.
ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfContentEditor::PdfContentEditor | ( | System::SharedPtr< Aspose::Pdf::Document > | document | ) |
Initializes new PdfContentEditor object on base of the document .
document | Pdf document. |
|
protectedvirtual |
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::AddDocumentAdditionalAction | ( | System::String | eventType, |
System::String | code | ||
) |
Adds additional action for document event.
eventType | The document event types. |
code | The code of JavaScript. |
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::AddDocumentAttachment | ( | System::String | fileAttachmentPath, |
System::String | description | ||
) |
Adds document attachment with no annotation.
fileAttachmentPath | The path of the file will be attached. |
description | The description information. |
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.
fileAttachmentStream | The stream of the file will be attached. |
fileAttachmentName | The attachment name. |
description | The description information. |
|
overridevirtual |
Binds a PDF file for editing.
inputFile | A PDF file to be edited. |
Reimplemented from Aspose::Pdf::Facades::Facade.
|
overridevirtual |
Binds a PDF stream for editing.
inputStream | A PDF stream to be edited. |
Reimplemented from Aspose::Pdf::Facades::Facade.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::ChangeViewerPreference | ( | int32_t | viewerAttribution | ) |
Changes the view preference.
viewerAttribution | The view attribution defined in the ViewerPreference class. |
|
overridevirtual |
Closes opened document.
Reimplemented from Aspose::Pdf::Facades::Facade.
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.
rect | The rectangle for active click. |
application | The path of application to be launched. |
page | The number of original page where rectangle bound with link will be created. |
clr | The colour of rectangle for active click. |
actionName | The array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer. |
///
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.
rect | The rectangle for active click. |
application | The path of application to be launched. |
page | The number of original page where rectangle bound with link will be created. |
clr | The colour of rectangle for active click. |
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.
rect | The rectangle for active click. |
application | The path of application to be launched. |
page | The number of original page where rectangle bound with link will be created. |
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.
title | The title of the bookmark. |
color | The colour of the bookmark's title. |
boldFlag | The flag of bold attribution. |
italicFlag | The flag of italic attribution. |
file | Another file or application required when the action type is "GoToR" or "Launch". |
actionType | The action type. The value can be: "GoToR", "Launch", "GoTo", "URI". |
destination | The local destination or remote destination or URL. |
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.
page | The number of original page where the annotation will be created. |
annotRect | The annotation rectangle defining the location of the annotation on the page. |
caretRect | The actual boundaries of the underlying caret. |
symbol | A symbol will be associated with the caret. Value can be: "P" (Paragraph), "None". |
annotContents | The contents of the annotation. |
color | The color of the annotation. |
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.
rect | The rectangle for active click. |
originalPage | The number of original page where rectangle bound with link will be created. |
color | The colour of rectangle for active click. |
actionName | The array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer. |
///
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.
rect | The annotation rectangle defining the location of the annotation on the page. |
contents | The contents of the annotation. |
filePath | The path of the file will be attached. |
page | The number of original page where the annotation will be created. |
name | The name of an icon will be used in displaying the annotation. This value can be: "Graph", "PushPin", "Paperclip", "Tag". |
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.
rect | The annotation rectangle defining the location of the annotation on the page. |
contents | The contents of the annotation. |
filePath | The path of the file will be attached. |
page | The number of original page where the annotation will be created. |
name | The name of an icon will be used in displaying the annotation. This value can be: "Graph", "PushPin", "Paperclip", "Tag". |
opacity | Icon's opacity from 0 to 1: 0 - completely transparant, 1 - completely opaque. |
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.
rect | The annotation rectangle defining the location of the annotation on the page. |
contents | The contents of the annotation. |
attachmentStream | The attachment file stream. |
attachmentName | The attachment name. |
page | The number of original page where the annotation will be created. |
name | The name of an icon will be used in displaying the annotation. This value can be: "Graph", "PushPin", "Paperclip", "Tag". |
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.
rect | The annotation rectangle defining the location of the annotation on the page. |
contents | The contents of the annotation. |
attachmentStream | The attachment file stream. |
attachmentName | The attachment name. |
page | The number of original page where the annotation will be created. |
name | The name of an icon will be used in displaying the annotation. This value can be: "Graph", "PushPin", "Paperclip", "Tag". |
opacity | Icon's opacity from 0 to 1: 0 - completely transparant, 1 - completely opaque. |
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
rect | The annotation rectangle defining the location of the annotation on the page. |
contents | The contents of the annotation. |
page | The number of original page where the text annotation will be created. |
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.
code | The JavaScript code. |
rect | The rectangle for active click. |
originalPage | The number of original page where rectangle bound with link will be created. |
color | The colour of rectangle for active click. |
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.
rect | The annotation rectangle defining the location of the annotation on the page. |
contents | The contents of the annotation. |
x1 | The starting horizontal coordinate of the line. |
y1 | The starting vertical coordinate of the line. |
x2 | The ending horizontal coordinate of the line. |
y2 | The ending vertical coordinate of the line. |
page | The number of original page where the annotation will be created. |
border | The border width in points. If this value is 0 no border is drawn. Default value is 1. |
clr | The color of line. |
borderStyle | The 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). |
dashArray | A 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". |
LEArray | An 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". |
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.
rect | The rectangle for active click. |
desPage | The destination page. |
originalPage | The number of original page where rectangle bound with local link will be created. |
clr | The colour of rectangle for active click. |
actionName | The array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer. |
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.
rect | The rectangle for active click. |
desPage | The destination page. |
originalPage | The number of original page where rectangle bound with local link will be created. |
clr | The colour of rectangle for active click. |
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.
rect | The rectangle for active click. |
desPage | The destination page. |
originalPage | The number of original page where rectangle bound with local link will be created. |
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.
rect | The rectangle defining the location of the annotation on the page. |
contents | The contents of the annotation. |
type | The type of markup annotation. Can be 0 (Highlight), 1 (Underline), 2 (StrikeOut), 3 (Squiggly). |
page | The number of original page where the annotation will be created. |
clr | The color of markup. |
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::CreateMovie | ( | System::Drawing::Rectangle | rect, |
System::String | filePath, | ||
int32_t | page | ||
) |
Creates Movie Annotations.
rect | The annotation rectangle defining the location of the annotation on the page. |
filePath | The path of movie file to be played. |
page | The page in which the Line annotation is created. |
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.
rect | The rectangle for active click. |
remotePdf | The PDF document which page will be opened. |
originalPage | The number of original page where rectangle bound with link will be created. |
destinationPage | The destination page. |
clr | The colour of rectangle for active click. |
actionName | The array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer. |
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.
rect | The rectangle for active click. |
remotePdf | The PDF document which page will be opened. |
originalPage | The number of original page where rectangle bound with link will be created. |
destinationPage | The destination page. |
clr | The colour of rectangle for active click. |
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.
rect | The rectangle for active click. |
remotePdf | The PDF document which page will be opened. |
originalPage | The number of original page where rectangle bound with link will be created. |
destinationPage | The destination page. |
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.
lineInfo | The instance of LineInfo class. |
page | The number of original page where the annotation will be created. |
annotRect | The annotation rectangle defining the location of the annotation on the page. |
annotContents | The contents of the annotation. |
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.
lineInfo | The instance of LineInfo class. |
page | The number of original page where the annotation will be created. |
annotRect | The annotation rectangle defining the location of the annotation on the page. |
annotContents | The contents of the annotation. |
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.
rect | The annotation rectangle defining the location of the annotation on the page. |
contents | The contents of the annotation. |
open | A flag specifying whether the pop-up annotation should initially be displayed open. |
page | The number of original page where the annotation will be created. |
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.
page | The number of original page where the annotation will be created. |
annotRect | The annotation rectangle defining the location of the annotation on the page. |
icon | An icon is to be used in displaying the annotation. Default value: 'Draft'. |
annotContents | The contents of the annotation. |
color | The color of the annotation. |
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.
page | The number of original page where the annotation will be created. |
annotRect | The annotation rectangle defining the location of the annotation on the page. |
annotContents | The contents of the annotation. |
color | The colour of the annotation. |
appearanceFile | The path of appearance file. |
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.
page | The number of original page where the annotation will be created. |
annotRect | The annotation rectangle defining the location of the annotation on the page. |
annotContents | The contents of the annotation. |
color | The colour of the annotation. |
appearanceStream | The stream of appearance file. |
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.
rect | The annotation rectangle defining the location of the annotation on the page. |
filePath | The file path of sound file. |
name | The name of an icon to be used in displaying the annotation,include:Speaker and Mic. |
page | The page in which the Sound annotation is created. |
rate | The sampling rate, in samples per second. |
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.
rect | The annotation rectangle defining the location of the annotation on the page. |
contents | The contents of the annotation. |
clr | The colour of square or circle. |
square | True (square), false (sircle). |
page | The number of original page where the annotation will be created. |
borderWidth | The border width of square or circle. |
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
rect | The annotation rectangle defining the location of the annotation on the page. |
title | The title of the annotation. |
contents | The contents of the annotation. |
open | A flag specifying whether the annotation should initially be displayed open. |
icon | The name of an icon will be used in displaying the annotation. This value can be: "Comment", "Key", "Note", "Help", "NewParagraph", "Paragraph", "Insert" |
page | The number of original page where the text annotation will be created. |
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.
rect | The rectangle for active click. |
url | The web link destination. |
originalPage | The number of original page on which rectangle bound with web link will be created. |
clr | The colour of rectangle for active click. |
actionName | The array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer. |
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.
rect | The rectangle for active click. |
url | The web link destination. |
originalPage | The number of original page where rectangle bound with web link will be created. |
clr | The colour of rectangle for active click. |
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.
rect | The rectangle for active click. |
url | The web link destination. |
originalPage | The number of original page where rectangle bound with web link will be created. |
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteAttachments | ( | ) |
Deletes all attachments in PDF document.
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.
pageNumber | The number of page on which images must be deleted. |
index | An array repsents images' indexes. |
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteImage | ( | ) |
Deletes all images from PDF document.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteStamp | ( | int32_t | pageNumber, |
System::ArrayPtr< int32_t > | index | ||
) |
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.
pageNumber | Page number where stamp will be deleted. |
stampId | Identifier of stanp which should be deleted. |
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::DeleteStampById | ( | int32_t | stampId | ) |
Delete stamp by ID from all pages of the document.
stampId | Identifier of stamp which should be deleted. |
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.
stampIds | Array of stamp IDs. |
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.
pageNumber | Page number where stamps will be deleted. |
stampIds | Array of stamp IDs. |
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.
lineInfo | The instance of LineInfo class. |
page | The number of original page where the annotation will be created. |
annotRect | The annotation rectangle defining the location of the annotation on the page. |
annotContents | The contents of the annotation. |
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.
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
ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::TextEditOptions> Aspose::Pdf::Facades::PdfContentEditor::get_TextEditOptions | ( | ) | const |
Gets text edit options.
ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::TextReplaceOptions> Aspose::Pdf::Facades::PdfContentEditor::get_TextReplaceOptions | ( | ) | const |
Gets text replace options.
ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::TextSearchOptions> Aspose::Pdf::Facades::PdfContentEditor::get_TextSearchOptions | ( | ) | const |
Gets text search options.
ASPOSE_PDF_SHARED_API System::ArrayPtr<System::SharedPtr<StampInfo> > Aspose::Pdf::Facades::PdfContentEditor::GetStamps | ( | int32_t | pageNumber | ) |
Returns array of stamps on the page.
pageNumber | Page number where stamps will be searched. |
ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::PdfContentEditor::GetViewerPreference | ( | ) |
Returns the view preference.
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.
pageNumber | Number of the page. |
stampId | Identifier of stamp which should be hidden. |
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.
pageNumber | Number of page. |
stampIndex | Index of stamp on the page. |
x | New stamp horizontal position. |
y | New stamp vertical position. |
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.
pageNumber | Numer of page. |
stampId | Identifier of stamp which should be moved. |
x | New stamp horizontal pozition on the page. |
y | New stamp vertical position on the page. |
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.
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.
pageNumber | The number of page on which the image is replaced. |
index | The index of the image object must be replaced. |
imageFile | The image file will be used for replacing. |
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.
srcString | The string to be replaced. |
thePage | Page number (0 means "all pages"). |
destString | The replaced string. |
textState | Text state (Text Color, Font etc). |
ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText | ( | System::String | srcString, |
System::String | destString | ||
) |
Replaces text in the PDF file.
srcString | The string to be replaced. |
destString | Replacing string. |
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.
srcString | The sting to be replaced. |
thePage | Page number (0 for all pages) |
destString | Replacing string. |
ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText | ( | System::String | srcString, |
System::String | destString, | ||
System::SharedPtr< Aspose::Pdf::Text::TextState > | textState | ||
) |
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.
srcString | String to be replaced. |
destString | Replacing string. |
fontSize | Font size. |
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
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::set_TextEditOptions | ( | System::SharedPtr< Aspose::Pdf::Text::TextEditOptions > | value | ) |
Sets text edit options.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::set_TextReplaceOptions | ( | System::SharedPtr< Aspose::Pdf::Text::TextReplaceOptions > | value | ) |
Sets text replace options.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::set_TextSearchOptions | ( | System::SharedPtr< Aspose::Pdf::Text::TextSearchOptions > | value | ) |
Sets text search options.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfContentEditor::ShowStampById | ( | int32_t | pageNumber, |
int32_t | stampId | ||
) |
Shows stamp which was hidden by HiddenStampById.
pageNumber | Number of the page. |
stampId | Identifier of stamp which should be shown. |
|
static |
A document event type. Closes a document.
|
static |
A document event type. Opens a document.
|
static |
A document event type. Excute a action after printing.
|
static |
A document event type. Excute a action after saving.
|
static |
A document event type. Excute a action before printing.
|
static |
A document event type. Excute a action before saving.