Aspose.Note FOSS for Python

הפנייה הזו מכסה את כל המשטח הציבורי של aspose-note גרסה 26.3.1. רק סמלים שיוצאו מ- aspose.note החבילה מתועדת כאן. כל דבר תחת aspose.note._internal הוא פרט יישום ועלול להשתנות ללא הודעה.

ImageRenderOptions: pip install aspose-note (core) או pip install "aspose-note[pdf]" (עם ייצוא PDF)

ImageRenderOptions: from aspose.note import Document, RichText, ...


ImageRenderOptions

מסמך וניווט

ClassDescription
AsposeNoteErrorClass extending Exception.
AttachedFileAttachedFile.FileName holds the optional name of the attached file.
CompositeNodeCompositeNode.AppendChildLast מגבירה את הקוטב הניתן כילד האחרון ומחזירה אותו.
DocumentDocument.Save writes the document to a file, stream, or path using the given format or options.
DocumentVisitorDocumentVisitor.VisitDocumentStart מופיע כאשר מתחיל הקריאה של קוטר מסמך.
FileCorruptedExceptionClass extending AsposeNoteError.
ImageImage.Replace replaces the current image data with the provided Image instance.
IncorrectDocumentStructureExceptionClass extending AsposeNoteError.
IncorrectPasswordExceptionClass extending AsposeNoteError.
LicenseLicense.SetLicense מחזיק רישיון מהדרך הקובץ או זרם בינארי מסוים.
LoadOptionsLoadOptions.DocumentPassword מחזיק את הסיסמה המשמשת לפתיחת מסמכים מוצפנים, או לא אם לא הגדרת.
MeteredMetered.SetMeteredKey מאחסן את המפתחות הציבוריים והפרטיים המסופקים לרישיונות ממורדים.
NodeNode.Accept invokes the visitor on this node for traversal or processing.
NoteTagNoteTag.CreateYellowStar creates a yellow‑star tag, optionally assigning a label.
NumberListNumberList.GetNumberedListHeader returns the header string for the specified list number.
OutlineOutline.HorizontalOffset represents the horizontal offset of the outline within its container.
OutlineElementOutlineElement.NumberList מייצג את הרשימה המסופרת המשמשת לרכיב זה, או לא אם הוא נעלם.
PagePage.Clone creates a copy of the page; if cloneHistory is true the page’s revision history is also copied.
PageHistoryPageHistory.Add מוסיף את הדף המפורט לאוסף.
ParagraphStyleParagraphStyle.Default מחזיר דוגמה של ParagrafSyle המתחילה עם ערכים פורמט הנדרשים.
RichTextRichText.Append appends the given text with optional style to the end of the rich text.
TableTable.Tags provides the collection of NoteTag objects attached to the table.
TableCellClass with 7 methods and 4 properties.
TableColumnTableColumn.Width מייצג את רוחב העמודה בנקודות, או לא אם לא מוגדר.
TableRowClass with 7 methods and 4 properties.
TextRunTextRun.Text holds the plain string content of the text run.
TextStyleTextStyle.Default returns a TextStyle object representing the library’s default text formatting.
TitleTitle.TitleText holds the RichText representing the title’s main text, or None if absent.
UnsupportedFileFormatExceptionUnsupportedFileFormatException.FilFormate מייצג את פורמט הקובץ שגרם למעטה.
UnsupportedSaveFormatExceptionClass extending AsposeNoteError.

מבנה המסמך

EnumerationDescription
FileFormatFileFormat.Unknown מייצג פורמט קובץ לא מסוים או לא מוכר.
HorizontalAlignmentהימין מייצג את ההרמוניה האורזונלית השמאלית.
NodeTypeNodeType.Document מייצג כפתור מסמך OneNote, שורש הירושלמיות DOM.
SaveFormatSaveFormat.Pdf מייצג את פורמט PDF המשמש בעת שמירה על מסמך.
TagStatusTagStatus.Open מייצג מצב תגי פתוח (פעיל).

ImageRenderOptions

ClassDescription
AttachmentTagFlowableAttachmentTagFlowable.hAlign מייצג את הגדרת ההתאמה האורזונלית עבור התגית זורמת.
OutlinePrefixFlowableOutlinePrefixFlowable.wrap קובע את רוחב וגודל זמינים של הזרם ל- aW ו- AH.
PdfSaveOptionsPdfSaveOptions.ImageCompression שולט באלגוריתם הדחיסה המשמש לתמונות שנמצאות בתוך PDF.
SaveOptionsSaveOptions.SaveFormat מציין את פורמט היציאה כדי לשמור את המסמך.

ImageRenderOptions

תבניות תאימות


פרטי המחלקה

ImageRenderOptions

מחלקת המסמך הראשית. טען .one קובץ ממסלול קובץ, pathlib.Path, או זרם בינארי.

from aspose.note import Document, LoadOptions

doc = Document(source=None, load_options=None)

פרמטרי הבנאי:

ImageRenderOptions:

ImageRenderOptions:

Document.FileFormat הערה: property מספק הצגה best-effort של גרסת פורמט הקובץ של OneNote. The FileFormat enum מכיל שלוש ערכים: OneNote2010, OneNoteOnline, ו OneNote2007.

Document.Save() תמיכה בזרם: target יכול להיות זרם בינארי (io.BytesIO, מצביע קובץ שנפתח במצב כתיבה בינארית, וכו’). זה מאושר על ידי ערכת הבדיקות: doc.Save(io.BytesIO(), PdfSaveOptions(SaveFormat.Pdf)).


DocumentVisitor

מחלקת בסיס מופשטת לניווט בתבנית מבקר. דרוס את שיטות הביקור שאתה צריך:


ImageRenderOptions

מחלקה בסיסית לכל צמתים בעץ המסמך.


CompositeNode

ImageRenderOptions Node. מוסיף ניהול ילדים:


ImageRenderOptions

ImageRenderOptions CompositeNode. מייצג דף OneNote.

ImageRenderOptions:


ImageRenderOptions

ImageRenderOptions CompositeNode. מחזיק את בלוק הכותרת של Page.


ImageRenderOptions

ImageRenderOptions CompositeNode. מכולה מיקומית עבור OutlineElement צמתים.


OutlineElement

ImageRenderOptions CompositeNode. מכולת עלה שמחזיקה צמתים של תוכן.


RichText

ImageRenderOptions CompositeNode. בלוק של טקסט מעוצב.

ImageRenderOptions:


TextRun

ImageRenderOptions Node. קטע טקסט מעוצב יחיד.


TextStyle

ImageRenderOptions Node. מאפייני עיצוב לכל תו עבור TextRun.


ImageRenderOptions

ImageRenderOptions CompositeNode. תמונה משובצת.

ImageRenderOptions:


AttachedFile

ImageRenderOptions CompositeNode. קובץ מצורף משובץ.


ImageRenderOptions

ImageRenderOptions CompositeNode. טבלה בתוך OutlineElement.


TableRow

ImageRenderOptions CompositeNode. שורה בתוך Table. חזור GetChildNodes(TableCell) כדי לגשת לתאים.


TableCell

ImageRenderOptions CompositeNode. תא בתוך TableRow. מכיל RichText, Image, ואלמנטים של תוכן אחרים.


NoteTag

ImageRenderOptions Node. תג OneNote מצורף לאלמנט תוכן.

הערת חותמת זמן: created ו completed הם חותמות זמן שלמות גולמיות כפי שנפרשו מתבנית הבינארית של MS-ONE, לא datetime אובייקטים.

מתודות ייצור:


NumberList

ImageRenderOptions Node. מטא‑נתונים של רשימה ממוספרת או עם תבליטים על OutlineElement.


LoadOptions


SaveOptions

מחלקת בסיס לכל אפשרויות השמירה. ארגומנט מיקום נדרש.


PdfSaveOptions

ImageRenderOptions SaveOptions. תצורת ייצוא ספציפית ל‑PDF. בנייה עם PdfSaveOptions(SaveFormat.Pdf).

PageIndex / PageCount אזהרה: השדות האלה מוגדרים ב PdfSaveOptions לתאימות API, אך ה Document.Save() היישום ב‑v26.3.1 אינו קורא או מעביר אותם למייצא ה‑PDF. כל העמודים תמיד מיוצאים.


רישיון ומדוד

תבניות תאימות מיוצאות לצורך התאמת צורת ה‑API עם Aspose.Note עבור .NET. כל השיטות אינן מבצעות פעולה ביישום ה‑FOSS הזה.

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-op

אין צורך במפתח רישיון כדי להשתמש בכל תכונה של Aspose.Note FOSS עבור Python.


ImageRenderOptions

הפנייה המלאה למניין: ImageRenderOptions

SaveFormat

FileFormat

ערכי Enum המייצגים את גרסת פורמט הקובץ של OneNote. Document.FileFormat מספק אינדיקציה במאמץ מיטבי.

HorizontalAlignment

NodeType


ImageRenderOptions

הפנייה המלאה לשגיאה: ImageRenderOptions


ראה גם

 עברית