PdfContentEditor
סקירה כללית
PdfContentEditor הוא שיעור ב Aspose.PDF FOSS עבור .NET. מורשת מ : System.IDisposable.
פשטות לעריכה ברמה של תוכן: החלפת טקסט, יצירת קישורים, פעולות תמונה.
שיעור זה מספק 83 שיטות לעבוד עם אובייקטים ב- .NET תוכניות. שיטות זמינות כוללות: AddDocumentAdditionalAction, AddDocumentAttachment, BindPdf, ChangeViewerPreference, Close, CreateApplicationLink, CreateBookmarksAction, CreateCaret, CreateCustomActionLink, CreateFileAttachment, CreateFreeText, CreateJavaScriptLink,35 שיטות נוספות. כל החברים הציבוריים זמינים לכל יישום .NET לאחר התקנת Aspose.PDF FOSS עבור חבילת .Net. רכוש : Document, DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint,ועוד 5 עוד.
נכסים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
Document | Document | קראו | המסמך PDF מחובר כעת לעריכה. |
TextReplaceOptions | TextReplaceOptions | קרא / כתיבה | אפשרויות החלפת טקסט המשמשות על ידי משפחת ReplaceText(string,strings). |
TextEditOptions | TextEditOptions | קרא / כתיבה | אפשרויות עריכה טקסט הועברו למנוע החלפה הבסיסי. |
TextSearchOptions | TextSearchOptions | קרא / כתיבה | אפשרויות חיפוש טקסט המשמשות על ידי הבדלים מעודכנים של החלפת טקס. |
ReplaceTextStrategy | ReplaceTextStrategy | קרא / כתיבה | אסטרטגיה שמדגישה כיצד ReplaceText(חוט, חוט) מתמודדים (לביטוי נגד. |
DocumentOpen | string | קראו | פותחים את המסמך. |
DocumentClose | string | קראו | מסגירה את המסמך. |
DocumentWillSave | string | קראו | אם תבואו, המסמך יישמר. |
DocumentSaved | string | קראו | הוא מציל את המסמך. |
DocumentWillPrint | string | קראו | אם תבוא המסמך ידפיס. |
DocumentPrinted | string | קראו | הוא מקבל את המסמך הדפוס. |
שיטות
| חתימה | תיאור |
|---|---|
PdfContentEditor() | ctor כברירת מחדל – לחבר PDF מאוחר יותר דרך BindPdf(string). |
PdfContentEditor(document: Document) | קשור למסמך קיימים בבנייה. |
BindPdf(pdfData: byte[]) | לחבר קובץ PDF כדי לערוך. |
BindPdf(inputFile: string) | חיבור קובץ PDF לפי מסלול לעריכה. |
BindPdf(inputStream: Stream) | חיבור זרם PDF לעריכה. |
BindPdf(srcDoc: Document) | לחבר מסמך PDF בזיכרון כדי לערוך. |
Save() | שמור את המסמך המובטח. |
Save(path: string) | שמור את המסמך המובטח לדרך קובץ. |
Save(stream: Stream) | שמור את המסמך המוגבל לתוך זרם. |
Close() | סגור את המסמך המובטח. |
Dispose() | שחרור המסמך המוגבל (שווה ערך ל- Close). |
GetViewerPreference() | קבל את הדגלים הנוכחיים של העדפה כקטספק מלא. |
ChangeViewerPreference(viewerAttribution: int) | לשנות את העדפה של המבקרים. |
GetStamps(pageNumber: int) | קבל מידע על הדפוסים בדף אחד. |
DeleteStamp(pageNumber: int, index: int[]) | הסר את הדפוסים בדף על ידי אינדיקטורים המבוססים על 0. |
DeleteStampById(pageNumber: int, stampId: int) | הסר את הדפסה באמצעות ה-ID של הדופסה שלה (ה- ID שהוקצה דרך Stamp.StampId). |
DeleteStampByIds(pageNumber: int, stampIds: int[]) | הסר את הדפוסים באמצעות ה-ID שלהם. |
ReplaceText(srcString: string, destString: string) | החלפת טקסט במסמך המוגבל לפי ReplaceTextStrategy. |
ReplaceText(srcString: string, thePage: int, destString: string) | החלפת טקסט על דף מסוים (בסיס 1). |
ReplaceText(srcString: string, destString: string, textState: TextState) | החלפת טקסט עם פורמט מפורש TextState (קונטי/גודל/צבע). |
ReplaceText(srcString: string, thePage: int, destString: string, textState: TextState) | להחליף את הטקסט בדף מסוים עם מפורש TextState. |
ReplaceText(srcString: string, destString: string, fontSize: int) | החלפת טקסט ולהעביר את גודל האות של תנועת ההחלפה. |
ReplaceText(input: byte[], searchText: string, replaceText: string) | להחליף את כל התופעות של טקסט בכל הדפים. |
ReplaceText(input: byte[], searchText: string, replaceText: string, options: TextSearchOptions) | להחליף את כל התופעות של טקסט בכל הדפים באמצעות אפשרויות חיפוש. |
ReplaceTextOnPage(input: byte[], pageNumber: int, searchText: string, replaceText: string) | החלפת טקסט על דף מסוים (בסיס 1). |
CreateLocalLink(input: byte[], rect: Rectangle, pageNumber: int, destinationPage: int) | יצירת תווית קישור מקומית שמגלשת לדף באותו מסמך. |
CreateWebLink(input: byte[], rect: Rectangle, pageNumber: int, url: string) | יצירת תווית קישור URI שמפתחת כתובת URL. |
CreateFreeText(input: byte[], rect: Rectangle, pageNumber: int, text: string, fontName: string?, fontSize: double) | יצירת תווית טקסט חינם בדף. |
CreateText(input: byte[], rect: Rectangle, pageNumber: int, title: string, contents: string) | יצירת הערה טקסט (מזכרת) על דף. |
DeleteAnnotations(input: byte[], pageNumber: int) | הסר את כל ההודעות בדף מסוים. |
DeleteAnnotations(input: byte[], pageNumber: int, annotationType: string) | הסר את ההערות של סוג סמוך מסוים מהדף. |
ExtractText(input: byte[], pageNumber: int) | להוציא את הטקסט מהדף מסוים. |
ExtractText(input: byte[]) | להוציא את הטקסט מכל הדפים. |
DrawCurve(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string) | העברת ההתחברות המהפכה את Rectangle לתוך טופס PDF rectangles ומשלוחים. |
DrawCurve(lineInfo: LineInfo, pageNumber: int, rect: Rectangle, message: string?) | צייר קיר (פולין) על דף אחד. |
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int) | צלצול CreateLocalLink על האינדקס הזה PdfContentEditor. |
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int, clr: System.Drawing.Color) | |
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int, clr: System.Drawing.Color, actionName: System.Enum[]) | |
CreateWebLink(rect: System.Drawing.Rectangle, url: string, originalPage: int) | צלצול CreateWebLink על האינדקס הזה PdfContentEditor. |
CreateWebLink(rect: System.Drawing.Rectangle, url: string, originalPage: int, clr: System.Drawing.Color) | |
CreateWebLink(rect: System.Drawing.Rectangle, url: string, originalPage: int, clr: System.Drawing.Color, actionName: System.Enum[]) | |
CreateApplicationLink(rect: System.Drawing.Rectangle, application: string, page: int) | צלצול CreateApplicationLink על האינדקס הזה PdfContentEditor. |
CreateApplicationLink(rect: System.Drawing.Rectangle, application: string, page: int, clr: System.Drawing.Color) | |
CreateApplicationLink(rect: System.Drawing.Rectangle, application: string, page: int, clr: System.Drawing.Color, actionName: System.Enum[]) | |
CreatePdfDocumentLink(rect: System.Drawing.Rectangle, remotePdf: string, originalPage: int, destinationPage: int) | צלצול CreatePdfDocumentLink על האינדקס הזה PdfContentEditor. |
CreatePdfDocumentLink(rect: System.Drawing.Rectangle, remotePdf: string, originalPage: int, destinationPage: int, clr: System.Drawing.Color) | |
CreatePdfDocumentLink(rect: System.Drawing.Rectangle, remotePdf: string, originalPage: int, destinationPage: int, clr: System.Drawing.Color, actionName: System.Enum[]) | |
CreateJavaScriptLink(code: string, rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color) | צלצול CreateJavaScriptLink על האינדקס הזה PdfContentEditor. |
CreateCustomActionLink(rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color, actionName: System.Enum[]) | צלצול CreateCustomActionLink על האינדקס הזה PdfContentEditor. |
CreateFreeText(rect: System.Drawing.Rectangle, contents: string, page: int) | צלצול CreateFreeText על האינדקס הזה PdfContentEditor. |
CreateText(rect: System.Drawing.Rectangle, title: string, contents: string, open: bool, icon: string, page: int) | צלצול CreateText על האינדקס הזה PdfContentEditor. |
CreateCaret(page: int, annotRect: System.Drawing.Rectangle, caretRect: System.Drawing.Rectangle, symbol: string, annotContents: string, color: System.Drawing.Color) | צלצול CreateCaret על האינדקס הזה PdfContentEditor. |
CreateMarkup(rect: System.Drawing.Rectangle, contents: string, type: int, page: int, clr: System.Drawing.Color) | צלצול CreateMarkup על האינדקס הזה PdfContentEditor. |
CreateSquareCircle(rect: System.Drawing.Rectangle, contents: string, clr: System.Drawing.Color, square: bool, page: int, borderWidth: int) | צלצול CreateSquareCircle על האינדקס הזה PdfContentEditor. |
CreateLine(rect: System.Drawing.Rectangle, contents: string, x1: float, y1: float, x2: float, y2: float, page: int, border: int, clr: System.Drawing.Color, borderStyle: string, dashArray: int[], LEArray: string[]) | צלצול CreateLine על האינדקס הזה PdfContentEditor. |
CreatePolygon(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string) | צלצול CreatePolygon על האינדקס הזה PdfContentEditor. |
CreatePolyLine(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string) | צלצול CreatePolyLine על האינדקס הזה PdfContentEditor. |
CreatePopup(rect: System.Drawing.Rectangle, contents: string, open: bool, page: int) | צלצול CreatePopup על האינדקס הזה PdfContentEditor. |
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceFile: string) | צלצול CreateRubberStamp על האינדקס הזה PdfContentEditor. |
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceStream: Stream) | |
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, icon: string, annotContents: string, color: System.Drawing.Color) | |
CreateMovie(rect: System.Drawing.Rectangle, filePath: string, page: int) | צלצול CreateMovie על האינדקס הזה PdfContentEditor. |
CreateSound(rect: System.Drawing.Rectangle, filePath: string, name: string, page: int, rate: string) | צלצול CreateSound על האינדקס הזה PdfContentEditor. |
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string) | צלצול CreateFileAttachment על האינדקס הזה PdfContentEditor. |
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string, opacity: double) | |
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, attachmentStream: Stream, attachmentName: string, page: int, name: string) | |
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, attachmentStream: Stream, attachmentName: string, page: int, name: string, opacity: double) | |
CreateBookmarksAction(title: string, color: System.Drawing.Color, boldFlag: bool, italicFlag: bool, file: string, actionType: string, destination: string) | צלצול CreateBookmarksAction על האינדקס הזה PdfContentEditor. |
AddDocumentAdditionalAction(eventType: string, code: string) | צלצול AddDocumentAdditionalAction על האינדקס הזה PdfContentEditor. |
RemoveDocumentOpenAction() | צלצול RemoveDocumentOpenAction על האינדקס הזה PdfContentEditor. |
AddDocumentAttachment(fileAttachmentPath: string, description: string) | צלצול AddDocumentAttachment על האינדקס הזה PdfContentEditor. |
AddDocumentAttachment(fileAttachmentStream: Stream, fileAttachmentName: string, description: string) | |
DeleteAttachments() | צלצול DeleteAttachments על האינדקס הזה PdfContentEditor. |
ExtractLink() | צלצול ExtractLink על האינדקס הזה PdfContentEditor. |
DeleteImage() | צלצול DeleteImage על האינדקס הזה PdfContentEditor. |
DeleteImage(pageNumber: int, index: int[]) | |
ReplaceImage(pageNumber: int, index: int, imageFile: string) | צלצול ReplaceImage על האינדקס הזה PdfContentEditor. |
HideStampById(pageNumber: int, stampId: int) | צלצול HideStampById על האינדקס הזה PdfContentEditor. |
ShowStampById(pageNumber: int, stampId: int) | להציג מפתח מוסתר בעבר. |
DeleteStampById(stampId: int) | הסר את כל הדפוסים עם הדופק המוגדר בכל דף. |
DeleteStampByIds(stampIds: int[]) | הסר את כל הדפוסים אשר ה-ID שלהם נמצא בדפדפן בכל דף. |
MoveStamp(pageNumber: int, stampIndex: int, x: double, y: double) | צלצול MoveStamp על האינדקס הזה PdfContentEditor. |
MoveStampById(pageNumber: int, stampId: int, x: double, y: double) | צלצול MoveStampById על האינדקס הזה PdfContentEditor. |