PdfContentEditor

PdfContentEditor

ภาพรวม

PdfContentEditor เป็นคลาสใน Aspose.PDF FOSS สําหรับ .NET. ทายาทจาก: System.IDisposable.

หน้าตึกสําหรับการแก้ไขในระดับเนื้อหา: การเปลี่ยนข้อความ, การสร้างลิงค์, งานภาพ.

หมวดนี้ให้ 83 วิธีในการทํางานกับวัตถุ PdfContentEditor ในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: AddDocumentAdditionalAction, AddDocumentAttachment, BindPdf, ChangeViewerPreference, Close, CreateApplicationLink, CreateBookmarksAction, CreateCaret, CreateCustomActionLink, CreateFileAttachment, CreateFreeText, CreateJavaScriptLink,และ 35 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.PDF FOSS for .Net. คุณสมบัติ: Document, DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint,และอีก 5 คน.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
DocumentDocumentอ่านเอกสาร PDF ที่กําลังถูกกําหนดไว้เพื่อการแก้ไข.
TextReplaceOptionsTextReplaceOptionsอ่าน/เขียนตัวเลือกการแทนที่ข้อความที่ใช้โดย ReplaceText ((string,strings) ครอบครัว.
TextEditOptionsTextEditOptionsอ่าน/เขียนตัวเลือกแก้ไขข้อความถูกส่งไปยังเครื่องยนต์สํารองที่อยู่เบื้องหลัง.
TextSearchOptionsTextSearchOptionsอ่าน/เขียนตัวเลือกการค้นหาข้อความที่ใช้โดยตัวแปรทดแทนคํานวณแบบสเตทฟูล (stateful text-replacement).
ReplaceTextStrategyReplaceTextStrategyอ่าน/เขียนรับหรือกำหนดกลยุทธ์การแทนที่ข้อความ.
DocumentOpenstringอ่านเปิดเอกสาร.
DocumentClosestringอ่านรับค่าเอกสารปิด.
DocumentWillSavestringอ่านรับเอกสารที่จะบันทึก.
DocumentSavedstringอ่านรับเอกสารที่บันทึกไว้.
DocumentWillPrintstringอ่านรับเอกสารที่จะพิมพ์.
DocumentPrintedstringอ่านรับเอกสารที่พิมพ์แล้ว.

วิธีการ

Signatureคําอธิบาย
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 และผู้แทน.
DrawCurve(lineInfo: LineInfo, pageNumber: int, rect: Rectangle, message: string?)จัดเส้นโค้ง (โพลีไลน์) บนหน้า.
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int)เรียก CreateLocalLink ((rect, desPage, originalPages) ในตัวอย่างนี้ PdfContentEditor.
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int, clr: System.Drawing.Color)เรียก CreateLocalLink ((rect, desPage, originalPages, clr) ในตัวอย่างนี้ PdfContentEditor.
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int, clr: System.Drawing.Color, actionName: System.Enum[])เรียก CreateLocalLink ((rect, desPage, originalPages, clr, actionName) ในตัวอย่างนี้ PdfContentEditor.
CreateWebLink(rect: System.Drawing.Rectangle, url: string, originalPage: int)เรียก CreateWebLink ((rect, url, originalPage) ในตัวอย่างนี้ PdfContentEditor.
CreateWebLink(rect: System.Drawing.Rectangle, url: string, originalPage: int, clr: System.Drawing.Color)เรียก CreateWebLink ((rect, url, originalPage, clr) ในตัวอย่างนี้ PdfContentEditor.
CreateWebLink(rect: System.Drawing.Rectangle, url: string, originalPage: int, clr: System.Drawing.Color, actionName: System.Enum[])เรียก CreateWebLink ((rect, url, originalPage, clr, actionName) ในตัวอย่างนี้ PdfContentEditor.
CreateApplicationLink(rect: System.Drawing.Rectangle, application: string, page: int)เรียก CreateApplicationLink ((rect, application, page) ในตัวอย่างนี้ PdfContentEditor.
CreateApplicationLink(rect: System.Drawing.Rectangle, application: string, page: int, clr: System.Drawing.Color)เรียก CreateApplicationLink ((rect, application, page, clr) ในตัวอย่างนี้ PdfContentEditor.
CreateApplicationLink(rect: System.Drawing.Rectangle, application: string, page: int, clr: System.Drawing.Color, actionName: System.Enum[])เรียก CreateApplicationLink ((rect, application, page, clr, actionName) ในตัวอย่างนี้ PdfContentEditor.
CreatePdfDocumentLink(rect: System.Drawing.Rectangle, remotePdf: string, originalPage: int, destinationPage: int)เรียก CreatePdfDocumentLink ((rect, remotePdf, originalPage, destinationPages) ในตัวอย่างนี้ PdfContentEditor.
CreatePdfDocumentLink(rect: System.Drawing.Rectangle, remotePdf: string, originalPage: int, destinationPage: int, clr: System.Drawing.Color)เรียก CreatePdfDocumentLink ((rect, remotePdf, originalPage, destinationPages, clr) ในตัวอย่างนี้ PdfContentEditor.
CreatePdfDocumentLink(rect: System.Drawing.Rectangle, remotePdf: string, originalPage: int, destinationPage: int, clr: System.Drawing.Color, actionName: System.Enum[])เรียก CreatePdfDocumentLink ((rect, remotePdf, originalPage, destinationPages, clr, actionName) ในตัวอย่างนี้ PdfContentEditor.
CreateJavaScriptLink(code: string, rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color)เรียก CreateJavaScriptLink ((code, rect, originalPage, color) ในตัวอย่างนี้ PdfContentEditor.
CreateCustomActionLink(rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color, actionName: System.Enum[])เรียก CreateCustomActionLink ((rect, originalPage, color, actionName) ในตัวอย่างนี้ PdfContentEditor.
CreateFreeText(rect: System.Drawing.Rectangle, contents: string, page: int)เรียก CreateFreeText ((rect, content, page) ในตัวอย่างนี้ PdfContentEditor.
CreateText(rect: System.Drawing.Rectangle, title: string, contents: string, open: bool, icon: string, page: int)เรียก CreateText ((rect, title, content, open, icon, page) ในตัวอย่างนี้ PdfContentEditor.
CreateCaret(page: int, annotRect: System.Drawing.Rectangle, caretRect: System.Drawing.Rectangle, symbol: string, annotContents: string, color: System.Drawing.Color)เรียก CreateCaret ((หน้า, annotRect, caretRecht, สัญลักษณ์, annoTContents,สี) ในตัวอย่างนี้ PdfContentEditor.
CreateMarkup(rect: System.Drawing.Rectangle, contents: string, type: int, page: int, clr: System.Drawing.Color)เรียก CreateMarkup ((rect, content, type, page, clr) ในตัวอย่างนี้ PdfContentEditor.
CreateSquareCircle(rect: System.Drawing.Rectangle, contents: string, clr: System.Drawing.Color, square: bool, page: int, borderWidth: int)เรียก CreateSquareCircle ((rect, content, clr, square, page, borderWidth) ในตัวอย่างนี้ 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 ((rect, content, x1, y1, x2, y2, page, border, clr, boundaryStyle, dashArray, LEArry) ในตัวอย่างนี้ PdfContentEditor.
CreatePolygon(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)เรียก CreatePolygon ((lineInfo, page, annotRect, annotContents) ในตัวอย่างนี้ PdfContentEditor.
CreatePolyLine(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)เรียก CreatePolyLine ((lineInfo, page, annotRect, annotContents) ในตัวอย่างนี้ PdfContentEditor.
CreatePopup(rect: System.Drawing.Rectangle, contents: string, open: bool, page: int)เรียก CreatePopup ((rect, content, open, page) ในตัวอย่างนี้ PdfContentEditor.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceFile: string)เรียก CreateRubberStamp ((หน้า, annotRect, annotเนื้อหา, สี, ลักษณะFile) ในตัวอย่างนี้ PdfContentEditor.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceStream: Stream)เรียก CreateRubberStamp ((หน้า, annotRect, annotContents, สี, ลักษณะStream) ในตัวอย่างนี้ PdfContentEditor.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, icon: string, annotContents: string, color: System.Drawing.Color)เรียก CreateRubberStamp ((หน้า, annotRect, ไอคอน, annotContents, สี) ในตัวอย่างนี้ PdfContentEditor.
CreateMovie(rect: System.Drawing.Rectangle, filePath: string, page: int)เรียก CreateMovie ((rect, filePath, page) ในตัวอย่างนี้ PdfContentEditor.
CreateSound(rect: System.Drawing.Rectangle, filePath: string, name: string, page: int, rate: string)เรียก CreateSound ((rect, filePath, name, page, rate) ในตัวอย่างนี้ PdfContentEditor.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string)เรียก CreateFileAttachment ((rect, content, filePath, page, name) ในตัวอย่างนี้ PdfContentEditor.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string, opacity: double)เรียก CreateFileAttachment ((rect, content, filePath, page, name, opacity) ในตัวอย่างนี้ PdfContentEditor.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, attachmentStream: Stream, attachmentName: string, page: int, name: string)เรียก CreateFileAttachment ((rect, content, attachmentStream, AnnexName, page, name) ในตัวอย่างนี้ PdfContentEditor.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, attachmentStream: Stream, attachmentName: string, page: int, name: string, opacity: double)เรียก CreateFileAttachment ((rect, content, attachmentStream, AnnexName, page, name, opacity) ในตัวอย่างนี้ PdfContentEditor.
CreateBookmarksAction(title: string, color: System.Drawing.Color, boldFlag: bool, italicFlag: bool, file: string, actionType: string, destination: string)เรียก CreateBookmarksAction ((ชื่อ, สี, boldFlag, italicFlags, file, actionType, destination) ในตัวอย่างนี้ PdfContentEditor.
AddDocumentAdditionalAction(eventType: string, code: string)เรียก AddDocumentAdditionalAction ((eventType, code) ในตัวอย่างนี้ PdfContentEditor.
RemoveDocumentOpenAction()เรียก RemoveDocumentOpenAction ในตัวอย่างนี้ PdfContentEditor.
AddDocumentAttachment(fileAttachmentPath: string, description: string)เรียก AddDocumentAttachment(fileAttachmentPath, description) ในตัวอย่างนี้ PdfContentEditor.
AddDocumentAttachment(fileAttachmentStream: Stream, fileAttachmentName: string, description: string)เรียก AddDocumentAttachment ((fileAttachmentStream, fileAttachmentName, description) ในตัวอย่างนี้ PdfContentEditor.
DeleteAttachments()เรียก DeleteAttachments ในตัวอย่างนี้ PdfContentEditor.
ExtractLink()เรียก ExtractLink ในตัวอย่างนี้ PdfContentEditor.
DeleteImage()เรียก DeleteImage ในตัวอย่างนี้ PdfContentEditor.
DeleteImage(pageNumber: int, index: int[])เรียก DeleteImage ((pageNumber, index) ในตัวอย่างนี้ PdfContentEditor.
ReplaceImage(pageNumber: int, index: int, imageFile: string)เรียก ReplaceImage ((pageNumber, index, imageFile) ในตัวอย่างนี้ PdfContentEditor.
HideStampById(pageNumber: int, stampId: int)ซ่อนตรา ((() กับ stampId ที่ได้รับในหน้าโดยไม่ลบมัน: ตัวประกอบการวาดของตระกูลถูกเก็บไว้ แต่ถูกขัดด้วยคํานําคลิปเปล่า และเครื่องหมาย %StampHidden=1 จับสถิตเพื่อ GetStamps รายงานเห็น = false และ ShowStampById สามารถฟื้นคืนมันได้.
ShowStampById(pageNumber: int, stampId: int)แสดงตราที่ซ่อนไว้ก่อนหน้านี้: ถอดเครื่องหมายซับ และคํานําเสนอคลิปว่าง เพื่อให้การวาดสีตระกูลอีกครั้ง.
DeleteStampById(stampId: int)ลบตราทั้งหมดที่มี ID ตราที่ให้ไว้บนทุกหน้า.
DeleteStampByIds(stampIds: int[])ลบตราที่มีรหัสประจําตัวในตระกูล ตราบนทุกหน้า.
MoveStamp(pageNumber: int, stampIndex: int, x: double, y: double)เรียก MoveStamp(pageNumber, stampIndex, x, y) ในตัวอย่างนี้ PdfContentEditor.
MoveStampById(pageNumber: int, stampId: int, x: double, y: double)เรียก MoveStampById(pageNumber, stampId, x, y) ในตัวอย่างนี้ PdfContentEditor.

ดูเช่นกัน

 ภาษาไทย