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 | String मान | v26.3.1 में स्थिति |
|---|---|---|
SaveFormat.Pdf | "pdf" | Implemented — आवश्यक है pip install "aspose-note[pdf]" |
SaveFormat.One | "one" | Not implemented — उठाता है 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 | String मान | ImageRenderOptions |
|---|---|---|
FileFormat.OneNote2010 | "onenote2010" | मानक OneNote 2010 / OneNote for Windows 10 सेक्शन फ़ॉर्मेट |
FileFormat.OneNoteOnline | "onenoteonline" | OneNote Online फ़ॉर्मेट |
FileFormat.OneNote2007 | "onenote2007" | Legacy OneNote 2007 फ़ॉर्मेट |
Document.FileFormat नोट: यह Document.FileFormat property 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 | String value |
|---|---|
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 द्वारा उपयोग नहीं किया जाता (use isinstance checks या GetChildNodes(Type) इसके बजाय)।.
| ImageRenderOptions | String value | संबंधित class |
|---|---|---|
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")पसंदीदा node पहचान: व्यावहारिक रूप से, उपयोग करें isinstance(node, RichText) या page.GetChildNodes(RichText) की बजाय NodeType तुलना।.
संबंधित देखें
- ImageRenderOptions: उजागर करता है
Document.FileFormat - LoadOptions: लोड‑टाइम विकल्प
- SaveOptions / PdfSaveOptions: सहेजने‑समय विकल्प
- UnsupportedSaveFormatException: असंपादित के लिए उठाया गया
SaveFormatमान