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 روش اضافی. همه اعضای عمومی پس از نصب بسته Aspose.PDF FOSS for .NET به هر برنامه .Net قابل دسترسی هستند. خواص: Document, DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint,، و 5 تا ديگه .

خواص

نام:نوع:Accessشرح:
DocumentDocumentبخونید.سند PDF که در حال حاضر برای ویرایش آماده است.
TextReplaceOptionsTextReplaceOptionsخواندن/نوشتنگزینه های جایگزین متن مورد استفاده توسط ReplaceText ((string,strings) خانواده.
TextEditOptionsTextEditOptionsخواندن/نوشتنگزینه های ویرایش متن به موتور جایگزین زیربنایی ارسال شده است.
TextSearchOptionsTextSearchOptionsخواندن/نوشتنگزینه های جستجوی متن مورد استفاده متغیرهای جایگزین کردن متن با حالت.
ReplaceTextStrategyReplaceTextStrategyخواندن/نوشتناستراتژی کنترل چگونگی ReplaceText ((string, string) مطابقت دارد (معادل حرفی و غیر لفظی).
DocumentOpenstringبخونید.سند را باز می‌کند.
DocumentClosestringبخونید.دریافت بسته شدن سند.
DocumentWillSavestringبخونید.سند را که ذخیره خواهد شد دریافت می‌کند.
DocumentSavedstringبخونید.سند ذخیره‌شده را دریافت می‌کند.
DocumentWillPrintstringبخونید.سندی که چاپ خواهد شد را دریافت می‌کند.
DocumentPrintedstringبخونید.سند را چاپ می‌کند.

روش ها

Signatureشرح:
PdfContentEditor()پیش فرض ctor پی دی اف را بعداً از طریق 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[])تمبرها را در یک صفحه با شاخص های مبتنی بر صفر حذف کنید.
DeleteStampById(pageNumber: int, stampId: int)یک تمبر را با ID تمبرها حذف کنید (ID اختصاص داده شده از طریق Stamp.StampId).
DeleteStampByIds(pageNumber: int, stampIds: int[])مهر ها رو با شناسه های تمبرشون پاک کنين.
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)بارگذاری بیش از حد که مستطیل را به فرم PDF و نمایندگان تبدیل می کند.
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[])تمام تمبر هایی که شناسه شان در هر صفحه ای ثبت شده حذف کنید.
MoveStamp(pageNumber: int, stampIndex: int, x: double, y: double)MoveStamp را در این مورد PdfContentEditor فرا می خواند.
MoveStampById(pageNumber: int, stampId: int, x: double, y: double)MoveStampById را در این مورد PdfContentEditor فرا می خواند.

همچنین ببینید:

 فارسی