Aspose.Slides FOSS for Java

Aspose.Slides FOSS for Java 是一个开源的、基于 MIT 许可证的库,用于在 Java 中创建、加载和保存 PowerPoint .pptx 文件。它提供了丰富的对象模型,支持幻灯片、形状、文本、表格、图像、批注和文档属性。

仓库: github.com/aspose-slides-foss/Aspose.Slides-FOSS-for-Java

: org.aspose.slides.foss

许可证: MIT

import org.aspose.slides.foss.Presentation;
import org.aspose.slides.foss.ISlide;
import org.aspose.slides.foss.IAutoShape;
import org.aspose.slides.foss.ShapeType;
import org.aspose.slides.foss.export.SaveFormat;

核心类

ClassDescription
AdjustValueRepresents a single geometry adjustment value backed by an OOXML `` element.
AdjustValueCollectionRepresents a collection of shape’s adjustments backed by an OOXML `` element.
AutoShapeRepresents an AutoShape.
BaseHandoutNotesSlideHeaderFooterManager代表简单的基础类,用于手册和笔记幻灯片头/脚本管理器.
BasePortionFormatCommon text portion formatting properties.
BaseShapeLock基本类型为形状锁.
BaseSlide代表所有幻灯片类型的常见数据。
Blur代表一个 Blur 效果,适用于整个形状,包括其填充。
BulletFormat表示段子中的图片格式化属性.
CameraRepresents 3D camera settings.
CellRepresents a cell of a table.
CellCollectionRepresents a collection of cells.
CellFormatRepresents format of a table cell.
ColorImmutable value type representing an ARGB color.
ColorFormatRepresents a color used in a presentation.
ColumnRepresents a column in a table.
ColumnCollectionRepresents collection of columns in a table.
ColumnFormat表示表列的格式化属性.
CommentRepresents a comment on a presentation slide.
CommentAuthorRepresents an author of comments.
CommentAuthorCollectionRepresents a collection of comment authors in a presentation.
CommentCollectionRepresents a collection of comments of one author.
ConnectorRepresents a connector shape.
ConnectorLock表示连接器形状的锁定设置.
DocumentPropertiesRepresents properties of a presentation.
EffectFormatRepresents effect formatting properties of a shape.
FillFormatRepresents fill formatting properties.
FillOverlayRepresents a Fill Overlay effect.
GeometryShapeBase class for shapes with geometry, backed by an OOXML shape element.
GlobalLayoutSlideCollection表示所有布局幻灯片的集合.
GlowRepresents a glow effect backed by an OOXML `` element.
GradientFormatRepresents a gradient format.
GradientStopRepresents a single gradient stop.
GradientStopCollectionRepresents a collection of gradient stops.
GraphicalObjectAbstract base class for graphical objects on a slide.
GraphicalObjectLock表示图形对象的锁定设置.
GroupShapeRepresents a group of shapes on a slide.
HeadingPair表示标题对,表示文件部分的组合.
ImageRepresents a raster or vector image.
ImageCollectionRepresents a collection of images in a presentation.
ImageTransformOperationRepresents an image-transform operation applied to an image effect.
ImagesMethods to instantiate and work with IImage.
InnerShadowRepresents an inner shadow effect backed by an OOXML `` element.
LayoutSlideRepresents a layout slide.
LayoutSlideCollectionRepresents a collection of layout slides.
LightRigRepresents a light rig for 3D scene.
LineFillFormatRepresents the fill format of a line.
LineFormatRepresents format of a line.
MasterLayoutSlideCollection代表了定义主幻灯片的所有布局幻觉集合。
MasterSlideRepresents a master slide in a presentation.
MasterSlideCollectionRepresents a collection of master slides in a presentation.
NotesSize表示一个笔记幻灯片的大小.
NotesSlideRepresents a notes slide in a presentation.
NotesSlideHeaderFooterManager代表管理器,它会控制笔记片的位置保持者行为,包括头部位置保留者.
NotesSlideManager管理给定单项的笔记幻灯片.
OuterShadowRepresents an outer shadow effect backed by an OOXML `` element.
PPImageRepresents an image in a presentation.
PVIObject对于与幻灯片和表现相连的物业价值继承 (PVI) 对象,基本类.
ParagraphRepresents a text paragraph.
ParagraphCollectionRepresents a collection of paragraphs.
ParagraphFormatRepresents paragraph formatting properties.
PatternFormat代表一个模型填写格式。
PictureRepresents a picture in a presentation.
PictureFillFormat代表一个图片填充风格.
PictureFrameRepresents a frame with a picture inside.
PictureFrameLockRepresents the locks for a PictureFrame.
PointF代表一个具有浮动坐标的二维点.
PortionRepresents a text portion (run) within a paragraph.
PortionCollectionRepresents a collection of text portions within a paragraph.
PortionFormatRepresents text portion formatting properties.
PptCorruptFileException当PPT文件腐败并且无法处理时,会被抛出例外.
PptException对于PPT相关错误的基本例外.
PptReadException当PPT文件无法读取时,会出现例外.
PresentationRepresents a PowerPoint presentation.
PresetShadowRepresents a preset shadow effect backed by an OOXML `` element.
RectangleF代表一个由位置和尺寸定义的矩形,使用浮点坐标.
ReflectionRepresents a reflection effect backed by an OOXML `` element.
RowRepresents a row in a table.
RowCollectionRepresents a collection of rows in a table.
RowFormat表示表列的格式化属性.
ShapeAbstract base class for shapes on a slide.
ShapeBevel包含形状的主要面部浮雕 ().
ShapeCollectionRepresents a collection of shapes on a slide.
ShapeFrame代表一个不变的形状框架,具有位置,尺寸,旋转和翻转属性.
ShapeStyleRepresents a shape’s style reference.
Size代表一个二维尺寸,且有整数.
SizeF代表具有浮动尺寸的2D大小.
SlideRepresents a slide in a presentation.
SlideCollectionRepresents a collection of slides in a presentation.
SoftEdgeRepresents a soft edge effect backed by an OOXML `` element.
TableRepresents a table shape on a slide.
TableFormatRepresents format of a table.
TextFrameRepresents a text frame containing paragraphs.
TextFrameFormatContains the TextFrame’s formatting properties.
ThreeDFormat表示一个形状的3D格式化属性.

形状

InterfaceDescription
IAdjustValue表示几何形状调整值.
IAdjustValueCollection表示一个形状调整值的集合.
IAutoShapeRepresents an AutoShape.
IBaseHandoutNotesSlideHeaderFooterManagerRepresents base interface for handout and notes slide header/footer managers.
IBaseHeaderFooterManager代表头/脚管理器的基本接口.
IBasePortionFormatRepresents common text portion formatting properties.
IBaseSlide代表所有幻灯片类型的常见数据。
IBaseSlideHeaderFooterManagerRepresents base interface for slide header/footer managers that manage footer, slide number, and date-time placeholders.
IBlur代表一个 Blur 效果,适用于整个形状,包括其填充。
IBulkTextFormattable代表一个具有大量设置子文本元素格式的对象.
IBulletFormat表示段子中的图片格式化属性.
ICameraRepresents Camera.
ICellRepresents a cell in a table.
ICellCollectionRepresents a collection of cells.
ICellFormatRepresents format of a table cell.
IColorFormatRepresents a color used in a presentation.
IColumnRepresents a column in a table.
IColumnCollectionRepresents collection of columns in a table.
IColumnFormatRepresents format of a table column.
ICommentRepresents a comment on a presentation slide.
ICommentAuthorRepresents a comment author in a presentation.
ICommentAuthorCollectionRepresents a collection of comment authors in a presentation.
ICommentCollection代表一个作者所写的评论集.
IConnectorRepresents a connector.
IConnectorLock确定哪些操作在父连接器上被禁用.
ICustomData代表与形状相关的自定义数据.
IDocumentPropertiesRepresents properties of a presentation document.
IEffectFormatRepresents effect formatting properties.
IEffectParamSource作为效果参数源的对象标记接口.
IFillFormat表示填写格式选项.
IFillOverlayRepresents a Fill Overlay effect.
IFillParamSource作为填充参数源的对象标记接口.
IFontDataRepresents a font definition.
IGeometryShapeRepresents a shape with geometry (preset or custom).
IGlobalLayoutSlideCollection表示一个演示中的所有布局幻灯片的集合.
IGlowRepresents a glow effect applied to a shape.
IGradientFormatRepresents a gradient format.
IGradientStopRepresents a gradient stop.
IGradientStopCollectionRepresents a collection of gradient stops.
IGraphicalObjectRepresents abstract graphical object.
IGraphicalObjectLockDetermines which operations are disabled on the parent IGraphicalObject.
IGroupShapeRepresents a group of shapes on a slide.
IHeadingPair表示标题对,表示文件部分的组合和每个组中的部分数量.
IHyperlinkContainer包含超链接的对象标记界面.
IImageRepresents a raster or vector image.
IImageCollectionRepresents a collection of images in a presentation.
IImageTransformOperationRepresents an image-transform operation effect.
IInnerShadow代表对形状应用的内部阴影效果。
ILayoutSlideRepresents a layout slide.
ILayoutSlideCollection代表一个基本类,用于收集布局幻灯片.
ILightRigRepresents a light rig.
ILineFillFormat表示线填充的属性.
ILineFormatRepresents format of a line.
ILineParamSource作为线参数源的对象标记接口.
ILoadOptions代表可用于配置演示文档加载方式的选项.
IMasterLayoutSlideCollection表示属于主幻灯片的布局幻燈片集合.
IMasterSlideRepresents a master slide in a presentation.
IMasterSlideCollectionRepresents a collection of master slides.
INotesSizeRepresents a size of notes slide.
INotesSlideRepresents a notes slide in a presentation.
INotesSlideHeaderFooterManager代表管理器,它会控制笔记片的位置保持者行为,包括头部位置保留者.
INotesSlideManager管理给定单项的笔记幻灯片.
IOuterShadowRepresents an Outer Shadow effect.
IPPImageRepresents an image in a presentation.
IParagraphRepresents a text paragraph.
IParagraphCollectionRepresents a collection of paragraphs.
IParagraphFormatRepresents paragraph formatting properties.
IPatternFormat代表一个模型填写格式。
IPictureFillFormat代表一个图片填充风格.
IPictureFrameRepresents a frame with a picture inside.
IPictureFrameLockDetermines which operations are disabled on the parent IPictureFrame.
IPlaceholderRepresents a placeholder on a slide.
IPortion代表文本段内的一部分。
IPortionCollectionRepresents a collection of text portions.
IPortionFormatRepresents formatting properties of a text portion with no inheritance applied.
IPresentationRepresents a presentation document.
IPresentationComponentRepresents a component of a presentation.
IPresetShadowRepresents a Preset Shadow effect.
IReflectionRepresents a reflection effect applied to a shape.
IRowRepresents a row in a table.
IRowCollectionRepresents a collection of rows in a table.
IRowFormatRepresents format of a table row.
ISaveOptions控制演示文档保存方式的选项.
ISectionRepresents a section in a presentation.
IShapeRepresents a shape on a slide.
IShapeBevel代表形状的主要面部轻松的特性.
IShapeCollectionRepresents a collection of shapes.
IShapeFrameRepresents shape frame’s properties.
IShapeStyleRepresents a shape’s style reference.
ISlideRepresents a slide in a presentation.
ISlideCollectionRepresents a collection of slides in a presentation.
ISlideComponentRepresents a component of a slide.
ISlidesPictureRepresents a picture in a presentation.
ISoftEdgeRepresents a Soft Edge effect.
ITableRepresents a table on a slide.
ITableFormatRepresents format of a table.
ITextFrameRepresents a TextFrame.
ITextFrameFormatRepresents format of a text frame.
IThemeable代表可以主题的物体.
IThreeDFormatRepresents 3-D properties.
IThreeDParamSource作为3D参数源的对象标记接口.

文本

EnumerationDescription
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代表了编号子弹的样式.
PatternStyle代表了模式风格.
PictureFillMode确定图片将如何填补区域.
PresetColorRepresents predefined color presets.
PresetShadowType代表一个影子效应的预设.
RectangleAlignmentDefines 2-dimension alignment.
SaveFormat定义保存表达的格式的常数.
SchemeColorRepresents colors in a color scheme.
ShapeTypeRepresents preset geometry of geometry shapes.
SlideLayoutType表示幻灯片的布局类型.
SourceFormat表示源文件格式.
TableStylePreset代表了构建的桌面风格.
TextAlignment代表不同的文本对齐风格.
TextAnchorType在文本区域内对应的文字框.
TextAutofitType表示文字自动调整模式.
TextCapType表示大写字体的类型.
TextShapeType表示文本包装形状.
TextStrikethroughType表示文字的类型.
TextUnderlineType表示下载的文本类型.
TextVerticalType确定文本的垂直写作模式.
TileFlip定义了翻模式.

表格

描述
表格幻灯片上的表格形状。

格式化

ClassDescription
ColorFormat演示文稿中使用的颜色。
FillFormat填充格式属性。
LineFormat线条格式属性。
EffectFormat效果格式(模糊、发光、阴影、反射)。
GradientFormat渐变填充格式属性。
PatternFormat图案填充格式属性。
ThreeDFormat3-D 格式属性。

图像与绘图

描述
ImageCollection嵌入在演示文稿中的图像集合。

注释和属性

描述
Comment幻灯片注释。
CommentAuthor幻灯片注释的作者。
DocumentProperties演示文稿元数据(标题、作者等)。

母版、布局和注释

描述
LayoutSlide演示文稿中的布局幻灯片。
MasterSlide演示文稿中的母版幻灯片。
NotesSlide附加到演示文稿幻灯片的备注幻灯片。
 中文