PdfContentEditor

PdfContentEditor

Približni podaci

PdfContentEditor je klasa u Aspose.PDF FOSS za .NET. Nasljednici od: System.IDisposable.

Facade za uređivanje na razini sadržaja: zamjena teksta, stvaranje veza, operacije sliku.

Ova klasa pruža 83 metode za rad s PdfContentEditor objektima u .NET programima. Postoje i sljedeće metode: AddDocumentAdditionalAction, AddDocumentAttachment, BindPdf, ChangeViewerPreference, Close, CreateApplicationLink, CreateBookmarksAction, CreateCaret, CreateCustomActionLink, CreateFileAttachment, CreateFreeText, CreateJavaScriptLink, i 35 dodatnih metoda. Svi javni članovi dostupni su bilo kojoj .NET aplikaciji nakon instalacije paketa Aspose.PDF FOSS za .Net. Ograničenja: Document, DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint, i još 5 .

Oznake i značajke

Izvršni datum:Iznos:PrihvatOpisivanje
DocumentDocumentČitaj.PDF dokument koji je trenutno spreman za uređivanje.
TextReplaceOptionsTextReplaceOptionsČitanje/pisanjeOpcije zamjene teksta koje koristi ReplaceText(string,strings) obitelj.
TextEditOptionsTextEditOptionsČitanje/pisanjeOpcije uređivanja teksta prosljeđena su zamjenskom motoru.
TextSearchOptionsTextSearchOptionsČitanje/pisanjeOpcije pretrage teksta koje koriste varijante zamjene tekstom s statusom.
ReplaceTextStrategyReplaceTextStrategyČitanje/pisanjeStrategija koja kontrolira kako ReplaceText ((string, string) odgovara (doslovno vs.
DocumentOpenstringČitaj.Otvara dokument.
DocumentClosestringČitaj.Približava se dokumentu.
DocumentWillSavestringČitaj.Dobiva dokument će spasiti.
DocumentSavedstringČitaj.Spasiti dokument.
DocumentWillPrintstringČitaj.Dokumentacija će biti štampana.
DocumentPrintedstringČitaj.Da li je to u redu? -Da.

Metoda za primjenu

PotpisOpisivanje
PdfContentEditor()Standardni ctor veže PDF kasnije putem BindPdf(string).
PdfContentEditor(document: Document)Priključiti na postojeći dokument prilikom izgradnje.
BindPdf(pdfData: byte[])Veži PDF datoteku za uređivanje.
BindPdf(inputFile: string)Veži PDF datoteku po stazi za uređivanje.
BindPdf(inputStream: Stream)Veži PDF stream za uređivanje.
BindPdf(srcDoc: Document)Veži PDF dokument u memoriji za uređivanje.
Save()Sačuvaj dokument.
Save(path: string)Sačuvati vezan dokument na putanje datoteke.
Save(stream: Stream)Sačuvati vezan dokument u tok.
Close()Zatvorite dokument.
Dispose()Oslobađa vezan dokument (odnosno Zatvoru).
GetViewerPreference()Dobijate trenutne preferencije gledalaca zastave kao cijela bitmaska.
ChangeViewerPreference(viewerAttribution: int)Promijeni preferenciju gledalaca.
GetStamps(pageNumber: int)Na stranici dobivam informacije o markama.
DeleteStamp(pageNumber: int, index: int[])Izbrišite pečatove na stranici po njihovim indeksima zasnovanim na 0.
DeleteStampById(pageNumber: int, stampId: int)Ako je to moguće, odredi se:.
DeleteStampByIds(pageNumber: int, stampIds: int[])Izbrišite marke po njihovim identifikacijskim oznakama.
ReplaceText(srcString: string, destString: string)U vezi s dokumentom zamjenite tekst prema ReplaceTextStrategy.
ReplaceText(srcString: string, thePage: int, destString: string)Zamjenite tekst na određenoj stranici (na temelju 1).
ReplaceText(srcString: string, destString: string, textState: TextState)U slučaju da je to moguće, treba se upotrijebiti sljedeći način:.
ReplaceText(srcString: string, thePage: int, destString: string, textState: TextState)Zamjenite tekst na određenoj stranici eksplicitnim TextState.
ReplaceText(srcString: string, destString: string, fontSize: int)Zamjenite tekst i prevaziđite veličinu font-a zamjene.
ReplaceText(input: byte[], searchText: string, replaceText: string)Zamjenite sve slučajeve teksta na svim stranicama.
ReplaceText(input: byte[], searchText: string, replaceText: string, options: TextSearchOptions)Zamjenite sve slučajeve teksta na svim stranicama pomoću opcija pretrage.
ReplaceTextOnPage(input: byte[], pageNumber: int, searchText: string, replaceText: string)Zamjenite tekst na određenoj stranici (na temelju 1).
CreateLocalLink(input: byte[], rect: Rectangle, pageNumber: int, destinationPage: int)Stvoriti lokalnu oznaku poveznice koja vodi na stranicu u istom dokumentu.
CreateWebLink(input: byte[], rect: Rectangle, pageNumber: int, url: string)Stvoriti URI link opisa koji otvara URL.
CreateFreeText(input: byte[], rect: Rectangle, pageNumber: int, text: string, fontName: string?, fontSize: double)Stvoriti besplatnu tekstualnu opomenu na stranici.
CreateText(input: byte[], rect: Rectangle, pageNumber: int, title: string, contents: string)Stvaranje tekstualne (lepljive bilješke) opisa na stranici.
DeleteAnnotations(input: byte[], pageNumber: int)Izbrišite sve napomene na određenoj stranici.
DeleteAnnotations(input: byte[], pageNumber: int, annotationType: string)Izbrišite komentare specifičnog podtipa s stranice.
ExtractText(input: byte[], pageNumber: int)Izvaditi tekst s određene stranice.
ExtractText(input: byte[])Izvaditi tekst sa svih stranica.
DrawCurve(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Preopterećenje koje pretvara Pravougaon u PDF pravougan obrazac i delegati.
DrawCurve(lineInfo: LineInfo, pageNumber: int, rect: Rectangle, message: string?)Nacrtaj krivu (poliniju) na stranici.
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int)Zove CreateLocalLink na ovom PdfContentEditor primjerka.
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)Zove CreateWebLink na ovom PdfContentEditor primjerka.
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)Zove CreateApplicationLink na ovom PdfContentEditor primjerka.
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)Zove CreatePdfDocumentLink na ovom PdfContentEditor primjerka.
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)Zove CreateJavaScriptLink na ovom PdfContentEditor primjerka.
CreateCustomActionLink(rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color, actionName: System.Enum[])Zove CreateCustomActionLink na ovom PdfContentEditor primjerka.
CreateFreeText(rect: System.Drawing.Rectangle, contents: string, page: int)Zove CreateFreeText na ovom PdfContentEditor primjerka.
CreateText(rect: System.Drawing.Rectangle, title: string, contents: string, open: bool, icon: string, page: int)Zove CreateText na ovom PdfContentEditor primjerka.
CreateCaret(page: int, annotRect: System.Drawing.Rectangle, caretRect: System.Drawing.Rectangle, symbol: string, annotContents: string, color: System.Drawing.Color)Zove CreateCaret na ovom PdfContentEditor primjerka.
CreateMarkup(rect: System.Drawing.Rectangle, contents: string, type: int, page: int, clr: System.Drawing.Color)Zove CreateMarkup na ovom PdfContentEditor primjerka.
CreateSquareCircle(rect: System.Drawing.Rectangle, contents: string, clr: System.Drawing.Color, square: bool, page: int, borderWidth: int)Zove CreateSquareCircle na ovom PdfContentEditor primjerka.
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[])Zove CreateLine na ovom PdfContentEditor primjerka.
CreatePolygon(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Zove CreatePolygon na ovom PdfContentEditor primjerka.
CreatePolyLine(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Zove CreatePolyLine na ovom PdfContentEditor primjerka.
CreatePopup(rect: System.Drawing.Rectangle, contents: string, open: bool, page: int)Zove CreatePopup na ovom PdfContentEditor primjerka.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceFile: string)Zove CreateRubberStamp na ovom PdfContentEditor primjerka.
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)Zove CreateMovie na ovom PdfContentEditor primjerka.
CreateSound(rect: System.Drawing.Rectangle, filePath: string, name: string, page: int, rate: string)Zove CreateSound na ovom PdfContentEditor primjerka.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string)Zove CreateFileAttachment na ovom PdfContentEditor primjerka.
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)Zove CreateBookmarksAction na ovom PdfContentEditor primjerka.
AddDocumentAdditionalAction(eventType: string, code: string)Zove AddDocumentAdditionalAction na ovom PdfContentEditor primjerka.
RemoveDocumentOpenAction()Zove RemoveDocumentOpenAction na ovom PdfContentEditor primjerka.
AddDocumentAttachment(fileAttachmentPath: string, description: string)Zove AddDocumentAttachment na ovom PdfContentEditor primjerka.
AddDocumentAttachment(fileAttachmentStream: Stream, fileAttachmentName: string, description: string)
DeleteAttachments()Zove DeleteAttachments na ovom PdfContentEditor primjerka.
ExtractLink()Zove ExtractLink na ovom PdfContentEditor primjerka.
DeleteImage()Zove DeleteImage na ovom PdfContentEditor primjerka.
DeleteImage(pageNumber: int, index: int[])
ReplaceImage(pageNumber: int, index: int, imageFile: string)Zove ReplaceImage na ovom PdfContentEditor primjerka.
HideStampById(pageNumber: int, stampId: int)Zove HideStampById na ovom PdfContentEditor primjerka.
ShowStampById(pageNumber: int, stampId: int)Pokaži prethodno skriveni pečat.
DeleteStampById(stampId: int)Izbrišite sve marke s navedenim ID-om na svakoj stranici.
DeleteStampByIds(stampIds: int[])Izbrišite sve marke čiji je ID u stampIds na svakoj stranici.
MoveStamp(pageNumber: int, stampIndex: int, x: double, y: double)Zove MoveStamp na ovom PdfContentEditor primjerka.
MoveStampById(pageNumber: int, stampId: int, x: double, y: double)Zove MoveStampById na ovom PdfContentEditor primjerka.

Također pogledajte:

 Hrvatski