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;核心类
| Class | Description |
|---|---|
AdjustValue | Represents a single geometry adjustment value backed by an OOXML `` element. |
AdjustValueCollection | Represents a collection of shape’s adjustments backed by an OOXML `` element. |
AutoShape | Represents an AutoShape. |
BaseHandoutNotesSlideHeaderFooterManager | 代表简单的基础类,用于手册和笔记幻灯片头/脚本管理器. |
BasePortionFormat | Common text portion formatting properties. |
BaseShapeLock | 基本类型为形状锁. |
BaseSlide | 代表所有幻灯片类型的常见数据。 |
Blur | 代表一个 Blur 效果,适用于整个形状,包括其填充。 |
BulletFormat | 表示段子中的图片格式化属性. |
Camera | Represents 3D camera settings. |
Cell | Represents a cell of a table. |
CellCollection | Represents a collection of cells. |
CellFormat | Represents format of a table cell. |
Color | Immutable value type representing an ARGB color. |
ColorFormat | Represents a color used in a presentation. |
Column | Represents a column in a table. |
ColumnCollection | Represents collection of columns in a table. |
ColumnFormat | 表示表列的格式化属性. |
Comment | Represents a comment on a presentation slide. |
CommentAuthor | Represents an author of comments. |
CommentAuthorCollection | Represents a collection of comment authors in a presentation. |
CommentCollection | Represents a collection of comments of one author. |
Connector | Represents a connector shape. |
ConnectorLock | 表示连接器形状的锁定设置. |
DocumentProperties | Represents properties of a presentation. |
EffectFormat | Represents effect formatting properties of a shape. |
FillFormat | Represents fill formatting properties. |
FillOverlay | Represents a Fill Overlay effect. |
GeometryShape | Base class for shapes with geometry, backed by an OOXML shape element. |
GlobalLayoutSlideCollection | 表示所有布局幻灯片的集合. |
Glow | Represents a glow effect backed by an OOXML `` element. |
GradientFormat | Represents a gradient format. |
GradientStop | Represents a single gradient stop. |
GradientStopCollection | Represents a collection of gradient stops. |
GraphicalObject | Abstract base class for graphical objects on a slide. |
GraphicalObjectLock | 表示图形对象的锁定设置. |
GroupShape | Represents a group of shapes on a slide. |
HeadingPair | 表示标题对,表示文件部分的组合. |
Image | Represents a raster or vector image. |
ImageCollection | Represents a collection of images in a presentation. |
ImageTransformOperation | Represents an image-transform operation applied to an image effect. |
Images | Methods to instantiate and work with IImage. |
InnerShadow | Represents an inner shadow effect backed by an OOXML `` element. |
LayoutSlide | Represents a layout slide. |
LayoutSlideCollection | Represents a collection of layout slides. |
LightRig | Represents a light rig for 3D scene. |
LineFillFormat | Represents the fill format of a line. |
LineFormat | Represents format of a line. |
MasterLayoutSlideCollection | 代表了定义主幻灯片的所有布局幻觉集合。 |
MasterSlide | Represents a master slide in a presentation. |
MasterSlideCollection | Represents a collection of master slides in a presentation. |
NotesSize | 表示一个笔记幻灯片的大小. |
NotesSlide | Represents a notes slide in a presentation. |
NotesSlideHeaderFooterManager | 代表管理器,它会控制笔记片的位置保持者行为,包括头部位置保留者. |
NotesSlideManager | 管理给定单项的笔记幻灯片. |
OuterShadow | Represents an outer shadow effect backed by an OOXML `` element. |
PPImage | Represents an image in a presentation. |
PVIObject | 对于与幻灯片和表现相连的物业价值继承 (PVI) 对象,基本类. |
Paragraph | Represents a text paragraph. |
ParagraphCollection | Represents a collection of paragraphs. |
ParagraphFormat | Represents paragraph formatting properties. |
PatternFormat | 代表一个模型填写格式。 |
Picture | Represents a picture in a presentation. |
PictureFillFormat | 代表一个图片填充风格. |
PictureFrame | Represents a frame with a picture inside. |
PictureFrameLock | Represents the locks for a PictureFrame. |
PointF | 代表一个具有浮动坐标的二维点. |
Portion | Represents a text portion (run) within a paragraph. |
PortionCollection | Represents a collection of text portions within a paragraph. |
PortionFormat | Represents text portion formatting properties. |
PptCorruptFileException | 当PPT文件腐败并且无法处理时,会被抛出例外. |
PptException | 对于PPT相关错误的基本例外. |
PptReadException | 当PPT文件无法读取时,会出现例外. |
Presentation | Represents a PowerPoint presentation. |
PresetShadow | Represents a preset shadow effect backed by an OOXML `` element. |
RectangleF | 代表一个由位置和尺寸定义的矩形,使用浮点坐标. |
Reflection | Represents a reflection effect backed by an OOXML `` element. |
Row | Represents a row in a table. |
RowCollection | Represents a collection of rows in a table. |
RowFormat | 表示表列的格式化属性. |
Shape | Abstract base class for shapes on a slide. |
ShapeBevel | 包含形状的主要面部浮雕 (). |
ShapeCollection | Represents a collection of shapes on a slide. |
ShapeFrame | 代表一个不变的形状框架,具有位置,尺寸,旋转和翻转属性. |
ShapeStyle | Represents a shape’s style reference. |
Size | 代表一个二维尺寸,且有整数. |
SizeF | 代表具有浮动尺寸的2D大小. |
Slide | Represents a slide in a presentation. |
SlideCollection | Represents a collection of slides in a presentation. |
SoftEdge | Represents a soft edge effect backed by an OOXML `` element. |
Table | Represents a table shape on a slide. |
TableFormat | Represents format of a table. |
TextFrame | Represents a text frame containing paragraphs. |
TextFrameFormat | Contains the TextFrame’s formatting properties. |
ThreeDFormat | 表示一个形状的3D格式化属性. |
形状
| Interface | Description |
|---|---|
IAdjustValue | 表示几何形状调整值. |
IAdjustValueCollection | 表示一个形状调整值的集合. |
IAutoShape | Represents an AutoShape. |
IBaseHandoutNotesSlideHeaderFooterManager | Represents base interface for handout and notes slide header/footer managers. |
IBaseHeaderFooterManager | 代表头/脚管理器的基本接口. |
IBasePortionFormat | Represents common text portion formatting properties. |
IBaseSlide | 代表所有幻灯片类型的常见数据。 |
IBaseSlideHeaderFooterManager | Represents base interface for slide header/footer managers that manage footer, slide number, and date-time placeholders. |
IBlur | 代表一个 Blur 效果,适用于整个形状,包括其填充。 |
IBulkTextFormattable | 代表一个具有大量设置子文本元素格式的对象. |
IBulletFormat | 表示段子中的图片格式化属性. |
ICamera | Represents Camera. |
ICell | Represents a cell in a table. |
ICellCollection | Represents a collection of cells. |
ICellFormat | Represents format of a table cell. |
IColorFormat | Represents a color used in a presentation. |
IColumn | Represents a column in a table. |
IColumnCollection | Represents collection of columns in a table. |
IColumnFormat | Represents format of a table column. |
IComment | Represents a comment on a presentation slide. |
ICommentAuthor | Represents a comment author in a presentation. |
ICommentAuthorCollection | Represents a collection of comment authors in a presentation. |
ICommentCollection | 代表一个作者所写的评论集. |
IConnector | Represents a connector. |
IConnectorLock | 确定哪些操作在父连接器上被禁用. |
ICustomData | 代表与形状相关的自定义数据. |
IDocumentProperties | Represents properties of a presentation document. |
IEffectFormat | Represents effect formatting properties. |
IEffectParamSource | 作为效果参数源的对象标记接口. |
IFillFormat | 表示填写格式选项. |
IFillOverlay | Represents a Fill Overlay effect. |
IFillParamSource | 作为填充参数源的对象标记接口. |
IFontData | Represents a font definition. |
IGeometryShape | Represents a shape with geometry (preset or custom). |
IGlobalLayoutSlideCollection | 表示一个演示中的所有布局幻灯片的集合. |
IGlow | Represents a glow effect applied to a shape. |
IGradientFormat | Represents a gradient format. |
IGradientStop | Represents a gradient stop. |
IGradientStopCollection | Represents a collection of gradient stops. |
IGraphicalObject | Represents abstract graphical object. |
IGraphicalObjectLock | Determines which operations are disabled on the parent IGraphicalObject. |
IGroupShape | Represents a group of shapes on a slide. |
IHeadingPair | 表示标题对,表示文件部分的组合和每个组中的部分数量. |
IHyperlinkContainer | 包含超链接的对象标记界面. |
IImage | Represents a raster or vector image. |
IImageCollection | Represents a collection of images in a presentation. |
IImageTransformOperation | Represents an image-transform operation effect. |
IInnerShadow | 代表对形状应用的内部阴影效果。 |
ILayoutSlide | Represents a layout slide. |
ILayoutSlideCollection | 代表一个基本类,用于收集布局幻灯片. |
ILightRig | Represents a light rig. |
ILineFillFormat | 表示线填充的属性. |
ILineFormat | Represents format of a line. |
ILineParamSource | 作为线参数源的对象标记接口. |
ILoadOptions | 代表可用于配置演示文档加载方式的选项. |
IMasterLayoutSlideCollection | 表示属于主幻灯片的布局幻燈片集合. |
IMasterSlide | Represents a master slide in a presentation. |
IMasterSlideCollection | Represents a collection of master slides. |
INotesSize | Represents a size of notes slide. |
INotesSlide | Represents a notes slide in a presentation. |
INotesSlideHeaderFooterManager | 代表管理器,它会控制笔记片的位置保持者行为,包括头部位置保留者. |
INotesSlideManager | 管理给定单项的笔记幻灯片. |
IOuterShadow | Represents an Outer Shadow effect. |
IPPImage | Represents an image in a presentation. |
IParagraph | Represents a text paragraph. |
IParagraphCollection | Represents a collection of paragraphs. |
IParagraphFormat | Represents paragraph formatting properties. |
IPatternFormat | 代表一个模型填写格式。 |
IPictureFillFormat | 代表一个图片填充风格. |
IPictureFrame | Represents a frame with a picture inside. |
IPictureFrameLock | Determines which operations are disabled on the parent IPictureFrame. |
IPlaceholder | Represents a placeholder on a slide. |
IPortion | 代表文本段内的一部分。 |
IPortionCollection | Represents a collection of text portions. |
IPortionFormat | Represents formatting properties of a text portion with no inheritance applied. |
IPresentation | Represents a presentation document. |
IPresentationComponent | Represents a component of a presentation. |
IPresetShadow | Represents a Preset Shadow effect. |
IReflection | Represents a reflection effect applied to a shape. |
IRow | Represents a row in a table. |
IRowCollection | Represents a collection of rows in a table. |
IRowFormat | Represents format of a table row. |
ISaveOptions | 控制演示文档保存方式的选项. |
ISection | Represents a section in a presentation. |
IShape | Represents a shape on a slide. |
IShapeBevel | 代表形状的主要面部轻松的特性. |
IShapeCollection | Represents a collection of shapes. |
IShapeFrame | Represents shape frame’s properties. |
IShapeStyle | Represents a shape’s style reference. |
ISlide | Represents a slide in a presentation. |
ISlideCollection | Represents a collection of slides in a presentation. |
ISlideComponent | Represents a component of a slide. |
ISlidesPicture | Represents a picture in a presentation. |
ISoftEdge | Represents a Soft Edge effect. |
ITable | Represents a table on a slide. |
ITableFormat | Represents format of a table. |
ITextFrame | Represents a TextFrame. |
ITextFrameFormat | Represents format of a text frame. |
IThemeable | 代表可以主题的物体. |
IThreeDFormat | Represents 3-D properties. |
IThreeDParamSource | 作为3D参数源的对象标记接口. |
文本
| Enumeration | Description |
|---|---|
BevelPresetType | 定义3D形状的常量. |
BulletType | 代表了延伸弹的类型. |
CameraPresetType | 定义摄像机预设类型的常数. |
ColorType | 代表不同的颜色模式. |
FillBlendMode | Determines blend mode. |
FillType | 指定各种视觉对象的内部填充类型. |
FontAlignment | 表示垂直字体对齐. |
GradientDirection | 代表梯度风格. |
GradientShape | 表示梯度填充的形状. |
LightRigPresetType | 定义预设灯光类型的常数. |
LightingDirection | 定义光方向的常数. |
LineAlignment | 表示线对齐类型. |
LineArrowheadLength | Represents the length of an arrowhead. |
LineArrowheadStyle | Represents the style of an arrowhead. |
LineArrowheadWidth | Represents the width of an arrowhead. |
LineCapStyle | 代表了线帽风格. |
LineDashStyle | 代表线条的风格. |
LineJoinStyle | 代表线路的结合风格. |
LineStyle | Represents the style of a line. |
MaterialPresetType | 定义材料形状的常数. |
NullableBool | 表示三倍布尔值. |
NumberedBulletStyle | 代表了编号子弹的样式. |
PatternStyle | 代表了模式风格. |
PictureFillMode | 确定图片将如何填补区域. |
PresetColor | Represents predefined color presets. |
PresetShadowType | 代表一个影子效应的预设. |
RectangleAlignment | Defines 2-dimension alignment. |
SaveFormat | 定义保存表达的格式的常数. |
SchemeColor | Represents colors in a color scheme. |
ShapeType | Represents preset geometry of geometry shapes. |
SlideLayoutType | 表示幻灯片的布局类型. |
SourceFormat | 表示源文件格式. |
TableStylePreset | 代表了构建的桌面风格. |
TextAlignment | 代表不同的文本对齐风格. |
TextAnchorType | 在文本区域内对应的文字框. |
TextAutofitType | 表示文字自动调整模式. |
TextCapType | 表示大写字体的类型. |
TextShapeType | 表示文本包装形状. |
TextStrikethroughType | 表示文字的类型. |
TextUnderlineType | 表示下载的文本类型. |
TextVerticalType | 确定文本的垂直写作模式. |
TileFlip | 定义了翻模式. |
表格
| 类 | 描述 |
|---|---|
| 表格 | 幻灯片上的表格形状。 |
格式化
| Class | Description |
|---|---|
| ColorFormat | 演示文稿中使用的颜色。 |
| FillFormat | 填充格式属性。 |
| LineFormat | 线条格式属性。 |
| EffectFormat | 效果格式(模糊、发光、阴影、反射)。 |
| GradientFormat | 渐变填充格式属性。 |
| PatternFormat | 图案填充格式属性。 |
| ThreeDFormat | 3-D 格式属性。 |
图像与绘图
| 类 | 描述 |
|---|---|
| ImageCollection | 嵌入在演示文稿中的图像集合。 |
注释和属性
| 类 | 描述 |
|---|---|
| Comment | 幻灯片注释。 |
| CommentAuthor | 幻灯片注释的作者。 |
| DocumentProperties | 演示文稿元数据(标题、作者等)。 |
母版、布局和注释
| 类 | 描述 |
|---|---|
| LayoutSlide | 演示文稿中的布局幻灯片。 |
| MasterSlide | 演示文稿中的母版幻灯片。 |
| NotesSlide | 附加到演示文稿幻灯片的备注幻灯片。 |