PdfContentEditor Class
Represents a class to edit PDF file's content.
Inheritance Hierarchy

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntax
public sealed class PdfContentEditor : SaveableFacade

The PdfContentEditor type exposes the following members.

Constructors
  NameDescription
Public methodPdfContentEditor
The constructor of the PdfContentEditor object.
Public methodPdfContentEditor(Document)
Initializes new PdfContentEditor object on base of the document.
Properties
  NameDescription
Public propertyDocument
Gets the document facade is working on.
(Inherited from Facade.)
Public propertyReplaceTextStrategy
A set of parameters for replace text operation
Public propertyTextEditOptions
Gets or sets text edit options.
Public propertyTextReplaceOptions
Gets or sets text replace options.
Public propertyTextSearchOptions
Gets or sets text search options.
Methods
  NameDescription
Public methodCode exampleAddDocumentAdditionalAction
Adds additional action for document event.
Public methodCode exampleAddDocumentAttachment(String, String)
Adds document attachment with no annotation.
Public methodCode exampleAddDocumentAttachment(Stream, String, String)
Adds document attachment with no annotation.
Public methodBindPdf(Stream)
Binds a PDF stream for editing.
(Overrides FacadeBindPdf(Stream).)
Public methodBindPdf(String)
Binds a PDF file for editing.
(Overrides FacadeBindPdf(String).)
Public methodBindPdf(Document)
Initializes the facade.
(Inherited from Facade.)
Public methodCode exampleChangeViewerPreference
Changes the view preference.
Public methodClose
Closes opened document.
(Overrides FacadeClose.)
Public methodCode exampleCreateApplicationLink(Rectangle, String, Int32)
Creates a link to launch an application in PDF document.
Public methodCode exampleCreateApplicationLink(Rectangle, String, Int32, Color)
Creates a link to launch an application in PDF document.
Public methodCode exampleCreateApplicationLink(Rectangle, String, Int32, Color, Enum)
Creates a link to launch an application in PDF document.
Public methodCode exampleCreateBookmarksAction
Creates a bookmark with the specified action.
Public methodCode exampleCreateCaret
Creates caret annotation.
Public methodCode exampleCreateCustomActionLink
Creates a link to custom actions in PDF document.
Public methodCode exampleCreateFileAttachment(Rectangle, String, String, Int32, String)
Creates file attachment annotation.
Public methodCode exampleCreateFileAttachment(Rectangle, String, Stream, String, Int32, String)
Creates file attachment annotation.
Public methodCode exampleCreateFileAttachment(Rectangle, String, String, Int32, String, Double)
Creates file attachment annotation.
Public methodCode exampleCreateFileAttachment(Rectangle, String, Stream, String, Int32, String, Double)
Creates file attachment annotation.
Public methodCode exampleCreateFreeText
Creates free text annotation in PDF document
Public methodCode exampleCreateJavaScriptLink
Creates a link to JavaScript in PDF document.
Public methodCode exampleCreateLine
Creates line annotation.
Public methodCode exampleCreateLocalLink(Rectangle, Int32, Int32)
Creates a local link in PDF document.
Public methodCode exampleCreateLocalLink(Rectangle, Int32, Int32, Color)
Creates a local link in PDF document.
Public methodCode exampleCreateLocalLink(Rectangle, Int32, Int32, Color, Enum)
Creates a local link in PDF document.
Public methodCode exampleCreateMarkup
Creates markup annotation it PDF document.
Public methodCreateMovie
Creates Movie Annotations.
Public methodCode exampleCreatePdfDocumentLink(Rectangle, String, Int32, Int32)
Creates a link to another PDF document page.
Public methodCode exampleCreatePdfDocumentLink(Rectangle, String, Int32, Int32, Color)
Creates a link to another PDF document page.
Public methodCode exampleCreatePdfDocumentLink(Rectangle, String, Int32, Int32, Color, Enum)
Creates a link to another PDF document page.
Public methodCode exampleCreatePolygon
Creates polygon annotation.
Public methodCode exampleCreatePolyLine
Creates polyline annotation.
Public methodCode exampleCreatePopup
Creates popup annotation in PDF document.
Public methodCode exampleCreateRubberStamp(Int32, Rectangle, String, Color, Stream)
Creates a rubber stamp annotation.
Public methodCode exampleCreateRubberStamp(Int32, Rectangle, String, Color, String)
Creates a rubber stamp annotation.
Public methodCode exampleCreateRubberStamp(Int32, Rectangle, String, String, Color)
Creates a rubber stamp annotation.
Public methodCreateSound
Creates Sound Annotations.
Public methodCode exampleCreateSquareCircle
Creates square-circle annotation.
Public methodCode exampleCreateText
Creates text annotation in PDF document
Public methodCode exampleCreateWebLink(Rectangle, String, Int32)
Creates a web link in PDF document.
Public methodCode exampleCreateWebLink(Rectangle, String, Int32, Color)
Creates a web link in PDF document.
Public methodCode exampleCreateWebLink(Rectangle, String, Int32, Color, Enum)
Creates a web link in PDF document.
Public methodCode exampleDeleteAttachments
Deletes all attachments in PDF document.
Public methodCode exampleDeleteImage
Deletes all images from PDF document.
Public methodCode exampleDeleteImage(Int32, Int32)
Deletes the specified images on the specified page.
Public methodCode exampleDeleteStamp
Deletes multiple stamps on the specified page by stamp indexes.
Public methodCode exampleDeleteStampById(Int32)
Delete stamp by ID from all pages of the document.
Public methodCode exampleDeleteStampById(Int32, Int32)
Deletes stamp on the specified page by stamp ID.
Public methodCode exampleDeleteStampByIds(Int32)
Deletes stamps with specified IDs from all pages of the document.
Public methodCode exampleDeleteStampByIds(Int32, Int32)
Deletes stamps on the specified page by multiple stamp IDs.
Public methodDispose
Disposes the facade.
(Inherited from Facade.)
Public methodCode exampleDrawCurve
Creates curve annotation.
Public methodEquals (Inherited from Object.)
Public methodCode exampleExtractLink
Extracts the collection of Link instances contained in PDF document.
Public methodGetHashCode (Inherited from Object.)
Public methodGetStamps
Returns array of stamps on the page.
Public methodGetType (Inherited from Object.)
Public methodCode exampleGetViewerPreference
Returns the view preference.
Public methodHideStampById
Hides the stamp. After hiding, stamp visibility may be restored with ShowStampById method.
Public methodMoveStamp
Changes position of the stamp on page.
Public methodMoveStampById
Changes position of the stamp on page.
Public methodCode exampleRemoveDocumentOpenAction
Removes open action from the document. This operation is useful when concatenating multiple documents that use explicit 'GoTo' action on startup.
Public methodCode exampleReplaceImage
Replaces the specified image on the specified page of PDF document with another image.
Public methodCode exampleReplaceText(String, String)
Replaces text in the PDF file.
Public methodCode exampleReplaceText(String, Int32, String)
Replaces text in the PDF file on the specified page.
Public methodCode exampleReplaceText(String, String, TextState)
Replaces text in the PDF file using specified TextState object.
Public methodCode exampleReplaceText(String, String, Int32)
Replaces text in the PDF file and sets font size.
Public methodCode exampleReplaceText(String, Int32, String, TextState)
Replaces text in the PDF file on the specified page. TextState object (font family, color) can be specified to replaced text.
Public methodSave(Stream)
Saves the PDF document to the specified stream.
(Inherited from SaveableFacade.)
Public methodSave(String)
Saves the PDF document to the specified file.
(Inherited from SaveableFacade.)
Public methodShowStampById
Shows stamp which was hidden by HiddenStampById.
Public methodToString (Inherited from Object.)
Fields
  NameDescription
Public fieldStatic memberDocumentClose
A document event type. Closes a document.
Public fieldStatic memberDocumentOpen
A document event type. Opens a document.
Public fieldStatic memberDocumentPrinted
A document event type. Excute a action after printing.
Public fieldStatic memberDocumentSaved
A document event type. Excute a action after saving.
Public fieldStatic memberDocumentWillPrint
A document event type. Excute a action before printing.
Public fieldStatic memberDocumentWillSave
A document event type. Excute a action before saving.
See Also