Enumerations

Enumerations — Aspose.Note FOSS for Python API Reference

ImageRenderOptions

모든 열거형은 직접적으로 패키지에서 노출됩니다 aspose.note 패키지:

from aspose.note import SaveFormat, FileFormat, HorizontalAlignment, NodeType

모든 열거형 멤버는 표준 Python enum.Enum 인스턴스.


SaveFormat

ImageRenderOptions: from aspose.note import SaveFormat

출력 형식이 전달되는 것을 나타냅니다. Document.Save().

ImageRenderOptions문자열 값v26.3.1의 상태
SaveFormat.Pdf"pdf"구현됨 — 필요 pip install "aspose-note[pdf]"
SaveFormat.One"one"구현되지 않음 — 예외를 발생시킵니다 UnsupportedSaveFormatException

ImageRenderOptions

from aspose.note import Document, SaveFormat

doc = Document("MyNotes.one")

##Save to PDF (implemented)
doc.Save("output.pdf", SaveFormat.Pdf)
from aspose.note import SaveFormat

##Iterate all members
for fmt in SaveFormat:
    print(fmt.name, fmt.value)

FileFormat

ImageRenderOptions: from aspose.note import FileFormat

OneNote 파일 형식 버전을 나타냅니다. 다음에서 사용됨 Document.FileFormat.

ImageRenderOptions문자열 값ImageRenderOptions
FileFormat.OneNote2010"onenote2010"표준 OneNote 2010 / OneNote for Windows 10 섹션 형식
FileFormat.OneNoteOnline"onenoteonline"OneNote Online 형식
FileFormat.OneNote2007"onenote2007"레거시 OneNote 2007 형식

Document.FileFormat 노트: Document.FileFormat 속성은 OneNote 파일 형식 버전에 대한 최선의 추정 표시를 제공합니다.

ImageRenderOptions

from aspose.note import Document, FileFormat

doc = Document("MyNotes.one")
if doc.FileFormat == FileFormat.OneNote2010:
    print("OneNote 2010 format")

HorizontalAlignment

ImageRenderOptions: from aspose.note import HorizontalAlignment

텍스트 또는 객체의 수평 정렬. API 호환성을 위해 선언되었으며, v26.3.1에서는 현재 어떤 노드에도 적용되지 않습니다.

ImageRenderOptions문자열 값
HorizontalAlignment.Left"left"
HorizontalAlignment.Center"center"
HorizontalAlignment.Right"right"

ImageRenderOptions

from aspose.note import HorizontalAlignment

alignment = HorizontalAlignment.Left
print(alignment.value)  # "left"

NodeType

ImageRenderOptions: from aspose.note import NodeType

문서 객체 모델에서 노드 유형에 대한 상징적 이름. API 호환성을 위해 선언되었으며; v26.3.1에서 노드 식별을 위해 공개 API에서는 사용되지 않음(사용 isinstance 검사 또는 GetChildNodes(Type) 대신).

ImageRenderOptions문자열 값해당 클래스
NodeType.Document"document"Document
NodeType.Page"page"Page
NodeType.Outline"outline"Outline
NodeType.OutlineElement"outline_element"OutlineElement
NodeType.RichText"rich_text"RichText
NodeType.Image"image"Image
NodeType.Table"table"Table
NodeType.AttachedFile"attached_file"AttachedFile

ImageRenderOptions

from aspose.note import NodeType

##Inspect all members
for nt in NodeType:
    print(nt.name, "->", nt.value)
from aspose.note import NodeType

##Compare by value string
node_type_value = "rich_text"
if node_type_value == NodeType.RichText.value:
    print("This is a RichText node type")

선호하는 노드 식별: 실제로는 사용 isinstance(node, RichText) 또는 page.GetChildNodes(RichText) 보다 NodeType 비교.


참고

 한국어