Aspose.Slides FOSS for Python

Обзор

Aspose.Slides FOSS для Python API организована в aspose.slides_foss Все общественные классы живут в условиях, которые определены aspose.slides_foss или одним из его подмодулей.

import aspose.slides_foss as slides
from aspose.slides_foss.export import SaveFormat
from aspose.slides_foss import ShapeType, FillType, NullableBool
from aspose.slides_foss.drawing import Color, PointF

Основные классы

ClassDescription
AdjustValueRepresents a geometry shape’s adjustment value.
AdjustValueCollectionReprasents a collection of shape’s adjustments.
AutoShapeRepresents an AutoShape.
BackgroundRepresents background of a slide.
BaseHandoutNotesSlideHeaderFooterManagerClass in the Slides PYTHON API.
BasePortionFormatОбычные свойства форматирования текстовой части.
BaseShapeLockClass in the Slides PYTHON API.
BaseSlideПредставляет общие данные для всех типов слайдов.
BulletFormatПредставляет свойства форматирования букв параграфа.
CameraRepresents Camera.
CellRepresents a cell of a table.
CellCollectionRepresents a collection of cells.
CellFormatRepresents format of a table cell.
ColorFormatRepresents a color used in a presentation.
ColumnRepresents a column in a table.
ColumnCollectionRepresents collection of columns in a table.
CommentRepresents a comment on a slide.
CommentAuthorRepresents an author of comments.
CommentAuthorCollectionRepresents a collection of comment authors.
CommentCollectionRepresents a collection of comments of one author.
ConnectorRepresents a connector.
DocumentPropertiesRepresents properties of a presentation.
EffectFormatПредставляет свойства формы.
FillFormatПредставляет собой варианты форматирования заполнения.
FontDataRepresents a font definition.
FontsFonts collection.
GeometryShapeClass with 1 method and 31 properties.
GlobalLayoutSlideCollectionПредставляет собой сборник всех слайдов в презентации.
GradientFormatRepresent a gradient format.
GradientStopRepresents a gradient format.
GradientStopCollectionRepresnts a collection of gradient stops.
GraphicalObjectClass with 1 method and 29 properties.
GraphicalObjectLockClass extending BaseShapeLock.
GroupShapeRepresents a group of shapes on a slide.
GroupShapeLockDetermines which operations are disabled on the parent GroupShape.
HeadingPairRepresents a ‘Heading pair’ property of the document.
ImageRepresents a raster or vector image.
ImageCollectionRepresents collection of PPImage.
ImagesМетоды для инстанцизации и работы с ними .
LayoutSlideRepresents a layout slide.
LayoutSlideCollectionПредставляет базовый класс для сбора слайдов макет.
LightRigRepresents LightRig.
LineFillFormatПредставляет свойства заполнения линий.
LineFormatRepresents format of a line.
MasterLayoutSlideCollectionПредставляет собой коллекцию всех слайдов макетного оформления из определенных основных слайда.
MasterSlideRepresents a master slide in a presentation.
MasterSlideCollectionRepresents a collection of master slides.
NotesSizeRepresents a size of notes slide.
NotesSlideRepresents a notes slide in a presentation.
NotesSlideHeaderFooterManagerПредставляет менеджера, который держит поведение слайд-места для заметки, включая местоположение заголовка.
NotesSlideManagerNotes slide manager.
PPImageRepresents an image in a presentation.
PVIObjectОхватывает базовую инфраструктуру услуг для объектов, которые могут быть предметом наследства стоимости имущества.
ParagraphRepresents a paragraph of text.
ParagraphCollectionRepresents a collection of a paragraphs.
ParagraphFormatЭтот класс содержит свойства форматирования абзацев.
PatternFormatRepresents a pattern to fill a shape.
PictureRepresents a picture in a presentation.
PictureFillFormatПредставляет стиль заполнения картинки.
PictureFrameПредставляет собой рамку с картинкой внутри.
PictureFrameLockDetermines which operations are disabled on the parent PictureFrame.
PortionПредставляет часть текста в абзаце.
PortionCollectionRepresents a collection of portions.
PortionFormatЭтот класс содержит свойства форматирования текстовой части.
PresentationRepresents a Microsoft PowerPoint presentation.
RowRepresents a row in a table.
RowCollectionПредставляет собой совокупность стольных рядов.
ShapeRepresents a shape on a slide.
ShapeBevelСодержит свойства основного рельефа формы лица.
ShapeCollectionRepresents a collection of shapes.
ShapeFrameRepresents shape frame’s properties.
SlideRepresents a slide in a presentation.
SlideCollectionRepresents a collection of a slides.
TableRepresents a table on a slide.
TableFormatRepresents format of a table.
TextFrameRepresents a TextFrame.
TextFrameFormatContains the TextFrame’s formatTextFrameFormatting properties.
ThreeDFormatRepresents 3-D properties.

Перечисления

EnumerationDescription
BackgroundTypeОпределяет источник заполнения фонов слайда.
BevelPresetTypeПостоянные, определяющие 3D-образ.
BulletTypeОтносится к типу расширенных пуль.
CameraPresetTypeПостоянные, определяющие тип предварительной установки камеры.
ColorTypeПредставляет различные цветовые режимы.
FillBlendModeDetermines blend mode.
FillTypeУказывает тип внутреннего заполнения различных визуальных объектов.
FontAlignmentПредставляет вертикальное выравнивание шрифтов.
GradientDirectionПредставляет стиль градиента.
GradientShapeПредставляет форму градиентного заполнения.
LightRigPresetTypeПостоянные, определяющие типы предварительно настроенных световых сигналов.
LightingDirectionПостоянные, определяющие направление света.
LineAlignmentПредставляет тип выравнивания линий.
LineArrowheadLengthRepresents the length of an arrowhead.
LineArrowheadStyleRepresents the style of an arrowhead.
LineArrowheadWidthRepresents the width of an arrowhead.
LineCapStyleПредставляет стиль линейной шапки.
LineDashStyleПредставляет стиль линейной панели.
LineJoinStyleПредставляет стиль соединения линий.
LineStyleRepresents the style of a line.
MaterialPresetTypeПостоянные, определяющие форму материала.
NullableBoolПредставляет тройные булевые значения.
NumberedBulletStyleЭто стиль пронумерованных пуль.
OrientationRepresents the orientation of a shape.
PatternStyleПредставляет стиль шаблона.
PictureFillModeОпределяет, как картина заполнит площадь.
PresetColorПредставляет заранее установленные цвета.
PresetShadowTypeПредставляет собой предустановку для эффекта тени.
RectangleAlignmentDefines 2-dimension allignment.
SchemeColorRepresents colors in a color scheme.
ShapeTypeПредставляет заданную геометрию геометрийных форм.
SlideLayoutTypeПредставляет тип планировки слайдов.
SourceFormatПредставляет формат исходного файла.
TableStylePresetПредставляет собой стиль стола.
TextAlignmentПредставляет различные стили выравнивания текста.
TextAnchorTypeвыстраивание текстового поля в пределах текста.
TextAutofitTypeОпределяет режим автосоединения текста.
TextCapTypeПредставляет тип текстового капитализации.
TextShapeTypeОтносится к форме обертывания текста.
TextStrikethroughTypeПредставляет тип текста, который проникает через.
TextUnderlineTypeОпределяет тип текста подчеркнутого.
TextVerticalTypeОпределяет вертикальный режим записи текста.
TileFlipОпределяет режим перевертывания плитки.

Подпакеты

ClassDescription
AnimationTimeLineRepresents timeline of animation.
BehaviorПредставлять поведение базового класса эффекта.
BehaviorCollectionRepresents collection of behavior effects.
BehaviorFactoryFactory for creating behavior effect instances.
BehaviorPropertyRepresent property types for animation behavior.
BehaviorPropertyCollectionRepresents collection of behavior properties.
ColorEffectПредставьте цветный эффект поведения эффекта.
ColorOffsetRepresent color offset.
CommandEffectПредставлять действие командного действия.
EffectRepresents animation effect.
FilterEffectПредставьте поведение эффекта фильтра.
MotionCmdPathRepresent one command of a path.
MotionEffectПредставлять движение эффекта поведение эффектов.
MotionPathRepresent motion path.
PointRepresents animation point.
PointCollectionRepresents a collection of animation points.
PropertyEffectRepresent property effect behavior of effect.
RotationEffectПредставлять действие действия вращения.
ScaleEffectПредставлять масштабное действие поведения эффекта.
SequenceRepresents sequence (collection of effects).
SequenceCollectionRepresents collection of interactive sequences.
SetEffectПредставлять набор эффектов поведения эффекта.
TextAnimationRepresent text animation.
TextAnimationCollectionПредставляет собой коллекцию текстовых анимаций.
TimingRepresents animation timing.
EnumerationDescription
AfterAnimationTypeПредставляет после анимационного типа эффекта анимирования.
AnimateTextTypeПредставляет тип анимационного текста эффекта анимирования.
BehaviorAccumulateTypeПредставляет типы накопления эффективного поведения.
BehaviorAdditiveTypeПредставляет аддитивный тип для эффекта поведения.
BuildTypeОпределяет, как текст будет отображаться на фигуре во время анимации.
ColorDirectionПредставляет направление цвета для поведения цветового эффекта.
ColorSpaceПредставляет цветовое пространство для поведения цветного эффекта.
CommandEffectTypeПредставляет тип эффекта команды для поведения эффектов команд.
EffectChartMajorGroupingTypeПредставляет тип эффекта анимации для элемента диаграммы.
EffectChartMinorGroupingTypeПредставляет тип эффекта анимации для элемента диаграммы в серии или категории.
EffectFillTypeRepresent fill types.
EffectPresetClassTypeПредставлять типы классов эффектов.
EffectRestartTypeПредставьте типы перезапуска для определения времени.
EffectSubtypeПредставляет подтипы эффекта анимации.
EffectTriggerTypeПредставлять тип эффекта-триггера.
EffectTypeПредставляет тип эффекта анимации.
FilterEffectRevealTypeОпределяет тип фильтра.
FilterEffectSubtypeПредставляет подтипы фильтрового эффекта.
FilterEffectTypeПредставляет типы фильтровых эффектов.
MotionCommandPathTypeПредставлять типы команд для поведения эффекта движения анимации.
MotionOriginTypeУказывает, к чему относится происхождение пути движения.
MotionPathEditModeSpecifies how the motion path moves when the target shape is moved.
MotionPathPointsTypeПредставлять типы точек в анимации движения пути.
PropertyCalcModeTypeПредставлять режим вычисления для свойства анимации.
PropertyValueTypeПредставлять типы стоимости имущества.
ClassDescription
AxesManagerПредоставляет доступ к оси карты.
AxisОграждает объект, который представляет собой ось диаграммы.
BaseChartValueБазовый класс для типов значений в диаграмме.
ChartRepresents a chart on a slide.
ChartCategoryRepresents a chart category.
ChartCategoryCollectionПредставляет собой совокупность категорий графиков.
ChartDataПредставляет данные, используемые для составления графиков.
ChartDataCellRepresents a cell in the chart data workbook.
ChartDataPointПредставляет серийную точку данных.
ChartDataPointCollectionRepresents collection of data points for a series.
ChartDataWorkbookПредоставляет доступ к встроенной рабочей книге Excel для данных диаграммы.
ChartDataWorksheetПредставляет собой таблицу в рабочем счете данных диаграммы.
ChartLinesFormatПредставляет свойства формата сетки.
ChartPlotAreaRepresents rectangle where chart should be plotted.
ChartPortionFormatChart portion formatting — wraps inside .
ChartSeriesRepresents a chart series.
ChartSeriesCollectionПредставляет собой совокупность серий графиков.
ChartSeriesGroupRepresents group of series.
ChartSeriesGroupCollectionCollection of ChartSeriesGroup objects.
ChartSeriesReadonlyCollectionReadonly view of chart series belonging to a single series group.
ChartTextFormatУказывает форматирование текста по умолчанию для элементов текстового диаграмма.
ChartTitleПредставляет свойства заголовка диаграммы.
ChartWallRepresents walls on 3D charts.
DataLabelRepresents a series data point label.
DataLabelCollectionОтносится к серии таблиц.
DataLabelFormatRepresents formatting options for DataLabel.
DataSourceTypeForErrorBarsCustomValuesSpecifies types of values in ChartDataPoint.ErrorBarsCustomValues properties list.
DataTableПредставляет свойства таблицы данных.
DoubleChartValueRepresents a double value backed by a workbook cell or literal.
ErrorBarsCustomValuesУказывает значения строки ошибок для одной точки данных.
ErrorBarsFormatПредставляет ошибки в серии графиков.
FormatRepresents chart format properties (fill, line, effect, 3D).
LegendRepresents chart’s legend properties.
LegendEntryCollectionCollection of legend entries.
LegendEntryPropertiesПредставляет свойства легенды входа на графике.
MarkerRepresents a chart marker (symbol at data points).
Rotation3DRepresents 3D rotation of a chart.
StringChartValueRepresents a string value backed by workbook cells or literal.
StringOrDoubleChartValueПредставляет значение, которое может быть строкой или двойным, подкрепленное ячейкой либо буквальным.
TrendlineRepresents a trend line of a chart series.
TrendlineCollectionПредставляет собой коллекцию объектов Trendline для серии графиков.
EnumerationDescription
AxisPositionTypeDetermines a position of axis.
BubbleSizeRepresentationTypeУказывает возможные способы представления данных в виде размеров графиков пузырей.
CategoryAxisTypeRepresents a type of a category axis.
ChartDataSourceTypeПредставляет собой тип источника данных диаграммы.
ChartTypeRepresents a type of chart.
CombinableSeriesTypesGroupПеречень групп типов комбинируемых серий.
CrossesTypeОпределяет, где будет пересекаться ось.
DataSourceTypeData source types.
DisplayBlanksAsTypeОпределяет, как будут отображаться отсутствующие данные.
DisplayUnitTypeОпределяет многообразие отображаемых данных.
ErrorBarTypeRepresents type of error bar.
ErrorBarValueTypeRepresents type of error bar value.
LayoutTargetTypeIf layout of the plot area defined manually this property specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside (including axis and axis labels).
LegendDataLabelPositionОпределяет положение этикетки данных.
LegendPositionTypeDetermines a position of legend on a chart.
MarkerStyleTypeDetermines form of marker on chart’s data point.
PieSplitTypeRepresents a type of splitting points in the second pie or bar on a pie-of-pie or bar-of-pie chart.
StyleTypeRepresents chart style.
TickLabelPositionTypeОпределяет тип положения этикетки с отметкой на указанной оси.
TickMarkTypeОпределяет тип знака для указанной оси.
TimeUnitTypeRepresents the base unit for the category axis.
TrendlineTypeRepresents type of trend line.
ClassDescription
ColorRepresents an ARGB color, equivalent to System.Drawing.Color.
PointFRepresents a 2D point with float coordinates, equivalent to System.Drawing.PointF.
SizeRepresents a 2D size with integer dimensions, equivalent to System.Drawing.Size.
SizeFRepresents a 2D size with float dimensions, equivalent to System.Drawing.SizeF.
ClassDescription
BlurПредставляет эффект “Бол” (blur), который применяется ко всей форме, включая ее заполнение.
FillOverlayRepresents a Fill Overlay effect.
GlowПредставляет эффект Glow, в котором за краями объекта добавляется размытый контур.
ImageTransformOperationClass with 3 properties.
InnerShadowRepresents a Inner Shadow effect.
OuterShadowRepresents an Outer Shadow effect.
PresetShadowRepresents a Preset Shadow effect.
ReflectionRepresents a Reflection effect.
SoftEdgeЭто эффект мягкого края.
EnumerationDescription
SaveFormatПостоянные, определяющие формат сохраненной презентации.
ClassDescription
CornerDirectionTransitionЭффект перехода с угловой направленностью.
EightDirectionTransitionЭффект перехода на восьмисторонний слайд.
EmptyTransitionЭффект перехода на пустой слайд.
FlyThroughTransitionЭффект перехода с пролетающим скольжением.
GlitterTransitionЭффект сдвига глянцевого.
ClassDescription
FillFormatCollectionRepresents the collection of fill styles.
FormatSchemeСохраняет формат, определенный темой для фигур.
LineFormatCollectionПредставляет коллекцию стилей линий.

Быстрая справка

import aspose.slides_foss as slides
from aspose.slides_foss import ShapeType, FillType, NullableBool
from aspose.slides_foss.drawing import Color
from aspose.slides_foss.export import SaveFormat

with slides.Presentation() as prs:
    slide = prs.slides[0]

    # Add shape with text
    shape = slide.shapes.add_auto_shape(ShapeType.RECTANGLE, 50, 50, 400, 120)
    tf = shape.add_text_frame("Slide content")

    # Format the text
    fmt = tf.paragraphs[0].portions[0].portion_format
    fmt.font_height = 24
    fmt.font_bold = NullableBool.TRUE
    fmt.fill_format.fill_type = FillType.SOLID
    fmt.fill_format.solid_fill_color.color = Color.from_argb(255, 0, 70, 127)

    # Fill the shape
    shape.fill_format.fill_type = FillType.SOLID
    shape.fill_format.solid_fill_color.color = Color.from_argb(255, 230, 240, 255)

    prs.save("demo.pptx", SaveFormat.PPTX)

См. также:

 Русский