PdfAnnotationEditor

PdfAnnotationEditor

개요

PdfAnnotationEditor은 Aspose.PDF FOSS에서 .NET를 위한 클래스입니다. 상속 대상: IDisposable.

주석 조작을 위한 파사드: XFDF 가져오기/내보내기, 삭제, 평탄화, 레드액트.

이 클래스는 .NET 프로그램에서 PdfAnnotationEditor 객체를 다루기 위한 39개의 메서드를 제공합니다. 사용 가능한 메서드에는 BindPdf, Close, DeleteAnnotation, DeleteAnnotations, Dispose, ExportAnnotationsToXfdf, ExportAnnotationsXfdf, ExtractAnnotations, FlatteningAnnotations, ImportAnnotationFromXfdf, ImportAnnotations, ImportAnnotationsFromFdf 및 추가 6개의 메서드가 포함됩니다. 모든 public 멤버는 Aspose.PDF FOSS for .NET 패키지를 설치한 후 모든 .NET 애플리케이션에서 접근할 수 있습니다. 속성: Document.

속성

이름유형액세스설명
DocumentDocument읽기바인드된 문서.

메서드

시그니처설명
PdfAnnotationEditor()바인드되지 않은 PdfAnnotationEditor를 생성합니다.
PdfAnnotationEditor(document: Document)문서에 바인드된 PdfAnnotationEditor를 생성합니다.
BindPdf(path: string)파일 경로에서 PDF를 바인드합니다.
BindPdf(input: byte[])바이트 배열에서 PDF를 바인드합니다.
BindPdf(input: Stream)스트림에서 PDF를 바인드합니다.
BindPdf(document: Document)기존 Document 인스턴스를 바인드합니다.
ExtractAnnotations(start: int, end: int, annotTypes: Aspose.Pdf.Annotations.AnnotationType[])시작 페이지(startPage)부터 끝 페이지(endPage)까지(1부터 시작, 포함) 해당 유형이 annotTypes에 포함된 주석을 반환합니다.
ExtractAnnotations(start: int, end: int, annotTypes: string[])하위 유형 이름 문자열로 필터링된 페이지 범위 전체에서 주석을 추출합니다.
DeleteAnnotations()위젯/폼 필드 주석을 제외하고 모든 페이지의 모든 주석을 삭제합니다.
DeleteAnnotations(annotType: string)특정 하위 유형 이름의 주석을 모든 페이지에서 삭제합니다.
DeleteAnnotation(annotName: string)모든 페이지에서 이름(NM 항목)으로 주석을 삭제합니다.
FlatteningAnnotations()모든 주석을 평탄화합니다 — 주석 목록에서 제거합니다.
RedactArea(pageIndex: int, rect: Rectangle, color: double[])페이지의 영역을 가립니다: 지정된 채우기 색상으로 가리기 주석을 추가한 다음, 가리기를 평탄화합니다(주석을 제거합니다).
RedactArea(pageIndex: int, rect: Rectangle, r: int, g: int, b: int)페이지의 영역을 System.Drawing.Color 호환 (R, G, B) 색상으로 가립니다.
RedactArea(pageIndex: int, rect: Rectangle, color: System.Drawing.Color)주어진 채우기 색상으로 페이지의 영역을 마스킹합니다.
ImportAnnotationsFromXfdf(xfdfStream: Stream)XFDF 스트림에서 주석을 가져와 바인드된 문서에 삽입합니다.
ImportAnnotationsFromXfdf(xfdfFile: string)XFDF 파일 경로에서 주석을 가져옵니다.
ImportAnnotationFromXfdf(xfdfStream: Stream, annotType: AnnotationType[])타입 필터를 사용하여 XFDF에서 주석을 가져옵니다.
ImportAnnotationFromXfdf(xfdfFile: string, annotType: AnnotationType[])XFDF 파일 경로에서 유형 필터를 사용하여 주석을 가져옵니다.
ExportAnnotationsXfdf(xmlOutputStream: Stream, start: int, end: int, annotTypes: AnnotationType[])주석을 XFDF 스트림으로 내보냅니다.
ImportAnnotations(annotFileStream: Stream[])다른 PDF 스트림에서 주석을 가져와 바인딩된 문서에 삽입합니다.
Save()문서를 바이트 배열에 저장합니다.
Save(path: string)문서를 파일 경로에 저장합니다.
Save(output: Stream)문서를 스트림에 저장합니다.
Close()편집기를 닫고 문서를 해제합니다.
Dispose()Dispose — Close와 동일합니다.
ExportAnnotationsToXfdf(xmlOutputStream: Stream)바인딩된 문서의 모든 주석을 XFDF 스트림으로 내보냅니다.
ExportAnnotationsXfdf(xmlOutputStream: Stream, start: int, end: int, annotTypes: string[])서브타입 이름 문자열로 필터링된 주석을 내보냅니다.
FlatteningAnnotations(flattenSettings: Aspose.Pdf.Forms.Form.FlattenSettings)제공된 form-flatten 설정을 사용하여 모든 주석을 평탄화합니다.
FlatteningAnnotations(start: int, end: int, annotType: AnnotationType[])유형으로 필터링된 페이지 범위 전체의 주석을 평탄화합니다.
ImportAnnotationFromXfdf(xfdfStream: Stream)XFDF 스트림에서 주석을 가져옵니다 (모든 주석 유형).
ImportAnnotationFromXfdf(xfdfFile: string)XFDF 파일에서 주석을 가져오기 (모든 주석 유형).
ImportAnnotations(annotFileStream: Stream[], annotType: AnnotationType[])유형별로 필터링된 PDF 스트림에서 주석을 가져오기.
ImportAnnotations(annotFile: string[])주어진 경로의 PDF 파일에서 주석을 가져오기.
ImportAnnotations(annotFile: string[], annotType: AnnotationType[])유형별로 필터링된 PDF 파일에서 주석을 가져오기.
ImportAnnotationsFromFdf(fdfFile: string)FDF 파일에서 주석을 가져옵니다.
ModifyAnnotations(start: int, end: int, annotation: Aspose.Pdf.Annotations.Annotation)페이지 범위 전반에 걸쳐 주석을 수정하여 주석처럼 보이게 합니다.
ModifyAnnotations(start: int, end: int, annotType: System.Enum, annotation: Aspose.Pdf.Annotations.Annotation)제공된 유형의 주석을 페이지 범위 전반에 걸쳐 수정합니다.
ModifyAnnotationsAuthor(start: int, end: int, srcAuthor: string, desAuthor: string)페이지 범위 전체에 걸쳐 srcAuthor와 일치하는 모든 주석의 작성자를 재작성합니다.

참조

 한국어