Enumerations

Enumerations — Aspose.Note FOSS for Python API Reference

ImageRenderOptions

Toate enumerările sunt expuse direct din aspose.note pachet:

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

Toți membrii enum sunt standard Python enum.Enum instanțe.


SaveFormat

ImageRenderOptions: from aspose.note import SaveFormat

Indică formatul de ieșire transmis către Document.Save().

ImageRenderOptionsValoare stringStare în v26.3.1
SaveFormat.Pdf"pdf"Implementat — necesită pip install "aspose-note[pdf]"
SaveFormat.One"one"Neimplementat — ridică 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

Reprezintă versiunea formatului de fișier OneNote. Utilizat de Document.FileFormat.

ImageRenderOptionsValoare stringImageRenderOptions
FileFormat.OneNote2010"onenote2010"Format standard de secțiune OneNote 2010 / OneNote pentru Windows 10
FileFormat.OneNoteOnline"onenoteonline"Format OneNote Online
FileFormat.OneNote2007"onenote2007"Format OneNote 2007 moștenit

Document.FileFormat notă: The Document.FileFormat proprietatea oferă o indicație de tip best‑effort a versiunii formatului de fișier 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

Aliniere orizontală a textului sau a obiectului. Declarată pentru compatibilitate API; nu este aplicată în prezent niciunui nod în v26.3.1.

ImageRenderOptionsValoare șir
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

Nume simbolice pentru tipurile de noduri din modelul de obiecte al documentului. Declarate pentru compatibilitatea API; nu sunt utilizate de API‑ul public pentru identificarea nodurilor în v26.3.1 (utilizați isinstance verificări sau GetChildNodes(Type) în schimb).

ImageRenderOptionsValoare șirClasa corespunzătoare
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")

Identificarea nodului preferat: În practică, utilizaţi isinstance(node, RichText) sau page.GetChildNodes(RichText) în loc de NodeType comparații.


Vezi și

 Română