아티팩트
개요
Artifact은 .NET용 Aspose.PDF FOSS의 클래스입니다.
PDF 아티팩트를 나타냅니다 — /Artifact으로 태그된 마크된 콘텐츠 시퀀스 (PDF 32000 §14.8.2.2).
이 클래스는 .NET 프로그램에서 Artifact 객체를 작업하기 위한 16개의 메서드를 제공합니다.
사용 가능한 메서드에는: Artifact, BeginUpdates, Dispose, GetValue, RemoveValue, SaveUpdates, SetImage, SetLinesAndState, SetPageNumberReplacementString, SetPdfPage, SetText, SetTextAndState, 및 추가 메서드 1개가 포함됩니다.
모든 public 멤버는 Aspose.PDF FOSS for .NET 패키지를 설치한 후 any .NET application에서 접근할 수 있습니다.
속성: ArtifactHorizontalAlignment, ArtifactVerticalAlignment, BackgroundColor, BottomMargin, Contents, CustomSubtype, 및 18개가 더 있습니다.
속성
| Name | Type | Access | Description |
|---|---|---|---|
Type | ArtifactType | Read/Write | 아티팩트의 유형 분류. |
Subtype | ArtifactSubtype | Read/Write | 아티팩트의 하위 유형. |
CustomType | string? | Read/Write | 비표준 아티팩트 유형의 이름. |
CustomSubtype | string? | Read/Write | 비표준 아티팩트 하위 유형의 이름. |
Text | string? | Read/Write | 아티팩트의 콘텐츠 스트림 연산자에서 추출한 텍스트 내용. |
Rectangle | Rectangle? | Read | 속성 사전의 /BBox 항목에서 가져온 경계 상자. |
Opacity | double | Read/Write | 아티팩트의 불투명도 (ExtGState /ca에서). |
Page | Page? | Read | 이 아티팩트가 속한 페이지. |
ArtifactHorizontalAlignment | HorizontalAlignment | Read/Write | 수평 정렬 (/Attached 항목에서). |
ArtifactVerticalAlignment | VerticalAlignment | Read/Write | 수직 정렬 (/Attached 항목에서). |
IsBackground | bool | Read/Write | 이것이 배경 아티팩트인지 여부. |
Rotation | double | Read/Write | 도 단위 회전 각도. |
BackgroundColor | Color? | Read/Write | 배경 색상. |
RightMargin | double | Read/Write | 오른쪽 여백. |
LeftMargin | double | Read/Write | 왼쪽 여백. |
TopMargin | double | Read/Write | 위쪽 여백. |
BottomMargin | double | Read/Write | 아래쪽 여백. |
Position | Point? | Read/Write | 명시적 배치 좌표. |
FormattedText | FormattedText? | Read/Write | 아티팩트를 위한 서식 있는 텍스트. |
TextState | TextState? | Read/Write | 아티팩트 텍스트의 텍스트 상태. |
Lines | List<string> | Read | 다중 행 텍스트 내용. |
Contents | List<Operator> | Read | 아티팩트를 그리는 내부 콘텐츠 스트림 연산자. |
Form | XForm? | Read | 재사용 가능한 폼으로 렌더링될 때 이 아티팩트를 지원하는 Form XObject (예: |
Image | XImage? | Read | 콘텐츠가 래스터 이미지일 때 이 아티팩트를 지원하는 Image XObject. |
메서드
| Signature | Description |
|---|---|
Artifact() | 기본 생성자 — Undefined 유형 및 하위 유형을 가진 아티팩트를 생성합니다. |
Artifact(type: ArtifactType, subType: ArtifactSubtype) | 주어진 유형 및 하위 유형으로 아티팩트를 생성합니다. |
Artifact(type: string, subType: string) | 문자열 기반 사용자 정의 유형 및 하위 유형으로 아티팩트를 생성합니다. |
SetPageNumberReplacementString(value: string) | 텍스트에서 사용되는 페이지 번호 교체 토큰을 설정합니다. |
SetLinesAndState(text: string[], textState: TextState) | 주어진 텍스트 상태와 함께 다중 행 텍스트 내용을 설정합니다. |
BeginUpdates() | 배치된 속성 업데이트를 시작합니다. |
SaveUpdates() | BeginUpdates로 시작된 배치 업데이트를 플러시합니다. |
Dispose() | 아티팩트가 보유한 리소스를 해제합니다. |
GetValue(name: string) | SetValue(string, string)으로 설정된 사용자 정의 이름/값 쌍을 읽습니다. |
SetValue(name: string, value: string) | 아티팩트에 사용자 정의 이름/값 쌍을 저장합니다(다운스트림 메타데이터 액세스를 위해; 이 빌드에서는 PDF에 포함되지 않음). |
RemoveValue(name: string) | SetValue로 이전에 설정된 사용자 정의 이름/값 쌍을 제거합니다. |
SetImage(imageStream: Stream) | 래스터 이미지를 아티팩트에 첨부합니다. |
SetImage(imageName: string) | 경로를 통해 래스터 이미지를 첨부합니다. |
SetText(formattedText: FormattedText) | FormattedText 인스턴스로부터 아티팩트 텍스트를 설정합니다. |
SetTextAndState(text: string, textState: TextState) | Text와 TextState를 함께 설정합니다. |
SetPdfPage(page: Page) | 이 아티팩트를 특정 페이지에 바인딩합니다. |