Aspose.Slides FOSS for Java
Aspose.Slides FOSS for Java là một thư viện mã nguồn mở, có giấy phép MIT, dùng để tạo, tải và lưu các tệp PowerPoint .pptx trong Java. Nó cung cấp một mô hình đối tượng phong phú cho các slide, hình dạng, văn bản, bảng, hình ảnh, bình luận và thuộc tính tài liệu.
Kho lưu trữ: github.com/aspose-slides-foss/Aspose.Slides-FOSS-for-Java
Gói: org.aspose.slides.foss
Giấy phép: 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;Các lớp lõi
| 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 | Represents abstract base class for handout and notes slide header/footer managers. |
BasePortionFormat | Common text portion formatting properties. |
BaseShapeLock | Base class for shape locks. |
BaseSlide | Represents common data for all slide types. |
Blur | Represents a Blur effect that is applied to the entire shape, including its fill. |
BulletFormat | Represents paragraph bullet formatting properties. |
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 | Represents formatting properties of a table column. |
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 | Represents the lock settings for a connector shape. |
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 | Represents a collection of all layout slides in presentation. |
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 | Represents the lock settings for a graphical object shape. |
GroupShape | Represents a group of shapes on a slide. |
HeadingPair | Represents a heading pair indicating a grouping of document parts. |
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 | Represents a collection of all layout slides of the defined master slide. |
MasterSlide | Represents a master slide in a presentation. |
MasterSlideCollection | Represents a collection of master slides in a presentation. |
NotesSize | Represents the size of a notes slide. |
NotesSlide | Represents a notes slide in a presentation. |
NotesSlideHeaderFooterManager | Represents manager which holds behavior of the notes slide placeholders, including header placeholder. |
NotesSlideManager | Manages the notes slide for a given slide. |
OuterShadow | Represents an outer shadow effect backed by an OOXML `` element. |
PPImage | Represents an image in a presentation. |
PVIObject | Base class for property-value-inheritance (PVI) objects that are bound to a slide and presentation. |
Paragraph | Represents a text paragraph. |
ParagraphCollection | Represents a collection of paragraphs. |
ParagraphFormat | Represents paragraph formatting properties. |
PatternFormat | Represents a pattern fill format. |
Picture | Represents a picture in a presentation. |
PictureFillFormat | Represents a picture fill style. |
PictureFrame | Represents a frame with a picture inside. |
PictureFrameLock | Represents the locks for a PictureFrame. |
PointF | Represents a 2D point with float coordinates. |
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 | Exception thrown when a PPT file is corrupt and cannot be processed. |
PptException | Base exception for PPT-related errors. |
PptReadException | Exception thrown when a PPT file cannot be read. |
Presentation | Represents a PowerPoint presentation. |
PresetShadow | Represents a preset shadow effect backed by an OOXML `` element. |
RectangleF | Represents a rectangle defined by position and size using floating-point coordinates. |
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 | Represents formatting properties of a table row. |
Shape | Abstract base class for shapes on a slide. |
ShapeBevel | Contains the properties of shape’s main face relief (bevel). |
ShapeCollection | Represents a collection of shapes on a slide. |
ShapeFrame | Represents an immutable shape frame with position, size, rotation, and flip properties. |
ShapeStyle | Represents a shape’s style reference. |
Size | Represents a 2D size with integer dimensions. |
SizeF | Represents a 2D size with float dimensions. |
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 | Represents 3-D formatting properties for a shape. |
Hình dạng
| Interface | Description |
|---|---|
IAdjustValue | Represents a geometry shape adjustment value. |
IAdjustValueCollection | Represents a collection of shape adjustment values. |
IAutoShape | Represents an AutoShape. |
IBaseHandoutNotesSlideHeaderFooterManager | Represents base interface for handout and notes slide header/footer managers. |
IBaseHeaderFooterManager | Represents base interface for header/footer managers. |
IBasePortionFormat | Represents common text portion formatting properties. |
IBaseSlide | Represents common data for all slide types. |
IBaseSlideHeaderFooterManager | Represents base interface for slide header/footer managers that manage footer, slide number, and date-time placeholders. |
IBlur | Represents a Blur effect that is applied to the entire shape, including its fill. |
IBulkTextFormattable | Represents an object with the possibility of bulk setting child text elements’ formats. |
IBulletFormat | Represents paragraph bullet formatting properties. |
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 | Represents a collection of comments belonging to a single author. |
IConnector | Represents a connector. |
IConnectorLock | Determines which operations are disabled on the parent Connector. |
ICustomData | Represents custom data associated with a shape. |
IDocumentProperties | Represents properties of a presentation document. |
IEffectFormat | Represents effect formatting properties. |
IEffectParamSource | Marker interface for objects that serve as a source of effect parameters. |
IFillFormat | Represents fill formatting options. |
IFillOverlay | Represents a Fill Overlay effect. |
IFillParamSource | Marker interface for objects that serve as a source of fill parameters. |
IFontData | Represents a font definition. |
IGeometryShape | Represents a shape with geometry (preset or custom). |
IGlobalLayoutSlideCollection | Represents a collection of all layout slides in a presentation. |
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 | Represents a heading pair that indicates a grouping of document parts and the number of parts in each group. |
IHyperlinkContainer | Marker interface for objects that contain hyperlinks. |
IImage | Represents a raster or vector image. |
IImageCollection | Represents a collection of images in a presentation. |
IImageTransformOperation | Represents an image-transform operation effect. |
IInnerShadow | Represents an inner shadow effect applied to a shape. |
ILayoutSlide | Represents a layout slide. |
ILayoutSlideCollection | Represents a base class for collection of a layout slides. |
ILightRig | Represents a light rig. |
ILineFillFormat | Represents properties for lines filling. |
ILineFormat | Represents format of a line. |
ILineParamSource | Marker interface for objects that serve as a source of line parameters. |
ILoadOptions | Represents options that can be used to configure how a presentation is loaded. |
IMasterLayoutSlideCollection | Represents a collection of layout slides belonging to a master slide. |
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 | Represents manager which holds behavior of the notes slide placeholders, including header placeholder. |
INotesSlideManager | Manages the notes slide for a given slide. |
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 | Represents a pattern fill format. |
IPictureFillFormat | Represents a picture fill style. |
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 | Represents a portion of text inside a text paragraph. |
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 | Options that control how a presentation is saved. |
ISection | Represents a section in a presentation. |
IShape | Represents a shape on a slide. |
IShapeBevel | Represents properties of shape’s main face relief. |
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 | Represents objects that can be themed. |
IThreeDFormat | Represents 3-D properties. |
IThreeDParamSource | Marker interface for objects that serve as a source of 3D parameters. |
Văn bản
| Enumeration | Description |
|---|---|
BevelPresetType | Constants which define 3D bevel of shape. |
BulletType | Represents the type of the extended bullets. |
CameraPresetType | Constants which define camera preset type. |
ColorType | Represents different color modes. |
FillBlendMode | Determines blend mode. |
FillType | Specifies the interior fill type of various visual objects. |
FontAlignment | Represents vertical font alignment. |
GradientDirection | Represents the gradient style. |
GradientShape | Represents the shape of gradient fill. |
LightRigPresetType | Constants which define light preset types. |
LightingDirection | Constants which define light directions. |
LineAlignment | Represents the lines alignment type. |
LineArrowheadLength | Represents the length of an arrowhead. |
LineArrowheadStyle | Represents the style of an arrowhead. |
LineArrowheadWidth | Represents the width of an arrowhead. |
LineCapStyle | Represents the line cap style. |
LineDashStyle | Represents the line dash style. |
LineJoinStyle | Represents the lines join style. |
LineStyle | Represents the style of a line. |
MaterialPresetType | Constants which define material of shape. |
NullableBool | Represents triple boolean values. |
NumberedBulletStyle | Represents the style of the numbered bullets. |
PatternStyle | Represents the pattern style. |
PictureFillMode | Determines how picture will fill area. |
PresetColor | Represents predefined color presets. |
PresetShadowType | Represents a preset for a shadow effect. |
RectangleAlignment | Defines 2-dimension alignment. |
SaveFormat | Constants which define the format of a saved presentation. |
SchemeColor | Represents colors in a color scheme. |
ShapeType | Represents preset geometry of geometry shapes. |
SlideLayoutType | Represents the slide layout type. |
SourceFormat | Represents source file format. |
TableStylePreset | Represents builtin table styles. |
TextAlignment | Represents different text alignment styles. |
TextAnchorType | text box alignment within a text area. |
TextAutofitType | Represents text autofit mode. |
TextCapType | Represents the type of text capitalisation. |
TextShapeType | Represents text wrapping shape. |
TextStrikethroughType | Represents the type of text strikethrough. |
TextUnderlineType | Represents the type of text underline. |
TextVerticalType | Determines vertical writing mode for a text. |
TileFlip | Defines tile flipping mode. |
Bảng
| Lớp | Mô tả |
|---|---|
| Table | Hình dạng Table trên một slide. |
Định dạng
| Class | Description |
|---|---|
| ColorFormat | Màu được sử dụng trong bản trình chiếu. |
| FillFormat | Thuộc tính định dạng tô màu. |
| LineFormat | Thuộc tính định dạng đường. |
| EffectFormat | Định dạng hiệu ứng (mờ, phát sáng, bóng, phản chiếu). |
| GradientFormat | Thuộc tính định dạng tô màu gradient. |
| PatternFormat | Thuộc tính định dạng tô màu mẫu. |
| ThreeDFormat | Thuộc tính định dạng 3D. |
Hình ảnh & Bản vẽ
| Lớp | Mô tả |
|---|---|
| ImageCollection | Bộ sưu tập các hình ảnh được nhúng trong bản trình chiếu. |
Bình luận & Thuộc tính
| Lớp | Mô tả |
|---|---|
| Comment | Một bình luận trên slide. |
| CommentAuthor | Tác giả của các bình luận trên slide. |
| DocumentProperties | Siêu dữ liệu của bản trình chiếu (tiêu đề, tác giả, v.v.). |
Mẫu chính, Bố cục & Ghi chú
| Lớp | Mô tả |
|---|---|
| LayoutSlide | Một slide bố cục trong bản trình chiếu. |
| MasterSlide | Một slide mẫu trong bản trình chiếu. |
| NotesSlide | Slide ghi chú được đính kèm vào slide bản trình chiếu. |