Aspose.Note FOSS for Python
Tämä viite kattaa koko julkisen API-pinnan aspose-note versio 26.3.1. Vain paketista viedyt symbolit aspose.note paketti on dokumentoitu täällä. Kaikki, mikä on aspose.note._internal toteutuksen yksityiskohta ja se saattaa muuttua ilman erillistä ilmoitusta.
ImageRenderOptions: pip install aspose-note (core) tai pip install "aspose-note[pdf]" (PDF-viennillä)
ImageRenderOptions: from aspose.note import Document, RichText, ...
ImageRenderOptions
Dokumentti ja läpikäynti
| 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. |
Dokumentin rakenne
| 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
Yhteensopivuus-stubit
Luokan tiedot
ImageRenderOptions
Juuridokumenttiluokka. Lataa .one tiedosto tiedostopolusta, pathlib.Path, tai binaarinen virta.
from aspose.note import Document, LoadOptions
doc = Document(source=None, load_options=None)Konstruktorin parametrit:
ImageRenderOptions:
ImageRenderOptions:
Document.FileFormat huomautus: Ominaisuus tarjoaa parhaan yrityksen indikaattorin OneNote-tiedostomuodon versiosta. The FileFormat enumilla on kolme arvoa: OneNote2010, OneNoteOnline, ja OneNote2007.
Document.Save() virran tuki: target voi olla binaarivirta (io.BytesIO, tiedostokahva avattuna binaarikirjoitustilassa, jne.). Tämä on vahvistettu testisarjassa: doc.Save(io.BytesIO(), PdfSaveOptions(SaveFormat.Pdf)).
DocumentVisitor
Abstrakti perusluokka vierailijamallin läpikäyntiin. Ylikirjoita tarvitsemiasi visit-metodeja:
ImageRenderOptions
Perusluokka kaikille asiakirjapuun solmuille.
CompositeNode
ImageRenderOptions Node. Lisää alisolmujen hallinta:
ImageRenderOptions
ImageRenderOptions CompositeNode. Edustaa OneNote-sivua.
ImageRenderOptions:
ImageRenderOptions
ImageRenderOptions CompositeNode. Sisältää otsikkolohkon Page.
ImageRenderOptions
ImageRenderOptions CompositeNode. Sijaintisäiliö kohteelle OutlineElement solmut.
OutlineElement
ImageRenderOptions CompositeNode. Lehtisäiliö, joka sisältää sisältösolmuja.
RichText
ImageRenderOptions CompositeNode. Tyylitellyn tekstin lohko.
ImageRenderOptions:
TextRun
ImageRenderOptions Node. Yksi muotoiltu tekstisegmentti.
TextStyle
ImageRenderOptions Node. Merkki‑kohtaiset muotoiluominaisuudet TextRun.
ImageRenderOptions
ImageRenderOptions CompositeNode. Upotettu kuva.
ImageRenderOptions:
AttachedFile
ImageRenderOptions CompositeNode. Upotettu tiedostoliite.
ImageRenderOptions
ImageRenderOptions CompositeNode. Taulukko OutlineElementin sisällä.
TableRow
ImageRenderOptions CompositeNode. Rivi sisällä Table. Toista GetChildNodes(TableCell) soluihin pääsemiseksi.
TableCell
ImageRenderOptions CompositeNode. Solu sisällä TableRow. Sisältää RichText, Image, ja muita sisältösolmuja.
NoteTag
ImageRenderOptions Node. OneNote-tunniste liitettynä sisältösolmuun.
Aikaleiman merkintä: created ja completed ovat raakoja kokonaislukuaikaleimoja, jotka on jäsennetty MS-ONE‑binaarimuodosta, eivät datetime objekteja.
Tehdasmenetelmät:
NumberList
ImageRenderOptions Node. Numerointi- tai luettelomerkkien listan metadata OutlineElement.
LoadOptions
SaveOptions
Perusluokka kaikille tallennusasetuksille. Pakollinen sijaintiparametri.
PdfSaveOptions
ImageRenderOptions SaveOptions. PDF-spesifinen vientiasetukset. Rakenna käyttäen PdfSaveOptions(SaveFormat.Pdf).
PageIndex / PageCount varoitus: Nämä kentät on määritelty PdfSaveOptions API-yhteensopivuuden vuoksi, mutta the Document.Save() implementaatio versiossa v26.3.1 ei lue tai välitä niitä PDF-vientiin. Kaikki sivut viedään aina.
Lisenssi ja mittauspohjainen
Yhteensopivuusstubit viedään API-rakenteen yhteensopivuuden takaamiseksi Aspose.Note:n kanssa .NET:lle. Kaikki metodit ovat toimimattomia tässä FOSS-toteutuksessa.
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-opLisenssiavainta ei tarvita minkään Aspose.Note FOSS -ominaisuuden käyttämiseen Python:ssa.
ImageRenderOptions
Täydellinen luettelointiviite: ImageRenderOptions
SaveFormat
FileFormat
Enum‑arvot, jotka edustavat OneNote‑tiedostomuodon versiota. Document.FileFormat antaa parhaan mahdollisen indikaation.
HorizontalAlignment
NodeType
ImageRenderOptions
Täydellinen poikkeusviite: ImageRenderOptions