Enumerations — Aspose.Note FOSS for Python API Reference
ImageRenderOptions
Alle enumeraties worden rechtstreeks blootgesteld vanuit de aspose.note pakket:
from aspose.note import SaveFormat, FileFormat, HorizontalAlignment, NodeTypeAlle enum-leden zijn standaard Python enum.Enum instanties.
SaveFormat
ImageRenderOptions: from aspose.note import SaveFormat
Geeft het uitvoerformaat aan dat wordt doorgegeven aan Document.Save().
| ImageRenderOptions | String-waarde | Status in v26.3.1 |
|---|---|---|
SaveFormat.Pdf | "pdf" | Geïmplementeerd — vereist pip install "aspose-note[pdf]" |
SaveFormat.One | "one" | Niet geïmplementeerd — werpt 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
Stelt de OneNote-bestandsformaatversie voor. Gebruikt door Document.FileFormat.
| ImageRenderOptions | String-waarde | ImageRenderOptions |
|---|---|---|
FileFormat.OneNote2010 | "onenote2010" | Standaard OneNote 2010 / OneNote voor Windows 10 sectieformaat |
FileFormat.OneNoteOnline | "onenoteonline" | OneNote Online-formaat |
FileFormat.OneNote2007 | "onenote2007" | Legacy OneNote 2007-formaat |
Document.FileFormat opmerking: De Document.FileFormat eigenschap biedt een best‑effort indicatie van de OneNote‑bestandsformaatversie.
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
Horizontale uitlijning van tekst of object. Gedefinieerd voor API‑compatibiliteit; momenteel niet toegepast op een node in v26.3.1.
| ImageRenderOptions | String-waarde |
|---|---|
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
Symbolische namen voor de knooptypes in het documentobjectmodel. Gedefinieerd voor API‑compatibiliteit; niet gebruikt door de openbare API voor knoopidentificatie in v26.3.1 (gebruik isinstance controles of GetChildNodes(Type) in plaats daarvan).
| ImageRenderOptions | String-waarde | Bijbehorende klasse |
|---|---|---|
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")Voorkeursknoopidentificatie: In de praktijk, gebruik isinstance(node, RichText) of page.GetChildNodes(RichText) in plaats van NodeType vergelijkingen.
Zie ook
- ImageRenderOptions: exposeert
Document.FileFormat - LoadOptions: laadtijdopties
- SaveOptions / PdfSaveOptions: opslagtijdopties
- UnsupportedSaveFormatException: opgegooid voor niet‑geïmplementeerde
SaveFormatwaarden