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 比較。.
関連項目
- ImageRenderOptions:公開します
Document.FileFormat - LoadOptions:ロード時オプション
- SaveOptions / PdfSaveOptions:保存時オプション
- UnsupportedSaveFormatException: 未実装のために発生
SaveFormat値