PdfContentEditor

PdfContentEditor class

Represents a class to edit PDF file’s content.

public sealed class PdfContentEditor : SaveableFacade

Constructors

Name Description
PdfContentEditor() The constructor of the PdfContentEditor object.
PdfContentEditor(Document) Initializes new PdfContentEditor object on base of the document.

Properties

Name Description
Document { get; } Gets the document facade is working on.
ReplaceTextStrategy { get; set; } A set of parameters for replace text operation
TextEditOptions { get; set; } Gets or sets text edit options.
TextReplaceOptions { get; set; } Gets or sets text replace options.
TextSearchOptions { get; set; } Gets or sets text search options.

Methods

Name Description
AddDocumentAdditionalAction(string, string) Adds additional action for document event.
AddDocumentAttachment(string, string) Adds document attachment with no annotation.
AddDocumentAttachment(Stream, string, string) Adds document attachment with no annotation.
virtual BindPdf(Document) Initializes the facade.
override BindPdf(Stream) Binds a PDF stream for editing.
override BindPdf(string) Binds a PDF file for editing.
ChangeViewerPreference(int) Changes the view preference.
override Close() Closes opened document.
CreateApplicationLink(Rectangle, string, int) Creates a link to launch an application in PDF document.
CreateApplicationLink(Rectangle, string, int, Color) Creates a link to launch an application in PDF document.
CreateApplicationLink(Rectangle, string, int, Color, Enum[]) Creates a link to launch an application in PDF document.
CreateBookmarksAction(string, Color, bool, bool, string, string, string) Creates a bookmark with the specified action.
CreateCaret(int, Rectangle, Rectangle, string, string, Color) Creates caret annotation.
CreateCustomActionLink(Rectangle, int, Color, Enum[]) Creates a link to custom actions in PDF document.
CreateFileAttachment(Rectangle, string, string, int, string) Creates file attachment annotation.
CreateFileAttachment(Rectangle, string, Stream, string, int, string) Creates file attachment annotation.
CreateFileAttachment(Rectangle, string, string, int, string, double) Creates file attachment annotation.
CreateFileAttachment(Rectangle, string, Stream, string, int, string, double) Creates file attachment annotation.
CreateFreeText(Rectangle, string, int) Creates free text annotation in PDF document
CreateJavaScriptLink(string, Rectangle, int, Color) Creates a link to JavaScript in PDF document.
CreateLine(Rectangle, string, float, float, float, float, int, int, Color, string, int[], string[]) Creates line annotation.
CreateLocalLink(Rectangle, int, int) Creates a local link in PDF document.
CreateLocalLink(Rectangle, int, int, Color) Creates a local link in PDF document.
CreateLocalLink(Rectangle, int, int, Color, Enum[]) Creates a local link in PDF document.
CreateMarkup(Rectangle, string, int, int, Color) Creates markup annotation it PDF document.
CreateMovie(Rectangle, string, int) Creates Movie Annotations.
CreatePdfDocumentLink(Rectangle, string, int, int) Creates a link to another PDF document page.
CreatePdfDocumentLink(Rectangle, string, int, int, Color) Creates a link to another PDF document page.
CreatePdfDocumentLink(Rectangle, string, int, int, Color, Enum[]) Creates a link to another PDF document page.
CreatePolygon(LineInfo, int, Rectangle, string) Creates polygon annotation.
CreatePolyLine(LineInfo, int, Rectangle, string) Creates polyline annotation.
CreatePopup(Rectangle, string, bool, int) Creates popup annotation in PDF document.
CreateRubberStamp(int, Rectangle, string, Color, Stream) Creates a rubber stamp annotation.
CreateRubberStamp(int, Rectangle, string, Color, string) Creates a rubber stamp annotation.
CreateRubberStamp(int, Rectangle, string, string, Color) Creates a rubber stamp annotation.
CreateSound(Rectangle, string, string, int, string) Creates Sound Annotations.
CreateSquareCircle(Rectangle, string, Color, bool, int, int) Creates square-circle annotation.
CreateText(Rectangle, string, string, bool, string, int) Creates text annotation in PDF document
CreateWebLink(Rectangle, string, int) Creates a web link in PDF document.
CreateWebLink(Rectangle, string, int, Color) Creates a web link in PDF document.
CreateWebLink(Rectangle, string, int, Color, Enum[]) Creates a web link in PDF document.
DeleteAttachments() Deletes all attachments in PDF document.
DeleteImage() Deletes all images from PDF document.
DeleteImage(int, int[]) Deletes the specified images on the specified page.
DeleteStamp(int, int[]) Deletes multiple stamps on the specified page by stamp indexes.
DeleteStampById(int) Delete stamp by ID from all pages of the document.
DeleteStampById(int, int) Deletes stamp on the specified page by stamp ID.
DeleteStampByIds(int[]) Deletes stamps with specified IDs from all pages of the document.
DeleteStampByIds(int, int[]) Deletes stamps on the specified page by multiple stamp IDs.
Dispose() Disposes the facade.
DrawCurve(LineInfo, int, Rectangle, string) Creates curve annotation.
ExtractLink() Extracts the collection of Link instances contained in PDF document.
GetStamps(int) Returns array of stamps on the page.
GetViewerPreference() Returns the view preference.
HideStampById(int, int) Hides the stamp. After hiding, stamp visibility may be restored with ShowStampById method.
MoveStamp(int, int, double, double) Changes position of the stamp on page.
MoveStampById(int, int, double, double) Changes position of the stamp on page.
RemoveDocumentOpenAction() Removes open action from the document. This operation is useful when concatenating multiple documents that use explicit ‘GoTo’ action on startup.
ReplaceImage(int, int, string) Replaces the specified image on the specified page of PDF document with another image.
ReplaceText(string, string) Replaces text in the PDF file.
ReplaceText(string, int, string) Replaces text in the PDF file on the specified page.
ReplaceText(string, string, int) Replaces text in the PDF file and sets font size.
ReplaceText(string, string, TextState) Replaces text in the PDF file using specified TextState object.
ReplaceText(string, int, string, TextState) Replaces text in the PDF file on the specified page. TextState object (font family, color) can be specified to replaced text.
virtual Save(Stream) Saves the PDF document to the specified stream.
virtual Save(string) Saves the PDF document to the specified file.
ShowStampById(int, int) Shows stamp which was hidden by HiddenStampById.

Fields

Name Description
const DocumentClose A document event type. Closes a document.
const DocumentOpen A document event type. Opens a document.
const DocumentPrinted A document event type. Excute a action after printing.
const DocumentSaved A document event type. Excute a action after saving.
const DocumentWillPrint A document event type. Excute a action before printing.
const DocumentWillSave A document event type. Excute a action before saving.

See Also