Represents a class to edit PDF file's content. More...
Inherits Aspose::Pdf::Facades::SaveableFacade.
Public Member Functions | |
System::SharedPtr< Aspose::Pdf::Text::TextSearchOptions > | get_TextSearchOptions () const |
Gets text search options. More... | |
void | set_TextSearchOptions (System::SharedPtr< Aspose::Pdf::Text::TextSearchOptions > value) |
Sets text search options. More... | |
System::SharedPtr< Aspose::Pdf::Text::TextEditOptions > | get_TextEditOptions () const |
Gets text edit options. More... | |
void | set_TextEditOptions (System::SharedPtr< Aspose::Pdf::Text::TextEditOptions > value) |
Sets text edit options. More... | |
System::SharedPtr< Aspose::Pdf::Text::TextReplaceOptions > | get_TextReplaceOptions () const |
Gets text replace options. More... | |
void | set_TextReplaceOptions (System::SharedPtr< Aspose::Pdf::Text::TextReplaceOptions > value) |
Sets text replace options. More... | |
System::SharedPtr< Aspose::Pdf::Facades::ReplaceTextStrategy > | get_ReplaceTextStrategy () const |
A set of parameters for replace text operation More... | |
void | set_ReplaceTextStrategy (System::SharedPtr< Aspose::Pdf::Facades::ReplaceTextStrategy > value) |
A set of parameters for replace text operation More... | |
virtual void | BindPdf (System::String inputFile) |
Binds a PDF file for editing. More... | |
virtual void | BindPdf (System::SharedPtr< System::IO::Stream > inputStream) |
Binds a PDF stream for editing. More... | |
System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Aspose::Pdf::Annotations::Annotation > > > | ExtractLink () |
Extracts the collection of Link instances contained in PDF document. More... | |
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... | |
void | CreateWebLink (System::Drawing::Rectangle rect, System::String url, int32_t originalPage, System::Drawing::Color clr) |
Creates a web link in PDF document. More... | |
void | CreateWebLink (System::Drawing::Rectangle rect, System::String url, int32_t originalPage) |
Creates a web link in PDF document. More... | |
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... | |
void | CreateLocalLink (System::Drawing::Rectangle rect, int32_t desPage, int32_t originalPage, System::Drawing::Color clr) |
Creates a local link in PDF document. More... | |
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... | |
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... | |
void | CreatePdfDocumentLink (System::Drawing::Rectangle rect, System::String remotePdf, int32_t originalPage, int32_t destinationPage) |
Creates a link to another PDF document page. More... | |
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... | |
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... | |
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... | |
void | CreateApplicationLink (System::Drawing::Rectangle rect, System::String application, int32_t page) |
Creates a link to launch an application in PDF document. More... | |
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... | |
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... | |
void | CreateFreeText (System::Drawing::Rectangle rect, System::String contents, int32_t page) |
Creates free text annotation in PDF document More... | |
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... | |
void | CreatePopup (System::Drawing::Rectangle rect, System::String contents, bool open, int32_t page) |
Creates popup annotation in PDF document. More... | |
void | CreateFileAttachment (System::Drawing::Rectangle rect, System::String contents, System::String filePath, int32_t page, System::String name) |
Creates file attachment annotation. More... | |
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... | |
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... | |
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... | |
void | AddDocumentAttachment (System::String fileAttachmentPath, System::String description) |
Adds document attachment with no annotation. More... | |
void | AddDocumentAttachment (System::SharedPtr< System::IO::Stream > fileAttachmentStream, System::String fileAttachmentName, System::String description) |
Adds document attachment with no annotation. More... | |
void | DeleteAttachments () |
Deletes all attachments in PDF document. More... | |
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... | |
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... | |
void | DrawCurve (System::SharedPtr< LineInfo > lineInfo, int32_t page, System::Drawing::Rectangle annotRect, System::String annotContents) |
Creates curve annotation. More... | |
void | CreatePolygon (System::SharedPtr< LineInfo > lineInfo, int32_t page, System::Drawing::Rectangle annotRect, System::String annotContents) |
Creates polygon annotation. More... | |
void | CreatePolyLine (System::SharedPtr< LineInfo > lineInfo, int32_t page, System::Drawing::Rectangle annotRect, System::String annotContents) |
Creates polyline annotation. More... | |
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... | |
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... | |
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... | |
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... | |
*editor | Save ("example_out.pdf") |
Creates a bookmark with the specified action. More... | |
*</code > *</example > *void | CreateBookmarksAction (System::String title, System::Drawing::Color color, bool boldFlag, bool italicFlag, System::String file, System::String actionType, System::String destination) |
void | AddDocumentAdditionalAction (System::String eventType, System::String code) |
Adds additional action for document event. More... | |
void | RemoveDocumentOpenAction () |
Removes open action from the document. This operation is useful when concatenating multiple documents that use explicit 'GoTo' action on startup. More... | |
void | ChangeViewerPreference (int32_t viewerAttribution) |
Changes the view preference. More... | |
int32_t | GetViewerPreference () |
Returns the view preference. More... | |
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... | |
void | DeleteImage (int32_t pageNumber, System::ArrayPtr< int32_t > index) |
Deletes the specified images on the specified page. More... | |
void | DeleteImage () |
Deletes all images from PDF document. More... | |
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... | |
bool | ReplaceText (System::String srcString, System::String destString) |
Replaces text in the PDF file. More... | |
bool | ReplaceText (System::String srcString, int32_t thePage, System::String destString) |
Replaces text in the PDF file on the specified page. More... | |
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... | |
void | CreateMovie (System::Drawing::Rectangle rect, System::String filePath, int32_t page) |
Creates Movie Annotations. More... | |
void | CreateSound (System::Drawing::Rectangle rect, System::String filePath, System::String name, int32_t page, System::String rate) |
Creates Sound Annotations. More... | |
void | DeleteStamp (int32_t pageNumber, System::ArrayPtr< int32_t > index) |
Deletes multiple stamps on the specified page by stamp indexes. More... | |
void | DeleteStampByIds (System::ArrayPtr< int32_t > stampIds) |
Deletes stamps with specified IDs from all pages of the document. More... | |
void | DeleteStampByIds (int32_t pageNumber, System::ArrayPtr< int32_t > stampIds) |
Deletes stamps on the specified page by multiple stamp IDs. More... | |
void | DeleteStampById (int32_t pageNumber, int32_t stampId) |
Deletes stamp on the specified page by stamp ID. More... | |
void | HideStampById (int32_t pageNumber, int32_t stampId) |
Hides the stamp. After hiding, stamp visibility may be restored with ShowStampById method. More... | |
void | ShowStampById (int32_t pageNumber, int32_t stampId) |
Shows stamp which was hidden by HiddenStampById. More... | |
void | MoveStampById (int32_t pageNumber, int32_t stampId, double x, double y) |
Changes position of the stamp on page. More... | |
void | MoveStamp (int32_t pageNumber, int32_t stampIndex, double x, double y) |
Changes position of the stamp on page. More... | |
void | DeleteStampById (int32_t stampId) |
Delete stamp by ID from all pages of the document. More... | |
PdfContentEditor () | |
The constructor of the PdfContentEditor object. More... | |
PdfContentEditor (System::SharedPtr< Aspose::Pdf::Document > document) | |
Initializes new PdfContentEditor object on base of the document . More... | |
void | CreateLocalLink (System::Drawing::Rectangle rect, int32_t desPage, int32_t originalPage) |
Creates a local link in PDF document. More... | |
bool | ReplaceText (System::String srcString, System::String destString, int32_t fontSize) |
Replaces text in the PDF file and sets font size. More... | |
System::ArrayPtr< System::SharedPtr< StampInfo > > | GetStamps (int32_t pageNumber) |
Returns array of stamps on the page. More... | |
virtual void | Close () |
Closes opened document. More... | |
![]() | |
virtual void | Save (System::String destFile) |
Saves the PDF document to the specified file. More... | |
virtual void | Save (System::SharedPtr< System::IO::Stream > destStream) |
Saves the PDF document to the specified stream. More... | |
![]() | |
System::SharedPtr< Aspose::Pdf::Document > | get_Document () const |
Gets the document facade is working on. More... | |
void | SetVentureLicense (System::SharedPtr< Aspose::Pdf::LicenseManagement::VentureLicense > license) |
System::SharedPtr< Aspose::Pdf::LicenseManagement::VentureLicense > | GetVentureLicense () |
virtual void | BindPdf (System::SharedPtr< Aspose::Pdf::Document > srcDoc) |
Initializes the facade. More... | |
void | Dispose () |
Disposes the facade. More... | |
![]() | |
virtual void | BindPdf (System::SharedPtr< Document > srcDoc)=0 |
Binds PDF document for editing. More... | |
![]() | |
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 refernce counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () 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 (unsigned int argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
![]() | |
virtual void | SetVentureLicense (System::SharedPtr< VentureLicense > license)=0 |
Static Public Attributes | |
static const System::String | DocumentOpen |
A document event type. Opens a document. More... | |
static const System::String | DocumentClose |
A document event type. Closes a document. More... | |
static const System::String | DocumentWillSave |
A document event type. Excute a action before saving. More... | |
static const System::String | DocumentSaved |
A document event type. Excute a action after saving. More... | |
static const System::String | DocumentWillPrint |
A document event type. Excute a action before printing. More... | |
static const System::String | DocumentPrinted |
A document event type. Excute a action after printing. More... | |
Protected Member Functions | |
virtual | ~PdfContentEditor () |
![]() | |
SaveableFacade () | |
The constructor. More... | |
SaveableFacade (System::SharedPtr< Aspose::Pdf::Document > srcDoc) | |
The constructor. More... | |
![]() | |
bool | get__IsObjectLicensed () |
Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise. More... | |
Facade () | |
The constructor. More... | |
Facade (System::SharedPtr< Aspose::Pdf::Document > srcDoc) | |
The constructor. More... | |
virtual void | BindPdf (System::String srcFile, System::String password) |
Initializes the facade. More... | |
virtual void | BindPdf (System::SharedPtr< System::IO::Stream > srcStream, System::String password) |
Initializes the facade. More... | |
virtual void | AssertDocument () const |
Asserts if the facade is initialized. More... | |
virtual | ~Facade () |
Additional Inherited Members | |
![]() | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
typedef System::Details::SharedMembersType | shared_members_type |
structure to keep list of shared pointers contained in object. More... | |
![]() | |
static 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 () |
Impleemnts C# typeof(System.Object) construct. More... | |
Represents a class to edit PDF file's content.
Aspose::Pdf::Facades::PdfContentEditor::PdfContentEditor | ( | ) |
The constructor of the PdfContentEditor object.
Aspose::Pdf::Facades::PdfContentEditor::PdfContentEditor | ( | System::SharedPtr< Aspose::Pdf::Document > | document | ) |
Initializes new PdfContentEditor object on base of the document .
document | Pdf document. |
|
protectedvirtual |
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. |
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. |
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. |
|
virtual |
Binds a PDF file for editing.
inputFile | A PDF file to be edited. |
Reimplemented from Aspose::Pdf::Facades::Facade.
|
virtual |
Binds a PDF stream for editing.
inputStream | A PDF stream to be edited. |
Reimplemented from Aspose::Pdf::Facades::Facade.
void Aspose::Pdf::Facades::PdfContentEditor::ChangeViewerPreference | ( | int32_t | viewerAttribution | ) |
Changes the view preference.
viewerAttribution | The view attribution defined in the ViewerPreference class. |
|
virtual |
Closes opened document.
Reimplemented from Aspose::Pdf::Facades::Facade.
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. |
///
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. |
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. |
*</code> *</example> * 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 | ||
) |
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 colour of the annotation. |
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. |
///
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". |
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. |
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". |
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. |
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. |
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. |
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". |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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'."</param> <param name="annotContents">The contents of the annotation.</param> <param name="color">The colour of the annotation. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
void Aspose::Pdf::Facades::PdfContentEditor::DeleteAttachments | ( | ) |
Deletes all attachments in PDF document.
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. |
void Aspose::Pdf::Facades::PdfContentEditor::DeleteImage | ( | ) |
Deletes all images from PDF document.
void Aspose::Pdf::Facades::PdfContentEditor::DeleteStamp | ( | int32_t | pageNumber, |
System::ArrayPtr< int32_t > | index | ||
) |
Deletes multiple stamps on the specified page by stamp indexes.
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. |
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. |
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. |
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. |
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. |
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.
System::SharedPtr<Aspose::Pdf::Facades::ReplaceTextStrategy> Aspose::Pdf::Facades::PdfContentEditor::get_ReplaceTextStrategy | ( | ) | const |
A set of parameters for replace text operation
System::SharedPtr<Aspose::Pdf::Text::TextEditOptions> Aspose::Pdf::Facades::PdfContentEditor::get_TextEditOptions | ( | ) | const |
Gets text edit options.
System::SharedPtr<Aspose::Pdf::Text::TextReplaceOptions> Aspose::Pdf::Facades::PdfContentEditor::get_TextReplaceOptions | ( | ) | const |
Gets text replace options.
System::SharedPtr<Aspose::Pdf::Text::TextSearchOptions> Aspose::Pdf::Facades::PdfContentEditor::get_TextSearchOptions | ( | ) | const |
Gets text search options.
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. |
int32_t Aspose::Pdf::Facades::PdfContentEditor::GetViewerPreference | ( | ) |
Returns the view preference.
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. |
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. |
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. |
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.
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. |
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.
The example demonstrates how to replace text on the first page of the PDF document and set TextState text properties for the new 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). |
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText | ( | System::String | srcString, |
System::String | destString | ||
) |
Replaces text in the PDF file.
The example demonstrates how to replace text in PDF document.
srcString | The string to be replaced. |
destString | Replacing string. |
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.
The example demonstrates how to replace text in PDF document on the specified page.
srcString | The sting to be replaced. |
thePage | Page number (0 for all pages) |
destString | Replacing string. |
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.
The example demonstrates how to replace text and set TextState text properties for the new text.
srcString | String to be replaced |
destString | Replacing string |
textState | Text state (Text Color, Font etc) |
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.
The example demonstrates how to replace text and set font size for the new text.
srcString | String to be replaced. |
destString | Replacing string. |
fontSize | Font size. |
* editor Aspose::Pdf::Facades::PdfContentEditor::Save | ( | "example_out.pdf" | ) |
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. |
void Aspose::Pdf::Facades::PdfContentEditor::set_ReplaceTextStrategy | ( | System::SharedPtr< Aspose::Pdf::Facades::ReplaceTextStrategy > | value | ) |
A set of parameters for replace text operation
void Aspose::Pdf::Facades::PdfContentEditor::set_TextEditOptions | ( | System::SharedPtr< Aspose::Pdf::Text::TextEditOptions > | value | ) |
Sets text edit options.
void Aspose::Pdf::Facades::PdfContentEditor::set_TextReplaceOptions | ( | System::SharedPtr< Aspose::Pdf::Text::TextReplaceOptions > | value | ) |
Sets text replace options.
void Aspose::Pdf::Facades::PdfContentEditor::set_TextSearchOptions | ( | System::SharedPtr< Aspose::Pdf::Text::TextSearchOptions > | value | ) |
Sets text search options.
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.