PdfContentEditor

PdfContentEditor

Overview

PdfContentEditor là một lớp trong Aspose.PDF FOSS cho .NET. Dòng thừa kế từ: System.IDisposable.

Facade cho việc chỉnh sửa nội dung cấp: thay thế văn bản, tạo liên kết, hoạt động hình ảnh.

Khóa học này cung cấp 83 phương pháp để làm việc với các đối tượng PdfContentEditor trong các chương trình .NET. Các phương pháp có sẵn bao gồm: AddDocumentAdditionalAction, AddDocumentAttachment, BindPdf, ChangeViewerPreference, Close, CreateApplicationLink, CreateBookmarksAction, CreateCaret, CreateCustomActionLink, CreateFileAttachment, CreateFreeText, CreateJavaScriptLink,+ 35 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng .NET nào sau khi cài đặt Aspose.PDF FOSS cho gói .Net. Tài sản : Document, DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint,Và 5 nhiều hơn nữa.

Properties

NameTypeAccessDescription
DocumentDocumentReadTài liệu PDF hiện đang được ràng buộc để chỉnh sửa.
TextReplaceOptionsTextReplaceOptionsĐọc / viếtCác tùy chọn thay thế văn bản được sử dụng bởi ReplaceText(string,strings) gia đình.
TextEditOptionsTextEditOptionsĐọc / viếtCác tùy chọn chỉnh sửa văn bản được chuyển đến động cơ thay thế cơ sở.
TextSearchOptionsTextSearchOptionsĐọc / viếtCác tùy chọn tìm kiếm văn bản được sử dụng bởi các biến thể thay thế văn Bản mạnh mẽ.
ReplaceTextStrategyReplaceTextStrategyĐọc / viếtChiến lược kiểm soát cách ReplaceText(tring, string) chơi (literal vs.
DocumentOpenstringReadMở tài liệu.
DocumentClosestringRead- Đóng lại tài liệu.
DocumentWillSavestringReadNếu tài liệu được lưu thì sẽ được tiết kiệm.
DocumentSavedstringReadTài liệu được tiết kiệm.
DocumentWillPrintstringReadNếu tài liệu được in thì sẽ được.
DocumentPrintedstringRead- Được giấy tờ in.

Methods

SignatureDescription
PdfContentEditor()Chất lượng ctor mặc định — liên kết PDF sau đó qua BindPdf(string).
PdfContentEditor(document: Document)Kết nối với một tài liệu hiện có trong xây dựng.
BindPdf(pdfData: byte[])Kết nối một tập tin PDF để chỉnh sửa.
BindPdf(inputFile: string)Kết nối một tệp PDF theo con đường để chỉnh sửa.
BindPdf(inputStream: Stream)Kết nối một dòng PDF để chỉnh sửa.
BindPdf(srcDoc: Document)Kết nối một tài liệu PDF trong bộ nhớ để chỉnh sửa.
Save()Bảo vệ tài liệu liên kết.
Save(path: string)Lưu tài liệu được gắn kết đến một con đường tệp.
Save(stream: Stream)Lưu tài liệu được gắn kết với một dòng.
Close()Đóng lại tài liệu liên kết.
Dispose()Tải về tài liệu ràng buộc (tương đương với Close).
GetViewerPreference()Nhận các cờ sở thích của trình duyệt hiện tại như một bitmask toàn diện.
ChangeViewerPreference(viewerAttribution: int)Thay đổi sở thích của người xem.
GetStamps(pageNumber: int)Nhận thông tin về các dấu hiệu trên một trang.
DeleteStamp(pageNumber: int, index: int[])Xóa các dấu trên một trang bằng chỉ số dựa trên 0.
DeleteStampById(pageNumber: int, stampId: int)Xóa một dấu hiệu bằng ID dấu ấn của nó (ID được quy định thông qua Stamp.StampId).
DeleteStampByIds(pageNumber: int, stampIds: int[])Xóa dấu bằng ID dấu của họ.
ReplaceText(srcString: string, destString: string)Thay thế văn bản trong tài liệu kết nối theo ReplaceTextStrategy.
ReplaceText(srcString: string, thePage: int, destString: string)Thay thế văn bản trên một trang cụ thể (1-base).
ReplaceText(srcString: string, destString: string, textState: TextState)Thay thế văn bản với định dạng rõ ràng TextState (font/size/colour).
ReplaceText(srcString: string, thePage: int, destString: string, textState: TextState)Thay thế văn bản trên một trang cụ thể bằng cách rõ ràng TextState.
ReplaceText(srcString: string, destString: string, fontSize: int)Thay thế văn bản và vượt qua kích thước phông chữ của việc thay thế chạy.
ReplaceText(input: byte[], searchText: string, replaceText: string)Thay thế tất cả các sự kiện văn bản trên tất nhiên mọi trang.
ReplaceText(input: byte[], searchText: string, replaceText: string, options: TextSearchOptions)Thay thế tất cả các sự kiện văn bản trên tất nhiên mọi trang bằng cách sử dụng tùy chọn tìm kiếm.
ReplaceTextOnPage(input: byte[], pageNumber: int, searchText: string, replaceText: string)Thay thế văn bản trên một trang cụ thể (1-base).
CreateLocalLink(input: byte[], rect: Rectangle, pageNumber: int, destinationPage: int)Tạo một ghi chú liên kết địa phương mà di chuyển đến một trang trong cùng một tài liệu.
CreateWebLink(input: byte[], rect: Rectangle, pageNumber: int, url: string)Tạo một URI liên kết ghi chú mà mở URL.
CreateFreeText(input: byte[], rect: Rectangle, pageNumber: int, text: string, fontName: string?, fontSize: double)Tạo một ghi chú văn bản miễn phí trên một trang.
CreateText(input: byte[], rect: Rectangle, pageNumber: int, title: string, contents: string)Tạo một ghi chú văn bản (sticky note) trên trang.
DeleteAnnotations(input: byte[], pageNumber: int)Xóa tất cả các ghi chú trên một trang cụ thể.
DeleteAnnotations(input: byte[], pageNumber: int, annotationType: string)Xóa các ghi chú của một subtype cụ thể từ trang.
ExtractText(input: byte[], pageNumber: int)Tắt văn bản từ một trang cụ thể.
ExtractText(input: byte[])Tải văn bản từ tất cả các trang.
DrawCurve(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Tăng tải chuyển đổi Rectangle sang biểu mẫu PDF và delegates.
DrawCurve(lineInfo: LineInfo, pageNumber: int, rect: Rectangle, message: string?)Nhấn một curve (polyline) trên một trang.
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int)Hãy gọi CreateLocalLink trên trường hợp này 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)Hãy gọi CreateWebLink trên trường hợp này 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)Hãy gọi CreateApplicationLink trên trường hợp này 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)Hãy gọi CreatePdfDocumentLink trên trường hợp này 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)Hãy gọi CreateJavaScriptLink trên trường hợp này PdfContentEditor.
CreateCustomActionLink(rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color, actionName: System.Enum[])Hãy gọi CreateCustomActionLink trên trường hợp này PdfContentEditor.
CreateFreeText(rect: System.Drawing.Rectangle, contents: string, page: int)Hãy gọi CreateFreeText trên trường hợp này PdfContentEditor.
CreateText(rect: System.Drawing.Rectangle, title: string, contents: string, open: bool, icon: string, page: int)Hãy gọi CreateText trên trường hợp này PdfContentEditor.
CreateCaret(page: int, annotRect: System.Drawing.Rectangle, caretRect: System.Drawing.Rectangle, symbol: string, annotContents: string, color: System.Drawing.Color)Hãy gọi CreateCaret trên trường hợp này PdfContentEditor.
CreateMarkup(rect: System.Drawing.Rectangle, contents: string, type: int, page: int, clr: System.Drawing.Color)Hãy gọi CreateMarkup trên trường hợp này PdfContentEditor.
CreateSquareCircle(rect: System.Drawing.Rectangle, contents: string, clr: System.Drawing.Color, square: bool, page: int, borderWidth: int)Hãy gọi CreateSquareCircle trên trường hợp này 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[])Hãy gọi CreateLine trên trường hợp này PdfContentEditor.
CreatePolygon(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Hãy gọi CreatePolygon trên trường hợp này PdfContentEditor.
CreatePolyLine(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Hãy gọi CreatePolyLine trên trường hợp này PdfContentEditor.
CreatePopup(rect: System.Drawing.Rectangle, contents: string, open: bool, page: int)Hãy gọi CreatePopup trên trường hợp này PdfContentEditor.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceFile: string)Hãy gọi CreateRubberStamp trên trường hợp này 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)Hãy gọi CreateMovie trên trường hợp này PdfContentEditor.
CreateSound(rect: System.Drawing.Rectangle, filePath: string, name: string, page: int, rate: string)Hãy gọi CreateSound trên trường hợp này PdfContentEditor.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string)Hãy gọi CreateFileAttachment trên trường hợp này 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)Hãy gọi CreateBookmarksAction trên trường hợp này PdfContentEditor.
AddDocumentAdditionalAction(eventType: string, code: string)Hãy gọi AddDocumentAdditionalAction trên trường hợp này PdfContentEditor.
RemoveDocumentOpenAction()Hãy gọi RemoveDocumentOpenAction trên trường hợp này PdfContentEditor.
AddDocumentAttachment(fileAttachmentPath: string, description: string)Hãy gọi AddDocumentAttachment trên trường hợp này PdfContentEditor.
AddDocumentAttachment(fileAttachmentStream: Stream, fileAttachmentName: string, description: string)
DeleteAttachments()Hãy gọi DeleteAttachments trên trường hợp này PdfContentEditor.
ExtractLink()Hãy gọi ExtractLink trên trường hợp này PdfContentEditor.
DeleteImage()Hãy gọi DeleteImage trên trường hợp này PdfContentEditor.
DeleteImage(pageNumber: int, index: int[])
ReplaceImage(pageNumber: int, index: int, imageFile: string)Hãy gọi ReplaceImage trên trường hợp này PdfContentEditor.
HideStampById(pageNumber: int, stampId: int)Hãy gọi HideStampById trên trường hợp này PdfContentEditor.
ShowStampById(pageNumber: int, stampId: int)Hiển thị một dấu hiệu trước đó ẩn.
DeleteStampById(stampId: int)Xóa tất cả các nhãn hiệu với nhược điểm được cung cấp trên mỗi trang.
DeleteStampByIds(stampIds: int[])Xóa tất cả các nhãn hiệu có ID trong stampIds trên mỗi trang.
MoveStamp(pageNumber: int, stampIndex: int, x: double, y: double)Hãy gọi MoveStamp trên trường hợp này PdfContentEditor.
MoveStampById(pageNumber: int, stampId: int, x: double, y: double)Hãy gọi MoveStampById trên trường hợp này PdfContentEditor.

See Also

 Tiếng Việt