PdfContentEditor

PdfContentEditor

개요

PdfContentEditor은(는) Aspose.PDF FOSS에서 .NET용 클래스입니다. 상속 대상: System.IDisposable.

콘텐츠 수준 편집을 위한 파사드: 텍스트 교체, 링크 생성, 이미지 작업.

이 클래스는 .NET 프로그램에서 PdfContentEditor 객체를 다루기 위한 83개의 메서드를 제공합니다. 사용 가능한 메서드에는 AddDocumentAdditionalAction, AddDocumentAttachment, BindPdf, ChangeViewerPreference, Close, CreateApplicationLink, CreateBookmarksAction, CreateCaret, CreateCustomActionLink, CreateFileAttachment, CreateFreeText, CreateJavaScriptLink 및 추가 35개의 메서드가 포함됩니다. 모든 공개 멤버는 Aspose.PDF FOSS for .NET 패키지를 설치한 후 any .NET 애플리케이션에서 접근할 수 있습니다. 속성: Document, DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint 및 추가 5개.

속성

이름유형액세스설명
DocumentDocument읽기현재 편집을 위해 바인딩된 PDF 문서.
TextReplaceOptionsTextReplaceOptions읽기/쓰기텍스트 교체 옵션은 ReplaceText(string,string) 패밀리에서 사용됩니다.
TextEditOptionsTextEditOptions읽기/쓰기텍스트 편집 옵션이 기본 교체 엔진에 전달됩니다.
TextSearchOptionsTextSearchOptions읽기/쓰기상태 저장 텍스트 교체 변형에 사용되는 텍스트 검색 옵션.
ReplaceTextStrategyReplaceTextStrategy읽기/쓰기교체 텍스트 전략을 가져오거나 설정합니다.
DocumentOpenstring읽기문서를 엽니다.
DocumentClosestring읽기문서 닫기를 가져옵니다.
DocumentWillSavestring읽기저장될 문서를 가져옵니다.
DocumentSavedstring읽기저장된 문서를 가져옵니다.
DocumentWillPrintstring읽기인쇄될 문서를 가져옵니다.
DocumentPrintedstring읽기문서를 인쇄된 형태로 가져옵니다.

메서드

시그니처설명
PdfContentEditor()기본 생성자 — 나중에 BindPdf(string)으로 PDF를 바인드합니다.
PdfContentEditor(document: 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(Stamp.StampId를 통해 할당된 ID)로 스탬프를 삭제합니다.
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)URL을 여는 URI 링크 주석을 생성합니다.
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)이 PdfContentEditor 인스턴스에서 CreateLocalLink(rect, desPage, originalPage)를 호출합니다.
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int, clr: System.Drawing.Color)이 PdfContentEditor 인스턴스에서 CreateLocalLink(rect, desPage, originalPage, clr)를 호출합니다.
CreateLocalLink(rect: System.Drawing.Rectangle, desPage: int, originalPage: int, clr: System.Drawing.Color, actionName: System.Enum[])이 PdfContentEditor 인스턴스에서 CreateLocalLink(rect, desPage, originalPage, clr, actionName)를 호출합니다.
CreateWebLink(rect: System.Drawing.Rectangle, url: string, originalPage: int)이 PdfContentEditor 인스턴스에서 CreateWebLink(rect, url, originalPage)를 호출합니다.
CreateWebLink(rect: System.Drawing.Rectangle, url: string, originalPage: int, clr: System.Drawing.Color)이 PdfContentEditor 인스턴스에서 CreateWebLink(rect, url, originalPage, clr)를 호출합니다.
CreateWebLink(rect: System.Drawing.Rectangle, url: string, originalPage: int, clr: System.Drawing.Color, actionName: System.Enum[])이 PdfContentEditor 인스턴스에서 CreateWebLink(rect, url, originalPage, clr, actionName)를 호출합니다.
CreateApplicationLink(rect: System.Drawing.Rectangle, application: string, page: int)이 PdfContentEditor 인스턴스에서 CreateApplicationLink(rect, application, page)를 호출합니다.
CreateApplicationLink(rect: System.Drawing.Rectangle, application: string, page: int, clr: System.Drawing.Color)이 PdfContentEditor 인스턴스에서 CreateApplicationLink(rect, application, page, clr)를 호출합니다.
CreateApplicationLink(rect: System.Drawing.Rectangle, application: string, page: int, clr: System.Drawing.Color, actionName: System.Enum[])이 PdfContentEditor 인스턴스에서 CreateApplicationLink(rect, application, page, clr, actionName)를 호출합니다.
CreatePdfDocumentLink(rect: System.Drawing.Rectangle, remotePdf: string, originalPage: int, destinationPage: int)이 PdfContentEditor 인스턴스에서 CreatePdfDocumentLink(rect, remotePdf, originalPage, destinationPage)를 호출합니다.
CreatePdfDocumentLink(rect: System.Drawing.Rectangle, remotePdf: string, originalPage: int, destinationPage: int, clr: System.Drawing.Color)이 PdfContentEditor 인스턴스에서 CreatePdfDocumentLink(rect, remotePdf, originalPage, destinationPage, clr)를 호출합니다.
CreatePdfDocumentLink(rect: System.Drawing.Rectangle, remotePdf: string, originalPage: int, destinationPage: int, clr: System.Drawing.Color, actionName: System.Enum[])이 PdfContentEditor 인스턴스에서 CreatePdfDocumentLink(rect, remotePdf, originalPage, destinationPage, clr, actionName)를 호출합니다.
CreateJavaScriptLink(code: string, rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color)이 PdfContentEditor 인스턴스에서 CreateJavaScriptLink(code, rect, originalPage, color)를 호출합니다.
CreateCustomActionLink(rect: System.Drawing.Rectangle, originalPage: int, color: System.Drawing.Color, actionName: System.Enum[])이 PdfContentEditor 인스턴스에서 CreateCustomActionLink(rect, originalPage, color, actionName)를 호출합니다.
CreateFreeText(rect: System.Drawing.Rectangle, contents: string, page: int)이 PdfContentEditor 인스턴스에서 CreateFreeText(rect, contents, page)를 호출합니다.
CreateText(rect: System.Drawing.Rectangle, title: string, contents: string, open: bool, icon: string, page: int)이 PdfContentEditor 인스턴스에서 CreateText(rect, title, contents, open, icon, page)를 호출합니다.
CreateCaret(page: int, annotRect: System.Drawing.Rectangle, caretRect: System.Drawing.Rectangle, symbol: string, annotContents: string, color: System.Drawing.Color)이 PdfContentEditor 인스턴스에서 CreateCaret(page, annotRect, caretRect, symbol, annotContents, color)를 호출합니다.
CreateMarkup(rect: System.Drawing.Rectangle, contents: string, type: int, page: int, clr: System.Drawing.Color)이 PdfContentEditor 인스턴스에서 CreateMarkup(rect, contents, type, page, clr)를 호출합니다.
CreateSquareCircle(rect: System.Drawing.Rectangle, contents: string, clr: System.Drawing.Color, square: bool, page: int, borderWidth: int)이 PdfContentEditor 인스턴스에서 CreateSquareCircle(rect, contents, clr, square, page, borderWidth)를 호출합니다.
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[])이 PdfContentEditor 인스턴스에서 CreateLine(rect, contents, x1, y1, x2, y2, page, border, clr, borderStyle, dashArray, LEArray)를 호출합니다.
CreatePolygon(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)이 PdfContentEditor 인스턴스에서 CreatePolygon(lineInfo, page, annotRect, annotContents)를 호출합니다.
CreatePolyLine(lineInfo: LineInfo, page: int, annotRect: System.Drawing.Rectangle, annotContents: string)이 PdfContentEditor 인스턴스에서 CreatePolyLine(lineInfo, page, annotRect, annotContents)를 호출합니다.
CreatePopup(rect: System.Drawing.Rectangle, contents: string, open: bool, page: int)이 PdfContentEditor 인스턴스에서 CreatePopup(rect, contents, open, page)를 호출합니다.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceFile: string)이 PdfContentEditor 인스턴스에서 CreateRubberStamp(page, annotRect, annotContents, color, appearanceFile)를 호출합니다.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, annotContents: string, color: System.Drawing.Color, appearanceStream: Stream)이 PdfContentEditor 인스턴스에서 CreateRubberStamp(page, annotRect, annotContents, color, appearanceStream)를 호출합니다.
CreateRubberStamp(page: int, annotRect: System.Drawing.Rectangle, icon: string, annotContents: string, color: System.Drawing.Color)이 PdfContentEditor 인스턴스에서 CreateRubberStamp(page, annotRect, icon, annotContents, color)를 호출합니다.
CreateMovie(rect: System.Drawing.Rectangle, filePath: string, page: int)이 PdfContentEditor 인스턴스에서 CreateMovie(rect, filePath, page)를 호출합니다.
CreateSound(rect: System.Drawing.Rectangle, filePath: string, name: string, page: int, rate: string)이 PdfContentEditor 인스턴스에서 CreateSound(rect, filePath, name, page, rate)를 호출합니다.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string)이 PdfContentEditor 인스턴스에서 CreateFileAttachment(rect, contents, filePath, page, name)를 호출합니다.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, filePath: string, page: int, name: string, opacity: double)이 PdfContentEditor 인스턴스에서 CreateFileAttachment(rect, contents, filePath, page, name, opacity)를 호출합니다.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, attachmentStream: Stream, attachmentName: string, page: int, name: string)이 PdfContentEditor 인스턴스에서 CreateFileAttachment(rect, contents, attachmentStream, attachmentName, page, name)를 호출합니다.
CreateFileAttachment(rect: System.Drawing.Rectangle, contents: string, attachmentStream: Stream, attachmentName: string, page: int, name: string, opacity: double)이 PdfContentEditor 인스턴스에서 CreateFileAttachment(rect, contents, attachmentStream, attachmentName, page, name, opacity)를 호출합니다.
CreateBookmarksAction(title: string, color: System.Drawing.Color, boldFlag: bool, italicFlag: bool, file: string, actionType: string, destination: string)이 PdfContentEditor 인스턴스에서 CreateBookmarksAction(title, color, boldFlag, italicFlag, file, actionType, destination)를 호출합니다.
AddDocumentAdditionalAction(eventType: string, code: string)이 PdfContentEditor 인스턴스에서 AddDocumentAdditionalAction(eventType, code)를 호출합니다.
RemoveDocumentOpenAction()이 PdfContentEditor 인스턴스에서 RemoveDocumentOpenAction를 호출합니다.
AddDocumentAttachment(fileAttachmentPath: string, description: string)이 PdfContentEditor 인스턴스에서 AddDocumentAttachment(fileAttachmentPath, description)를 호출합니다.
AddDocumentAttachment(fileAttachmentStream: Stream, fileAttachmentName: string, description: string)이 PdfContentEditor 인스턴스에서 AddDocumentAttachment(fileAttachmentStream, fileAttachmentName, description)를 호출합니다.
DeleteAttachments()이 PdfContentEditor 인스턴스에서 DeleteAttachments를 호출합니다.
ExtractLink()이 PdfContentEditor 인스턴스에서 ExtractLink를 호출합니다.
DeleteImage()이 PdfContentEditor 인스턴스에서 DeleteImage를 호출합니다.
DeleteImage(pageNumber: int, index: int[])이 PdfContentEditor 인스턴스에서 DeleteImage(pageNumber, index)를 호출합니다.
ReplaceImage(pageNumber: int, index: int, imageFile: string)이 PdfContentEditor 인스턴스에서 ReplaceImage(pageNumber, index, imageFile)를 호출합니다.
HideStampById(pageNumber: int, stampId: int)주어진 stampId를 가진 스탬프(들)를 페이지에서 제거하지 않고 숨깁니다: 스탬프의 그리기 연산자는 유지되지만 빈 클립 프롤로그에 의해 억제되며, %StampHidden=1 마커가 상태를 기록하여 GetStamps이 Visible = false를 보고하고 ShowStampById가 이를 복원할 수 있습니다.
ShowStampById(pageNumber: int, stampId: int)이전에 숨겨진 스탬프를 표시합니다: 숨김 마커와 빈 클립 서문을 제거하여 스탬프가 다시 그려지게 합니다.
DeleteStampById(stampId: int)주어진 stampId를 가진 모든 스탬프를 모든 페이지에서 삭제합니다.
DeleteStampByIds(stampIds: int[])stampIds에 포함된 ID를 가진 모든 스탬프를 모든 페이지에서 삭제합니다.
MoveStamp(pageNumber: int, stampIndex: int, x: double, y: double)이 PdfContentEditor 인스턴스에서 MoveStamp(pageNumber, stampIndex, x, y)를 호출합니다.
MoveStampById(pageNumber: int, stampId: int, x: double, y: double)이 PdfContentEditor 인스턴스에서 MoveStampById(pageNumber, stampId, x, y)를 호출합니다.

참조

 한국어