Aspose.Note FOSS for Python
Referensi ini mencakup seluruh permukaan API publik dari aspose-note versi 26.3.1. Hanya simbol yang diekspor dari aspose.note paket yang didokumentasikan di sini. Apa pun di bawah aspose.note._internal adalah detail implementasi dan dapat berubah tanpa pemberitahuan.
ImageRenderOptions: pip install aspose-note (core) atau pip install "aspose-note[pdf]" (dengan ekspor PDF)
ImageRenderOptions: from aspose.note import Document, RichText, ...
ImageRenderOptions
Dokumen dan Penelusuran
| Class | Description |
|---|---|
AsposeNoteError | Class extending Exception. |
AttachedFile | AttachedFile.FileName holds the optional name of the attached file. |
CompositeNode | CompositeNode.AppendChildLast appends the given node as the last child and returns the added node. |
Document | Document.Save writes the document to a file, stream, or path using the given format or options. |
DocumentVisitor | DocumentVisitor.VisitDocumentStart is invoked when traversal begins a Document node. |
FileCorruptedException | Class extending AsposeNoteError. |
Image | Image.Replace replaces the current image data with the provided Image instance. |
IncorrectDocumentStructureException | Class extending AsposeNoteError. |
IncorrectPasswordException | Class extending AsposeNoteError. |
License | License.SetLicense loads a license from the given file path or binary stream. |
LoadOptions | LoadOptions.DocumentPassword holds the password used to open encrypted documents, or None if not set. |
Metered | Metered.SetMeteredKey stores the provided public and private keys for metered licensing. |
Node | Node.Accept invokes the visitor on this node for traversal or processing. |
NoteTag | NoteTag.CreateYellowStar creates a yellow‑star tag, optionally assigning a label. |
NumberList | NumberList.GetNumberedListHeader returns the header string for the specified list number. |
Outline | Outline.HorizontalOffset represents the horizontal offset of the outline within its container. |
OutlineElement | OutlineElement.NumberList represents the numbered list applied to this outline element, or None if absent. |
Page | Page.Clone creates a copy of the page; if cloneHistory is true the page’s revision history is also copied. |
PageHistory | PageHistory.Add adds the specified Page to the collection. |
ParagraphStyle | ParagraphStyle.Default returns a ParagraphStyle instance initialized with default formatting values. |
RichText | RichText.Append appends the given text with optional style to the end of the rich text. |
Table | Table.Tags provides the collection of NoteTag objects attached to the table. |
TableCell | Class with 7 methods and 4 properties. |
TableColumn | TableColumn.Width represents the column width in points, or None if not set. |
TableRow | Class with 7 methods and 4 properties. |
TextRun | TextRun.Text holds the plain string content of the text run. |
TextStyle | TextStyle.Default returns a TextStyle object representing the library’s default text formatting. |
Title | Title.TitleText holds the RichText representing the title’s main text, or None if absent. |
UnsupportedFileFormatException | UnsupportedFileFormatException.FileFormat represents the file format that triggered the exception. |
UnsupportedSaveFormatException | Class extending AsposeNoteError. |
Struktur Dokumen
| Enumeration | Description |
|---|---|
FileFormat | FileFormat.Unknown represents an unspecified or unrecognized file format. |
HorizontalAlignment | HorizontalAlignment.Left represents left horizontal alignment. |
NodeType | NodeType.Document represents a OneNote document node, the root of the DOM hierarchy. |
SaveFormat | SaveFormat.Pdf represents the PDF format used when saving a Document. |
TagStatus | TagStatus.Open represents an open (active) tag status. |
ImageRenderOptions
| Class | Description |
|---|---|
AttachmentTagFlowable | AttachmentTagFlowable.hAlign represents the horizontal alignment setting for the tag flowable. |
OutlinePrefixFlowable | OutlinePrefixFlowable.wrap sets the flowable’s available width and height to aW and aH. |
PdfSaveOptions | PdfSaveOptions.ImageCompression controls the compression algorithm applied to images embedded in the PDF. |
SaveOptions | SaveOptions.SaveFormat specifies the output format for saving the document. |
ImageRenderOptions
Stub Kompatibilitas
Detail Kelas
ImageRenderOptions
Kelas dokumen root. Muat sebuah .one berkas dari jalur berkas, sebuah pathlib.Path, atau aliran biner.
from aspose.note import Document, LoadOptions
doc = Document(source=None, load_options=None)Parameter konstruktor:
ImageRenderOptions:
ImageRenderOptions:
Document.FileFormat catatan: Properti ini memberikan indikasi upaya terbaik versi format file OneNote. The FileFormat enum memiliki tiga nilai: OneNote2010, OneNoteOnline, dan OneNote2007.
Document.Save() dukungan aliran: target bisa berupa aliran biner (io.BytesIO, handle file yang dibuka dalam mode tulis biner, dll). Ini dikonfirmasi oleh rangkaian tes: doc.Save(io.BytesIO(), PdfSaveOptions(SaveFormat.Pdf)).
DocumentVisitor
Kelas dasar abstrak untuk penelusuran pola visitor. Timpa metode kunjungan yang Anda perlukan:
ImageRenderOptions
Kelas dasar untuk semua node pohon dokumen.
CompositeNode
ImageRenderOptions Node. Menambahkan manajemen anak:
ImageRenderOptions
ImageRenderOptions CompositeNode. Mewakili halaman OneNote.
ImageRenderOptions:
ImageRenderOptions
ImageRenderOptions CompositeNode. Menyimpan blok judul dari sebuah Page.
ImageRenderOptions
ImageRenderOptions CompositeNode. Sebuah kontainer posisi untuk OutlineElement node.
OutlineElement
ImageRenderOptions CompositeNode. Sebuah kontainer daun yang menyimpan node konten.
RichText
ImageRenderOptions CompositeNode. Sebuah blok teks bergaya.
ImageRenderOptions:
TextRun
ImageRenderOptions Node. Sebuah segmen teks terformat tunggal.
TextStyle
ImageRenderOptions Node. Properti pemformatan per-karakter untuk sebuah TextRun.
ImageRenderOptions
ImageRenderOptions CompositeNode. Gambar tersemat.
ImageRenderOptions:
AttachedFile
ImageRenderOptions CompositeNode. Lampiran file tersemat.
ImageRenderOptions
ImageRenderOptions CompositeNode. Sebuah tabel dalam OutlineElement.
TableRow
ImageRenderOptions CompositeNode. Sebuah baris dalam a Table. Iterasi GetChildNodes(TableCell) untuk mengakses sel.
TableCell
ImageRenderOptions CompositeNode. Sebuah sel dalam a TableRow. Berisi RichText, Image, dan node konten lainnya.
NoteTag
ImageRenderOptions Node. Sebuah tag OneNote yang terlampir pada node konten.
Catatan timestamp: created dan completed adalah timestamp integer mentah yang diurai dari format biner MS-ONE, bukan datetime objek.
Metode pabrik:
NumberList
ImageRenderOptions Node. Metadata daftar bernomor atau berpoin pada sebuah OutlineElement.
LoadOptions
SaveOptions
Kelas dasar untuk semua opsi penyimpanan. Argumen posisi yang diperlukan.
PdfSaveOptions
ImageRenderOptions SaveOptions. Konfigurasi ekspor khusus PDF. Buat dengan PdfSaveOptions(SaveFormat.Pdf).
PageIndex / PageCount peringatan: Bidang-bidang ini dideklarasikan pada PdfSaveOptions untuk kompatibilitas API, tetapi the Document.Save() implementasi dalam v26.3.1 tidak membaca atau meneruskannya ke pengekspor PDF. Semua halaman selalu diekspor.
Lisensi dan Metered
Stub kompatibilitas diekspor untuk kompatibilitas bentuk API dengan Aspose.Note untuk .NET. Semua metode tidak melakukan apa-apa dalam implementasi FOSS ini.
from aspose.note import License, Metered
lic = License()
lic.SetLicense("path/to/license.lic") # no-op
m = Metered()
m.SetMeteredKey("public_key", "private_key") # no-opTidak diperlukan kunci lisensi untuk menggunakan fitur apa pun dari Aspose.Note FOSS untuk Python.
ImageRenderOptions
Referensi enumerasi lengkap: ImageRenderOptions
SaveFormat
FileFormat
Nilai enum yang mewakili versi format file OneNote. Document.FileFormat menyediakan indikasi sebaik mungkin.
HorizontalAlignment
NodeType
ImageRenderOptions
Referensi pengecualian lengkap: ImageRenderOptions