com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IPresentation

    • Method Detail

      • getCurrentDateTime

        java.util.Date getCurrentDateTime()

        Returns or sets date and time which will substitute content of datetime fields. Time of this Presentation object creation by default. Read/write Date.

      • setCurrentDateTime

        void setCurrentDateTime(java.util.Date value)

        Returns or sets date and time which will substitute content of datetime fields. Time of this Presentation object creation by default. Read/write Date.

      • getHeaderFooterManager

        IPresentationHeaderFooterManager getHeaderFooterManager()

        Returns HeaderFooter manager of the presentation. Read-only IHeaderFooterManager.

      • getLayoutSlides

        IGlobalLayoutSlideCollection getLayoutSlides()

        Returns a list of all layout slides that are defined in the presentation. Read-only IGlobalLayoutSlideCollection.


        You can access to alternative API for adding/inserting/removing/cloning layout slides by using IMasterSlide.LayoutSlides property.
      • getDefaultTextStyle

        ITextStyle getDefaultTextStyle()

        Returns default text style for shapes. Read-only ITextStyle.

      • getVbaProject

        IVbaProject getVbaProject()

        Gets VBA project with presentation macros. Read/write IVbaProject.

      • setVbaProject

        void setVbaProject(IVbaProject value)

        Gets VBA project with presentation macros. Read/write IVbaProject.

      • getSourceFormat

        int getSourceFormat()

        Returns information about from which format presentation was loaded. Read-only SourceFormat(getSourceFormat()).

      • getHyperlinkQueries

        IHyperlinkQueries getHyperlinkQueries()

        Provides easy access to all hyperlinks contained in all presentation slides (not in master, layout, notes slides). Read-only IHyperlinkQueries.

      • getFirstSlideNumber

        int getFirstSlideNumber()

        Represents the first slide number in the presentation. Read/write int.

      • setFirstSlideNumber

        void setFirstSlideNumber(int value)

        Represents the first slide number in the presentation. Read/write int.

      • getAllCustomXmlParts

        ICustomXmlPart[] getAllCustomXmlParts()

        Returns all custom data parts in the presentaion. Read-only ICustomXmlPart[].

      • save

        void save(java.lang.String fname,
                  int format)

        Saves all slides of a presentation to a file with the specified format.

        Parameters:
        fname - Path to the created file.
        format - Format of the exported data.
      • save

        void save(java.io.OutputStream stream,
                  int format)

        Saves all slides of a presentation to a stream in the specified format.

        Parameters:
        stream - Output stream.
        format - Format of the exported data.
      • save

        void save(java.lang.String fname,
                  int format,
                  ISaveOptions options)

        Saves all slides of a presentation to a file with the specified format and with additional options.

        Parameters:
        fname - Path to the created file.
        format - Format of the exported data.
        options - Additional format options.
      • save

        void save(java.io.OutputStream stream,
                  int format,
                  ISaveOptions options)

        Saves all slides of a presentation to a stream in the specified format and with additional options.

        Parameters:
        stream - Output stream.
        format - Format of the exported data.
        options - Additional format options.
        Throws:
        com.aspose.ms.System.NotSupportedException - If you try to save encrypted file in none Office 2007-2010 format
      • save

        void save(java.lang.String fname,
                  int[] slides,
                  int format)

        Saves specified slides of a presentation to a file with the specified format.

        Parameters:
        fname - Path to the created file.
        slides - Array with slide positions, starting from 1.
        format - Format of the exported data.
        Throws:
        com.aspose.ms.System.ArgumentNullException - When stream or slides parameter is null.
        com.aspose.ms.System.ArgumentOutOfRangeException - When slides parameter contains wrong page numbers.
        com.aspose.ms.System.InvalidOperationException - When an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP.
      • save

        void save(java.lang.String fname,
                  int[] slides,
                  int format,
                  ISaveOptions options)

        Saves specified slides of a presentation to a file with the specified format.

        Parameters:
        fname - Path to the created file.
        slides - Array with slide positions, starting from 1.
        format - Format of the exported data.
        options - Additional format options.
        Throws:
        com.aspose.ms.System.ArgumentNullException - When stream or slides parameter is null.
        com.aspose.ms.System.ArgumentOutOfRangeException - When slides parameter contains wrong page numbers.
        com.aspose.ms.System.InvalidOperationException - When an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP.
      • save

        void save(java.io.OutputStream stream,
                  int[] slides,
                  int format)

        Saves specified slides of a presentation to a stream in the specified format.

        Parameters:
        stream - Output stream.
        slides - Array with slide positions, starting from 1.
        format - Format of the exported data.
        Throws:
        com.aspose.ms.System.ArgumentNullException - When stream or slides parameter is null.
        com.aspose.ms.System.ArgumentOutOfRangeException - When slides parameter contains wrong page numbers.
        com.aspose.ms.System.InvalidOperationException - When an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP.
      • save

        void save(java.io.OutputStream stream,
                  int[] slides,
                  int format,
                  ISaveOptions options)

        Saves specified slides of a presentation to a stream in the specified format.

        Parameters:
        stream - Output stream.
        slides - Array with slide positions, starting from 1.
        format - Format of the exported data.
        options - Additional format options.
        Throws:
        com.aspose.ms.System.ArgumentNullException - When stream or slides parameter is null.
        com.aspose.ms.System.ArgumentOutOfRangeException - When slides parameter contains wrong page numbers.
        com.aspose.ms.System.InvalidOperationException - When an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP.
      • getThumbnails

        android.graphics.Bitmap[] getThumbnails(INotesCommentsLayoutingOptions notesCommentsLayouting)

        Returns a Thumbnail Bitmap objects for all slides of a presentation.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        Returns:
        Bitmap objects.
      • getThumbnails

        android.graphics.Bitmap[] getThumbnails(INotesCommentsLayoutingOptions notesCommentsLayouting,
                                                int[] slides)

        Returns a Thumbnail Bitmap objects for specified slides of a presentation.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        slides - Array with slide positions, starting from 1.
        Returns:
        Bitmap objects.
      • getThumbnails

        android.graphics.Bitmap[] getThumbnails(INotesCommentsLayoutingOptions notesCommentsLayouting,
                                                float scaleX,
                                                float scaleY)

        Returns a Thumbnail Bitmap objects for all slides of a presentation with custom scaling.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        scaleX - The value by which to scale this Thumbnail in the x-axis direction.
        scaleY - The value by which to scale this Thumbnail in the y-axis direction.
        Returns:
        Bitmap objects.
      • getThumbnails

        android.graphics.Bitmap[] getThumbnails(INotesCommentsLayoutingOptions notesCommentsLayouting,
                                                int[] slides,
                                                float scaleX,
                                                float scaleY)

        Returns a Thumbnail Bitmap objects for specified slides of a presentation with custom scaling.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        slides - Array with slide positions, starting from 1.
        scaleX - The value by which to scale this Thumbnail in the x-axis direction.
        scaleY - The value by which to scale this Thumbnail in the y-axis direction.
        Returns:
        Bitmap objects.
      • getThumbnails

        android.graphics.Bitmap[] getThumbnails(INotesCommentsLayoutingOptions notesCommentsLayouting,
                                                Size imageSize)

        Returns a Thumbnail Bitmap objects for all slides of a presentation with specified size.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        imageSize - Size of the image to create.
        Returns:
        Bitmap objects.
      • getThumbnails

        android.graphics.Bitmap[] getThumbnails(INotesCommentsLayoutingOptions notesCommentsLayouting,
                                                int[] slides,
                                                Size imageSize)

        Returns a Thumbnail Bitmap objects for specified slides of a presentation with specified size.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        slides - Array with slide positions, starting from 1.
        imageSize - Size of the image to create.
        Returns:
        Bitmap objects.
      • getSlideById

        IBaseSlide getSlideById(long id)

        Returns a Slide, MasterSlide or LayoutSlide by Id.

        Parameters:
        id - Id of a slide.
        Returns:
        IBaseSlide object.
      • joinPortionsWithSameFormatting

        void joinPortionsWithSameFormatting()

        Joins runs with same formatting in all paragraphs in all acceptable shapes in all slides.