Aspose::Pdf::Facades::PdfContentEditor class

PdfContentEditor class

Represents a class to edit PDF file’s content.

class PdfContentEditor : public Aspose::Pdf::Facades::SaveableFacade

Methods

MethodDescription
AddDocumentAdditionalAction(System::String, System::String)Adds additional action for document event.
AddDocumentAttachment(System::String, System::String)Adds document attachment with no annotation.
AddDocumentAttachment(System::SharedPtr<System::IO::Stream>, System::String, System::String)Adds document attachment with no annotation.
BindPdf(System::String) overrideBinds a PDF file for editing.
BindPdf(System::SharedPtr<System::IO::Stream>) overrideBinds a PDF stream for editing.
BindPdf(System::SharedPtr<Aspose::Pdf::Document>) overrideInitializes the facade.
virtual BindPdf(System::SharedPtr<Document>)Binds PDF document for editing.
ChangeViewerPreference(int32_t)Changes the view preference.
Close() overrideCloses opened document.
CreateApplicationLink(System::Drawing::Rectangle, System::String, int32_t, System::Drawing::Color, System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>)Creates a link to launch an application in PDF document.
CreateApplicationLink(System::Drawing::Rectangle, System::String, int32_t, System::Drawing::Color)Creates a link to launch an application in PDF document.
CreateApplicationLink(System::Drawing::Rectangle, System::String, int32_t)Creates a link to launch an application in PDF document.
CreateBookmarksAction(System::String, System::Drawing::Color, bool, bool, System::String, System::String, System::String)Creates a bookmark with the specified action.
CreateCaret(int32_t, System::Drawing::Rectangle, System::Drawing::Rectangle, System::String, System::String, System::Drawing::Color)Creates caret annotation.
CreateCustomActionLink(System::Drawing::Rectangle, int32_t, System::Drawing::Color, System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>)Creates a link to custom actions in PDF document.
CreateFileAttachment(System::Drawing::Rectangle, System::String, System::String, int32_t, System::String)Creates file attachment annotation.
CreateFileAttachment(System::Drawing::Rectangle, System::String, System::String, int32_t, System::String, double)Creates file attachment annotation.
CreateFileAttachment(System::Drawing::Rectangle, System::String, System::SharedPtr<System::IO::Stream>, System::String, int32_t, System::String)Creates file attachment annotation.
CreateFileAttachment(System::Drawing::Rectangle, System::String, System::SharedPtr<System::IO::Stream>, System::String, int32_t, System::String, double)Creates file attachment annotation.
CreateFreeText(System::Drawing::Rectangle, System::String, int32_t)Creates free text annotation in PDF document.
CreateJavaScriptLink(System::String, System::Drawing::Rectangle, int32_t, System::Drawing::Color)Creates a link to JavaScript in PDF document.
CreateLine(System::Drawing::Rectangle, System::String, float, float, float, float, int32_t, int32_t, System::Drawing::Color, System::String, System::ArrayPtr<int32_t>, System::ArrayPtr<System::String>)Creates line annotation.
CreateLocalLink(System::Drawing::Rectangle, int32_t, int32_t, System::Drawing::Color, System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>)Creates a local link in PDF document.
CreateLocalLink(System::Drawing::Rectangle, int32_t, int32_t, System::Drawing::Color)Creates a local link in PDF document.
CreateLocalLink(System::Drawing::Rectangle, int32_t, int32_t)Creates a local link in PDF document.
CreateMarkup(System::Drawing::Rectangle, System::String, int32_t, int32_t, System::Drawing::Color)Creates markup annotation it PDF document.
CreateMovie(System::Drawing::Rectangle, System::String, int32_t)Creates Movie Annotations.
CreatePdfDocumentLink(System::Drawing::Rectangle, System::String, int32_t, int32_t, System::Drawing::Color, System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>)Creates a link to another PDF document page.
CreatePdfDocumentLink(System::Drawing::Rectangle, System::String, int32_t, int32_t, System::Drawing::Color)Creates a link to another PDF document page.
CreatePdfDocumentLink(System::Drawing::Rectangle, System::String, int32_t, int32_t)Creates a link to another PDF document page.
CreatePolygon(System::SharedPtr<LineInfo>, int32_t, System::Drawing::Rectangle, System::String)Creates polygon annotation.
CreatePolyLine(System::SharedPtr<LineInfo>, int32_t, System::Drawing::Rectangle, System::String)Creates polyline annotation.
CreatePopup(System::Drawing::Rectangle, System::String, bool, int32_t)Creates popup annotation in PDF document.
CreateRubberStamp(int32_t, System::Drawing::Rectangle, System::String, System::String, System::Drawing::Color)Creates a rubber stamp annotation.
CreateRubberStamp(int32_t, System::Drawing::Rectangle, System::String, System::Drawing::Color, System::String)Creates a rubber stamp annotation.
CreateRubberStamp(int32_t, System::Drawing::Rectangle, System::String, System::Drawing::Color, System::SharedPtr<System::IO::Stream>)Creates a rubber stamp annotation.
CreateSound(System::Drawing::Rectangle, System::String, System::String, int32_t, System::String)Creates Sound Annotations.
CreateSquareCircle(System::Drawing::Rectangle, System::String, System::Drawing::Color, bool, int32_t, int32_t)Creates square-circle annotation.
CreateText(System::Drawing::Rectangle, System::String, System::String, bool, System::String, int32_t)Creates text annotation in PDF document.
CreateWebLink(System::Drawing::Rectangle, System::String, int32_t, System::Drawing::Color, System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>)Creates a web link in PDF document.
CreateWebLink(System::Drawing::Rectangle, System::String, int32_t, System::Drawing::Color)Creates a web link in PDF document.
CreateWebLink(System::Drawing::Rectangle, System::String, int32_t)Creates a web link in PDF document.
DeleteAttachments()Deletes all attachments in PDF document.
DeleteImage(int32_t, System::ArrayPtr<int32_t>)Deletes the specified images on the specified page.
DeleteImage()Deletes all images from PDF document.
DeleteStamp(int32_t, System::ArrayPtr<int32_t>)Deletes multiple stamps on the specified page by stamp indexes.
DeleteStampById(int32_t, int32_t)Deletes stamp on the specified page by stamp ID.
DeleteStampById(int32_t)Delete stamp by ID from all pages of the document.
DeleteStampByIds(System::ArrayPtr<int32_t>)Deletes stamps with specified IDs from all pages of the document.
DeleteStampByIds(int32_t, System::ArrayPtr<int32_t>)Deletes stamps on the specified page by multiple stamp IDs.
Dispose() overrideDisposes the facade.
DrawCurve(System::SharedPtr<LineInfo>, int32_t, System::Drawing::Rectangle, System::String)Creates curve annotation.
ExtractLink()Extracts the collection of Link instances contained in PDF document.
get_Document() constGets the document facade is working on.
get_ReplaceTextStrategy() constA set of parameters for replace text operation.
get_TextEditOptions() constGets text edit options.
get_TextReplaceOptions() constGets text replace options.
get_TextSearchOptions() constGets text search options.
GetStamps(int32_t)Returns array of stamps on the page.
GetViewerPreference()Returns the view preference.
HideStampById(int32_t, int32_t)Hides the stamp. After hiding, stamp visibility may be restored with ShowStampById method.
MoveStamp(int32_t, int32_t, double, double)Changes position of the stamp on page.
MoveStampById(int32_t, int32_t, double, double)Changes position of the stamp on page.
PdfContentEditor()The constructor of the PdfContentEditor object.
PdfContentEditor(System::SharedPtr<Aspose::Pdf::Document>)Initializes new PdfContentEditor object on base of the document .
RemoveDocumentOpenAction()Removes open action from the document. This operation is useful when concatenating multiple documents that use explicit ‘GoTo’ action on startup.
ReplaceImage(int32_t, int32_t, System::String)Replaces the specified image on the specified page of PDF document with another image.
ReplaceText(System::String, int32_t, System::String, System::SharedPtr<Aspose::Pdf::Text::TextState>)Replaces text in the PDF file on the specified page. TextState object (font family, color) can be specified to replaced text.
ReplaceText(System::String, System::String)Replaces text in the PDF file.
ReplaceText(System::String, int32_t, System::String)Replaces text in the PDF file on the specified page.
ReplaceText(System::String, System::String, System::SharedPtr<Aspose::Pdf::Text::TextState>)Replaces text in the PDF file using specified TextState object.
ReplaceText(System::String, System::String, int32_t)Replaces text in the PDF file and sets font size.
Save(System::String) overrideSaves the PDF document to the specified file.
Save(System::SharedPtr<System::IO::Stream>) overrideSaves the PDF document to the specified stream.
set_ReplaceTextStrategy(System::SharedPtr<Aspose::Pdf::Facades::ReplaceTextStrategy>)A set of parameters for replace text operation.
set_TextEditOptions(System::SharedPtr<Aspose::Pdf::Text::TextEditOptions>)Sets text edit options.
set_TextReplaceOptions(System::SharedPtr<Aspose::Pdf::Text::TextReplaceOptions>)Sets text replace options.
set_TextSearchOptions(System::SharedPtr<Aspose::Pdf::Text::TextSearchOptions>)Sets text search options.
ShowStampById(int32_t, int32_t)Shows stamp which was hidden by HiddenStampById.

Fields

FieldDescription
static DocumentCloseA document event type. Closes a document.
static DocumentOpenA document event type. Opens a document.
static DocumentPrintedA document event type. Excute a action after printing.
static DocumentSavedA document event type. Excute a action after saving.
static DocumentWillPrintA document event type. Excute a action before printing.
static DocumentWillSaveA document event type. Excute a action before saving.

See Also