PdfContentEditor

PdfContentEditor

Revisión

PdfContentEditor Es una clase en Aspose.PDF FOSS para .NET. Heredados de: System.IDisposable.

Facade para la edición de contenido: reemplazo de texto, creación de enlaces, operaciones de imagen.

Esta clase proporciona 83 métodos para trabajar con los objetos de PdfContentEditor en programas .NET. Los métodos disponibles incluyen: AddDocumentAdditionalAction, AddDocumentAttachment, BindPdf, ChangeViewerPreference, Close, CreateApplicationLink, CreateBookmarksAction, CreateCaret, CreateCustomActionLink, CreateFileAttachment, CreateFreeText, CreateJavaScriptLink,y 35 métodos adicionales. Todos los miembros públicos están accesibles a cualquier aplicación .NET después de instalar el Aspose.PDF FOSS para el paquete .Net. Propiedades : Document, DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint,Y 5 más.

Propiedades

NombreTipoAccesoDescripción
DocumentDocumentLeerEl documento PDF está obligado a la edición.
TextReplaceOptionsTextReplaceOptionsLeer / escribirLas opciones de reemplazo del texto utilizadas por la familia ReplaceText (string,strings).
TextEditOptionsTextEditOptionsLeer / escribirLas opciones de edición de texto se envían al motor de reemplazo subyacente.
TextSearchOptionsTextSearchOptionsLeer / escribirLas opciones de búsqueda de texto utilizadas por las variantes de reemplazo del texto.
ReplaceTextStrategyReplaceTextStrategyLeer / escribirEstrategia de control de cómo ReplaceText(string, string) juega (literal vs.
DocumentOpenstringLeerObtenga el documento abierto.
DocumentClosestringLeerCierra el documento.
DocumentWillSavestringLeerSi recibe el documento se salvará.
DocumentSavedstringLeerEl documento se salva.
DocumentWillPrintstringLeerSi recibe el documento se imprimirá.
DocumentPrintedstringLeerSe imprime el documento.

Metodología

firmaDescripción
PdfContentEditor()Default ctor — vincular un PDF más tarde a través de BindPdf(string).
PdfContentEditor(document: Document)Un documento en construcción existente.
BindPdf(pdfData: byte[])Enlazar un archivo PDF para editar.
BindPdf(inputFile: string)Enlazar un archivo PDF por camino para la edición.
BindPdf(inputStream: Stream)Enlazar un flujo de PDF para la edición.
BindPdf(srcDoc: Document)Enlazar un documento PDF en memoria para editar.
Save()Salva el documento vinculado.
Save(path: string)Salva el documento vinculado a un camino de archivo.
Save(stream: Stream)Salva el documento vinculado a un flujo.
Close()Cierra el documento vinculado.
Dispose()El documento vinculado (equivalente a Cerca) se libera.
GetViewerPreference()Obtenga las banderas de la preferencia del espectador actual como una mascarilla completa.
ChangeViewerPreference(viewerAttribution: int)Cambiar la preferencia de espectador.
GetStamps(pageNumber: int)Obtenga información sobre los estampos en una página.
DeleteStamp(pageNumber: int, index: int[])Eliminar las etiquetas en una página por sus índices basados en 0.
DeleteStampById(pageNumber: int, stampId: int)Elimine un símbolo con su ID de símbolos (el ID asignado a través de Stamp.StampId).
DeleteStampByIds(pageNumber: int, stampIds: int[])Eliminar las etiquetas con sus ID de etiqueta.
ReplaceText(srcString: string, destString: string)Substituye el texto en el documento vinculado de acuerdo con ReplaceTextStrategy.
ReplaceText(srcString: string, thePage: int, destString: string)Substituir el texto en una página específica (1-basado).
ReplaceText(srcString: string, destString: string, textState: TextState)Substituir el texto con la formatación expresa TextState (font/size/color).
ReplaceText(srcString: string, thePage: int, destString: string, textState: TextState)Substituir el texto en una página específica con explicit TextState.
ReplaceText(srcString: string, destString: string, fontSize: int)Substituye el texto y sobrecoge el tamaño de la letra del curso de reemplazo.
ReplaceText(input: byte[], searchText: string, replaceText: string)Substituye todos los acontecimientos de texto en todas las páginas.
ReplaceText(input: byte[], searchText: string, replaceText: string, options: TextSearchOptions)Substituye todos los acontecimientos de texto en todas las páginas utilizando opciones de búsqueda.
ReplaceTextOnPage(input: byte[], pageNumber: int, searchText: string, replaceText: string)Substituir el texto en una página específica (1-basado).
CreateLocalLink(input: byte[], rect: Rectangle, pageNumber: int, destinationPage: int)Crea una anotación de enlace local que navega a una página en el mismo documento.
CreateWebLink(input: byte[], rect: Rectangle, pageNumber: int, url: string)Crea una anotación de enlace URI que abre un URL.
CreateFreeText(input: byte[], rect: Rectangle, pageNumber: int, text: string, fontName: string?, fontSize: double)Crea una anotación de texto gratuita en una página.
CreateText(input: byte[], rect: Rectangle, pageNumber: int, title: string, contents: string)Crea una nota de texto (sticks) en una página.
DeleteAnnotations(input: byte[], pageNumber: int)Elimine todas las anotaciones en una página específica.
DeleteAnnotations(input: byte[], pageNumber: int, annotationType: string)Elimina las anotaciones de un subtipo específico de una página.
ExtractText(input: byte[], pageNumber: int)Extracto de texto desde una página específica.
ExtractText(input: byte[])Extracto de texto de todas las páginas.
DrawCurve(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Sobrecarga que converte el Rectangle al formato de PDF y los delegados.
DrawCurve(lineInfo: LineInfo, pageNumber: int, rect: Rectangle, message: string?)Toma una curva (polínea) en una página.
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int)Póngase en el instante CreateLocalLink.
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)Póngase en el instante CreateWebLink.
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)Póngase en el instante CreateApplicationLink.
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)Póngase en el instante CreatePdfDocumentLink.
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)Póngase en el instante CreateJavaScriptLink.
CreateCustomActionLink(rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color, actionName: System.Enum[])Póngase en el instante CreateCustomActionLink.
CreateFreeText(rect: System.Drawing.Rectangle, contents: string, page: int)Póngase en el instante CreateFreeText.
CreateText(rect: System.Drawing.Rectangle, title: string, contents: string, open: bool, icon: string, page: int)Póngase en el instante CreateText.
CreateCaret(page: int, annotRect: System.Drawing.Rectangle, caretRect: System.Drawing.Rectangle, symbol: string, annotContents: string, color: System.Drawing.Color)Póngase en el instante CreateCaret.
CreateMarkup(rect: System.Drawing.Rectangle, contents: string, type: int, page: int, clr: System.Drawing.Color)Póngase en el instante CreateMarkup.
CreateSquareCircle(rect: System.Drawing.Rectangle, contents: string, clr: System.Drawing.Color, square: bool, page: int, borderWidth: int)Póngase en el instante CreateSquareCircle.
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[])Póngase en el instante CreateLine.
CreatePolygon(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Póngase en el instante CreatePolygon.
CreatePolyLine(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)Póngase en el instante CreatePolyLine.
CreatePopup(rect: System.Drawing.Rectangle, contents: string, open: bool, page: int)Póngase en el instante CreatePopup.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceFile: string)Póngase en el instante CreateRubberStamp.
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)Póngase en el instante CreateMovie.
CreateSound(rect: System.Drawing.Rectangle, filePath: string, name: string, page: int, rate: string)Póngase en el instante CreateSound.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string)Póngase en el instante CreateFileAttachment.
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)Póngase en el instante CreateBookmarksAction.
AddDocumentAdditionalAction(eventType: string, code: string)Póngase en el instante AddDocumentAdditionalAction.
RemoveDocumentOpenAction()Póngase en el instante RemoveDocumentOpenAction.
AddDocumentAttachment(fileAttachmentPath: string, description: string)Póngase en el instante AddDocumentAttachment.
AddDocumentAttachment(fileAttachmentStream: Stream, fileAttachmentName: string, description: string)
DeleteAttachments()Póngase en el instante DeleteAttachments.
ExtractLink()Póngase en el instante ExtractLink.
DeleteImage()Póngase en el instante DeleteImage.
DeleteImage(pageNumber: int, index: int[])
ReplaceImage(pageNumber: int, index: int, imageFile: string)Póngase en el instante ReplaceImage.
HideStampById(pageNumber: int, stampId: int)Póngase en el instante HideStampById.
ShowStampById(pageNumber: int, stampId: int)Mostrar un marcador previamente oculto.
DeleteStampById(stampId: int)Elimine todos los estampos con el dato de estampaId en cada página.
DeleteStampByIds(stampIds: int[])Elimine todos los símbolos cuyo ID está en stampIds a través de cada página.
MoveStamp(pageNumber: int, stampIndex: int, x: double, y: double)Póngase en el instante MoveStamp.
MoveStampById(pageNumber: int, stampId: int, x: double, y: double)Póngase en el instante MoveStampById.

Ver también

 Español