Aspose.Note FOSS for Python
Bu referans, tam kamu API yüzeyini kapsar aspose-note 26.3.1 sürümü. Yalnızca paketten dışa aktarılan semboller aspose.note paket burada belgelenir. Altındaki her şey aspose.note._internal bir uygulama detayıdır ve önceden bildirim olmadan değişebilir.
Enumerations: pip install aspose-note (core) veya pip install "aspose-note[pdf]" (PDF dışa aktarımıyla)
Enumerations: from aspose.note import Document, RichText, ...
Enumerations
Belge ve Gezinme
| 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. |
Belge Yapısı
| 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. |
Enumerations
| 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. |
Enumerations
Uyumluluk Stub’ları
Sınıf Ayrıntıları
Enumerations
Kök belge sınıfı. Bir .one dosyayı bir dosya yolundan, bir pathlib.Path, ya da ikili akış.
from aspose.note import Document, LoadOptions
doc = Document(source=None, load_options=None)Yapıcı parametreleri:
Enumerations:
Enumerations:
Document.FileFormat not: Özellik, OneNote dosya formatı sürümünün en iyi çaba gösteren bir göstergesini sağlar. Bu FileFormat enum üç değer içerir: OneNote2010, OneNoteOnline, ve OneNote2007.
Document.Save() akış desteği: target ikili bir akış olabilir (io.BytesIO, ikili yazma modunda açılmış dosya tanıtıcısı vb.). Bu, test paketi tarafından doğrulanmıştır: doc.Save(io.BytesIO(), PdfSaveOptions(SaveFormat.Pdf)).
DocumentVisitor
Ziyaretçi deseni gezinmesi için soyut temel sınıf. İhtiyacınız olan ziyaret metodlarını geçersiz kılın:
Enumerations
Tüm belge ağacı düğümleri için temel sınıf.
CompositeNode
Enumerations Node. Çocuk yönetimi ekler:
Enumerations
Enumerations CompositeNode. Bir OneNote sayfasını temsil eder.
Enumerations:
Enumerations
Enumerations CompositeNode. Bir … başlık bloğunu tutar Page.
Enumerations
Enumerations CompositeNode. Konumsal bir kapsayıcı için OutlineElement düğümler.
OutlineElement
Enumerations CompositeNode. İçerik düğümlerini tutan bir yaprak kapsayıcı.
RichText
Enumerations CompositeNode. Stil uygulanmış metin bloğu.
Enumerations:
TextRun
Enumerations Node. Tek bir biçimlendirilmiş metin bölümü.
TextStyle
Enumerations Node. Bir karakter başına biçimlendirme özellikleri TextRun.
Enumerations
Enumerations CompositeNode. Gömülü bir görüntü.
Enumerations:
AttachedFile
Enumerations CompositeNode. Gömülü bir dosya eki.
Enumerations
Enumerations CompositeNode. OutlineElement içinde bir tablo.
TableRow
Enumerations CompositeNode. Bir satır içinde bir Table. Yinele GetChildNodes(TableCell) hücrelere erişmek için.
TableCell
Enumerations CompositeNode. Bir hücre içinde bir TableRow. İçerir RichText, Image, ve diğer içerik düğümleri.
NoteTag
Enumerations Node. Bir içerik düğümüne eklenmiş OneNote etiketi.
Zaman damgası notu: created ve completed MS-ONE ikili formatından ayrıştırılan ham tamsayı zaman damgalarıdır, ancak datetime nesneler.
Fabrika yöntemleri:
NumberList
Enumerations Node. Numaralı veya madde işaretli liste meta verileri bir OutlineElement.
LoadOptions
SaveOptions
Tüm kaydetme seçenekleri için temel sınıf. Gerekli konumsal argüman.
PdfSaveOptions
Enumerations SaveOptions. PDF’ye özgü dışa aktarma yapılandırması. Şununla oluşturun PdfSaveOptions(SaveFormat.Pdf).
PageIndex / PageCount uyarı: Bu alanlar şurada tanımlanır PdfSaveOptions API uyumluluğu için, ancak the Document.Save() v26.3.1 sürümündeki uygulama bunları PDF dışa aktarıcıya okumaz veya iletmez. Tüm sayfalar her zaman dışa aktarılır.
Lisans ve Ölçümlü
.NET için Aspose.Note ile API şekli uyumluluğu sağlamak amacıyla uyumluluk stub’ları dışa aktarıldı. Bu FOSS uygulamasında tüm yöntemler hiçbir işlem yapmaz.
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-opPython için Aspose.Note FOSS’un herhangi bir özelliğini kullanmak için lisans anahtarı gerekmez.
Enumerations
Tam enum referansı: Enumerations
SaveFormat
FileFormat
OneNote dosya formatı sürümünü temsil eden enum değerleri. Document.FileFormat en iyi çaba gösteren bir gösterge sağlar.
HorizontalAlignment
NodeType
Enumerations
Tam istisna referansı: Enumerations