Aspose.Note FOSS for Python
Šī atsauce aptver pilnīgu publiskā API virsmu aspose-note versija 26.3.1. Tikai simboli, kas eksportēti no aspose.note pakotnes, ir dokumentēti šeit. Viss, kas atrodas zem aspose.note._internal ir īstenošanas detaļa un var mainīties bez brīdinājuma.
ImageRenderOptions: pip install aspose-note (core) vai pip install "aspose-note[pdf]" (ar PDF eksportu)
ImageRenderOptions: from aspose.note import Document, RichText, ...
ImageRenderOptions
Dokuments un pārlūkošana
| 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. |
Dokumenta struktūra
| 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
Saderības stubi
Klases detaļas
ImageRenderOptions
Saknes dokumenta klase. Ielādēt a .one failu no faila ceļa, a pathlib.Path, vai bināro plūsmu.
from aspose.note import Document, LoadOptions
doc = Document(source=None, load_options=None)Konstruktora parametri:
ImageRenderOptions:
ImageRenderOptions:
Document.FileFormat piezīme: Īpašība sniedz labāko iespējamā mēģinājuma norādi par OneNote faila formāta versiju. The FileFormat enum satur trīs vērtības: OneNote2010, OneNoteOnline, un OneNote2007.
Document.Save() plūsmas atbalsts: target var būt bināra plūsma (io.BytesIO, faila rokturis atvērts binārā rakstīšanas režīmā, utt.). Tas ir apstiprināts ar testu komplektu: doc.Save(io.BytesIO(), PdfSaveOptions(SaveFormat.Pdf)).
DocumentVisitor
Abstrakta pamata klase apmeklētāja modeļa pārlūkošanai. Pārrakstiet vajadzīgās apmeklējuma metodes:
ImageRenderOptions
Bāzes klase visiem dokumenta koka mezgliem.
CompositeNode
ImageRenderOptions Node. Pievieno bērnu pārvaldību:
ImageRenderOptions
ImageRenderOptions CompositeNode. Attēlo OneNote lapu.
ImageRenderOptions:
ImageRenderOptions
ImageRenderOptions CompositeNode. Satur virsraksta bloku no Page.
ImageRenderOptions
ImageRenderOptions CompositeNode. Pozicionēts konteiners priekš OutlineElement mezgli.
OutlineElement
ImageRenderOptions CompositeNode. Koka konteineris, kas satur satura mezglus.
RichText
ImageRenderOptions CompositeNode. Stilizēta teksta bloks.
ImageRenderOptions:
TextRun
ImageRenderOptions Node. Viena formatēta teksta segments.
TextStyle
ImageRenderOptions Node. Per-rakstzīmes formatēšanas īpašības priekš TextRun.
ImageRenderOptions
ImageRenderOptions CompositeNode. Iegultais attēls.
ImageRenderOptions:
AttachedFile
ImageRenderOptions CompositeNode. Iegultais faila pielikums.
ImageRenderOptions
ImageRenderOptions CompositeNode. Tabula iekš OutlineElement.
TableRow
ImageRenderOptions CompositeNode. Rinda iekš Table. Iterēt GetChildNodes(TableCell) lai piekļūtu šūnām.
TableCell
ImageRenderOptions CompositeNode. Šūna iekš TableRow. Satur RichText, Image, un citi satura mezgli.
NoteTag
ImageRenderOptions Node. OneNote iezīme, kas pievienota satura mezglam.
Laika zīmes piezīme: created un completed ir neapstrādātas veselu skaitļu laika zīmes, kas izparsētas no MS-ONE binārā formāta, nevis datetime objekti.
Fabrikas metodes:
NumberList
ImageRenderOptions Node. Numurēta vai aizzīmēta saraksta metadati uz OutlineElement.
LoadOptions
SaveOptions
Bāzes klase visām saglabāšanas opcijām. Nepieciešams pozīcijas arguments.
PdfSaveOptions
ImageRenderOptions SaveOptions. PDF-specifiska eksporta konfigurācija. Izveidot ar PdfSaveOptions(SaveFormat.Pdf).
PageIndex / PageCount brīdinājums: Šie lauki ir deklarēti uz PdfSaveOptions API saderībai, bet the Document.Save() implementācija versijā v26.3.1 nolasīs vai nepārsūta tos PDF eksportētājam. Visas lapas vienmēr tiek eksportētas.
Licence un tarifēts
Saderības stubi eksportēti API struktūras saderībai ar Aspose.Note priekš .NET. Visi metodes šajā FOSS implementācijā ir neizpildes (no‑ops).
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-opLai izmantotu jebkuru Aspose.Note FOSS funkciju Python, nav nepieciešama licences atslēga.
ImageRenderOptions
Pilna uzskaitījuma atsauce: ImageRenderOptions
SaveFormat
FileFormat
Uzskaitījuma vērtības, kas pārstāv OneNote faila formāta versiju. Document.FileFormat sniedz labāko iespējamā mēģinājuma indikāciju.
HorizontalAlignment
NodeType
ImageRenderOptions
Pilna izņēmuma atsauce: ImageRenderOptions