Aspose.Note FOSS for Python

این مرجع تمام سطح عمومی API را شامل می‌شود aspose-note نسخه 26.3.1. فقط نمادهای صادر شده از aspose.note پکیج در اینجا مستند شده‌اند. هر چیزی زیر aspose.note._internal یک جزئیات پیاده‌سازی است و ممکن است بدون اطلاع تغییر کند.

ImageRenderOptions: pip install aspose-note (core) یا pip install "aspose-note[pdf]" (with PDF export)

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


ImageRenderOptions

سند و پیمایش

ClassDescription
AsposeNoteErrorClass extending Exception.
AttachedFileAttachedFile.FileName holds the optional name of the attached file.
CompositeNodeCompositeNode.AppendChildLast appends the given node as the last child and returns the added node.
DocumentDocument.Save writes the document to a file, stream, or path using the given format or options.
DocumentVisitorDocumentVisitor.VisitDocumentStart is invoked when traversal begins a Document node.
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 represents the numbered list applied to this outline element, or None if absent.
PagePage.Clone creates a copy of the page; if cloneHistory is true the page’s revision history is also copied.
PageHistoryPageHistory.Add adds the specified Page to the collection.
ParagraphStyleParagraphStyle.Default returns a ParagraphStyle instance initialized with default formatting values.
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.
TableColumnجدولColumn.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.
UnsupportedFileFormatExceptionFileFormat.File Format فرمت فایل است که این استثنا را ایجاد کرده است.
UnsupportedSaveFormatExceptionClass extending AsposeNoteError.

ساختار سند

EnumerationDescription
FileFormatFileFormat.Unknown یک فرمت فایل نامشخص یا ناشناخته است.
HorizontalAlignmentافقی، چپ و راست به صورت افق چپ عمل می کنند.
NodeTypeNodeType.Document یک گره سند OneNote را نشان می دهد، ریشه ی سلسله مراتب DOM است.
SaveFormatSaveFormat.Pdf فرمت PDF است که در هنگام ذخیره یک سند استفاده می شود.
TagStatusTagStatus.Open نشان دهنده وضعیت برچسب باز (فعال) است.

ImageRenderOptions

ClassDescription
AttachmentTagFlowableAttachmentTagFlowable.hAlign represents the horizontal alignment setting for the tag flowable.
OutlinePrefixFlowableOutlinePrefixFlowable.wrap عرض و ارتفاع موجود جریان را به aW و aH تنظیم می کند.
PdfSaveOptionsPdfSaveOptions.ImageCompression controls the compression algorithm applied to images embedded in the 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 یادداشت: این ویژگی یک نشانگر تقریباً دقیق از نسخهٔ قالب فایل OneNote فراهم می‌کند. این FileFormat enum دارای سه مقدار است: OneNote2010, OneNoteOnline, و OneNote2007.

Document.Save() پشتیبانی از جریان: target می‌تواند یک جریان باینری باشد (io.BytesIO, دسته‌فایل باز شده در حالت نوشتن باینری، و غیره). این توسط مجموعهٔ آزمون تأیید می‌شود: doc.Save(io.BytesIO(), PdfSaveOptions(SaveFormat.Pdf)).


DocumentVisitor

کلاس پایهٔ انتزاعی برای پیمایش الگوی بازدیدکننده. متدهای visit مورد نیاز خود را بازنویسی کنید:


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 caveat هشدار: These fields are declared on : این فیلدها در PdfSaveOptions for API compatibility, but the برای سازگاری API، اما Document.Save() پیاده‌سازی در نسخه v26.3.1 این موارد را نمی‌خواند یا به صادرکننده PDF منتقل نمی‌کند. تمام صفحات همیشه صادر می‌شوند.


License and Metered

قطعات سازگاری برای سازگاری شکل 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

مقادیر شمارشی که نسخه قالب فایل OneNote را نشان می‌دهند. Document.FileFormat یک نشانگر با بهترین تلاش ممکن را فراهم می‌کند.

HorizontalAlignment

NodeType


ImageRenderOptions

مرجع کامل استثنا: ImageRenderOptions


همچنین ببینید

 فارسی