PdfContentEditor

PdfContentEditor

Overview

PdfContentEditor az .NET-es FOSS Aspose.PDF osztály. Az örökölők: System.IDisposable.

A tartalomszintű szerkesztés homlokzatát: szövegcserélés, link létrehozása, kép műveletek.

Ez a osztály 83 módszert biztosít az PdfContentEditor objektumokkal való munkavégzéshez .NET programokban. A rendelkezésre álló módszerek közé tartozik: AddDocumentAdditionalAction, AddDocumentAttachment, BindPdf, ChangeViewerPreference, Close, CreateApplicationLink, CreateBookmarksAction, CreateCaret, CreateCustomActionLink, CreateFileAttachment, CreateFreeText, CreateJavaScriptLink, és 35 további módszer. Minden nyilvános tag hozzáférhető bármely .NET alkalmazáshoz a Aspose.PDF FOSS for .Net csomag telepítése után. A tulajdonságok: Document, DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint, és még öt.

Properties

NameTypeAccessDescription
DocumentDocumentReadA PDF dokumentum jelenleg szerkesztésre készült.
TextReplaceOptionsTextReplaceOptionsOlvasás/írásA ReplaceText(string,strings) család által használt szövegcserélési lehetőségek.
TextEditOptionsTextEditOptionsOlvasás/írásA szövegszerkesztési lehetőségek továbbítása az alapul szolgáló cserélőmotorhoz.
TextSearchOptionsTextSearchOptionsOlvasás/írásA szöveg-helyettesítő változatok által használt szövegkeresési lehetőségek.
ReplaceTextStrategyReplaceTextStrategyOlvasás/írásA ReplaceText ((string, string) összeegyeztethetőségének irányítása (szó szerint vs. szó szerint).
DocumentOpenstringReadNyitja a dokumentumot.
DocumentClosestringReadKözel hozza a dokumentumot.
DocumentWillSavestringReadMegveszi a dokumentumot, amit megment.
DocumentSavedstringReadMegőrzi a dokumentumot.
DocumentWillPrintstringReadA dokumentum kinyomtatásra kerül.
DocumentPrintedstringReadA dokumentum nyomtatását.

Methods

SignatureDescription
PdfContentEditor()Az alapértelmezett ctor köti a PDF-et később BindPdf(string) segítségével.
PdfContentEditor(document: Document)A meglévő dokumentumhoz kötni.
BindPdf(pdfData: byte[])Csatlakozásra PDF-fájl.
BindPdf(inputFile: string)Csatlakozáshoz PDF-fájl útvonalat.
BindPdf(inputStream: Stream)Csatlakozáshoz PDF-s streamet köt.
BindPdf(srcDoc: Document)A szerkesztésre szolgáló PDF-dokumentum kötése.
Save()Vedd le a kötött dokumentumot.
Save(path: string)A kötött dokumentumot egy fájl útvonalba menteni.
Save(stream: Stream)A kötött dokumentumot egy folyóba menteni.
Close()Zárja be a kötött dokumentumot.
Dispose()A kötött dokumentumot elengedi (az Ötözéshez egyenértékű).
GetViewerPreference()Szerezd meg a jelenlegi nézői preferenciák jelvényét egész számú bitmaszkként.
ChangeViewerPreference(viewerAttribution: int)Változtassa meg a nézői preferenciát.
GetStamps(pageNumber: int)Kapsz információt a bélyegzőkről egy oldalon.
DeleteStamp(pageNumber: int, index: int[])A címkék törlését a 0-alapú indexek alapján.
DeleteStampById(pageNumber: int, stampId: int)A bélyegzőt törölje a börtönzárkó-ID (az Stamp.StampId segítségével megadott ID).
DeleteStampByIds(pageNumber: int, stampIds: int[])Törölje a bélyegeket az azonosítójukkal.
ReplaceText(srcString: string, destString: string)A kötött dokumentumban a ReplaceTextStrategy szöveg helyébe lép.
ReplaceText(srcString: string, thePage: int, destString: string)A szöveg helyettesítése egy adott oldalon (1-alapú).
ReplaceText(srcString: string, destString: string, textState: TextState)A szöveget a TextState formázással (szöveg/méret/szín) helyettesítse.
ReplaceText(srcString: string, thePage: int, destString: string, textState: TextState)Cserélje a szöveget egy adott oldalra az egyértelmű TextState-val.
ReplaceText(srcString: string, destString: string, fontSize: int)Cserélje a szöveget és törölje az átváltási futtatás betűtípusát.
ReplaceText(input: byte[], searchText: string, replaceText: string)Minden oldalon helyettesítsd a szöveget.
ReplaceText(input: byte[], searchText: string, replaceText: string, options: TextSearchOptions)A keresési lehetőségek segítségével helyettesítse a szöveg minden megjelenését az összes oldalon.
ReplaceTextOnPage(input: byte[], pageNumber: int, searchText: string, replaceText: string)A szöveg helyettesítése egy adott oldalon (1-alapú).
CreateLocalLink(input: byte[], rect: Rectangle, pageNumber: int, destinationPage: int)Hozzon létre egy helyi link-megjegyzést, amely ugyanabban a dokumentumban található oldalra vezet.
CreateWebLink(input: byte[], rect: Rectangle, pageNumber: int, url: string)Hozzáférés URL-hez.
CreateFreeText(input: byte[], rect: Rectangle, pageNumber: int, text: string, fontName: string?, fontSize: double)Készítsen egy szabad szöveges megjegyzést az oldalon.
CreateText(input: byte[], rect: Rectangle, pageNumber: int, title: string, contents: string)A szöveg (kötős megjegyzés) kommentáció létrehozása egy oldalon.
DeleteAnnotations(input: byte[], pageNumber: int)Törölje az összes megjegyzést egy adott oldalon.
DeleteAnnotations(input: byte[], pageNumber: int, annotationType: string)Egy adott altípus megjegyzéseinek törlése az oldalon.
ExtractText(input: byte[], pageNumber: int)Egy adott oldalról kivonatolt szöveg.
ExtractText(input: byte[])Kiválasztott szöveg minden oldalról.
DrawCurve(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Túlterhelés, amely a Rectangle-t PDF formába alakítja és delegálja.
DrawCurve(lineInfo: LineInfo, pageNumber: int, rect: Rectangle, message: string?)Vegyünk egy görbét (polyvonal) az oldalon.
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int)Hívja a CreateLocalLink-t ebben aPdfContentEditor példányban.
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ívja a CreateWebLink-t ebben aPdfContentEditor példányban.
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ívja a CreateApplicationLink-t ebben aPdfContentEditor példányban.
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ívja a CreatePdfDocumentLink-t ebben aPdfContentEditor példányban.
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ívja a CreateJavaScriptLink-t ebben aPdfContentEditor példányban.
CreateCustomActionLink(rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color, actionName: System.Enum[])Hívja a CreateCustomActionLink-t ebben aPdfContentEditor példányban.
CreateFreeText(rect: System.Drawing.Rectangle, contents: string, page: int)Hívja a CreateFreeText-t ebben aPdfContentEditor példányban.
CreateText(rect: System.Drawing.Rectangle, title: string, contents: string, open: bool, icon: string, page: int)Hívja a CreateText-t ebben aPdfContentEditor példányban.
CreateCaret(page: int, annotRect: System.Drawing.Rectangle, caretRect: System.Drawing.Rectangle, symbol: string, annotContents: string, color: System.Drawing.Color)Hívja a CreateCaret-t ebben aPdfContentEditor példányban.
CreateMarkup(rect: System.Drawing.Rectangle, contents: string, type: int, page: int, clr: System.Drawing.Color)Hívja a CreateMarkup-t ebben aPdfContentEditor példányban.
CreateSquareCircle(rect: System.Drawing.Rectangle, contents: string, clr: System.Drawing.Color, square: bool, page: int, borderWidth: int)Hívja a CreateSquareCircle-t ebben aPdfContentEditor példányban.
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ívja a CreateLine-t ebben aPdfContentEditor példányban.
CreatePolygon(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Hívja a CreatePolygon-t ebben aPdfContentEditor példányban.
CreatePolyLine(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Hívja a CreatePolyLine-t ebben aPdfContentEditor példányban.
CreatePopup(rect: System.Drawing.Rectangle, contents: string, open: bool, page: int)Hívja a CreatePopup-t ebben aPdfContentEditor példányban.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceFile: string)Hívja a CreateRubberStamp-t ebben aPdfContentEditor példányban.
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ívja a CreateMovie-t ebben aPdfContentEditor példányban.
CreateSound(rect: System.Drawing.Rectangle, filePath: string, name: string, page: int, rate: string)Hívja a CreateSound-t ebben aPdfContentEditor példányban.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string)Hívja a CreateFileAttachment-t ebben aPdfContentEditor példányban.
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ívja a CreateBookmarksAction-t ebben aPdfContentEditor példányban.
AddDocumentAdditionalAction(eventType: string, code: string)Hívja a AddDocumentAdditionalAction-t ebben aPdfContentEditor példányban.
RemoveDocumentOpenAction()Hívja a RemoveDocumentOpenAction-t ebben aPdfContentEditor példányban.
AddDocumentAttachment(fileAttachmentPath: string, description: string)Hívja a AddDocumentAttachment-t ebben aPdfContentEditor példányban.
AddDocumentAttachment(fileAttachmentStream: Stream, fileAttachmentName: string, description: string)
DeleteAttachments()Hívja a DeleteAttachments-t ebben aPdfContentEditor példányban.
ExtractLink()Hívja a ExtractLink-t ebben aPdfContentEditor példányban.
DeleteImage()Hívja a DeleteImage-t ebben aPdfContentEditor példányban.
DeleteImage(pageNumber: int, index: int[])
ReplaceImage(pageNumber: int, index: int, imageFile: string)Hívja a ReplaceImage-t ebben aPdfContentEditor példányban.
HideStampById(pageNumber: int, stampId: int)Hívja a HideStampById-t ebben aPdfContentEditor példányban.
ShowStampById(pageNumber: int, stampId: int)Mutasson egy korábban elrejtett bélyeget.
DeleteStampById(stampId: int)Minden oldalra törölje az adott bélyegzőt.
DeleteStampByIds(stampIds: int[])Törölje ki az összes bélyeget, amelyek azonosítója a börtönbélyegeken található.
MoveStamp(pageNumber: int, stampIndex: int, x: double, y: double)Hívja a MoveStamp-t ebben aPdfContentEditor példányban.
MoveStampById(pageNumber: int, stampId: int, x: double, y: double)Hívja a MoveStampById-t ebben aPdfContentEditor példányban.

See Also

 Magyar