com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IPresentationInfo

  • All Known Implementing Classes:
    PresentationInfo


    public interface IPresentationInfo

    Information about presentation file

    • Method Detail

      • isEncrypted

        boolean isEncrypted()

        Gets True if binded presentation is encrypted, otherwise False. Read-only boolean.

      • getLoadFormat

        int getLoadFormat()

        Gets format of the binded presentation. Read-only LoadFormat.

      • readDocumentProperties

        IDocumentProperties readDocumentProperties()

        Gets document properties of binded presentation.

      • updateDocumentProperties

        void updateDocumentProperties(IDocumentProperties documentProperties)

        Updates properties of binded presentation.


         This sample shows how to call the updateDocumentProperties(IDocumentProperties) method to
         update the document properties returned by call of the readDocumentProperties() method.
         
         IPresentationInfo info = PresentationFactory.getInstance().getPresentationInfo("pres.pptx");
         IDocumentProperties props = info.readDocumentProperties();
         props.setSubject("New subject");
         props.setLastSavedTime(Calendar.getInstance().getTime());
         info.updateDocumentProperties(props);
         info.writeBindedPresentation("new_pres.pptx");
         
      • writeBindedPresentation

        void writeBindedPresentation(java.io.OutputStream stream)

        Writes binded presentation to stream.

        Parameters:
        stream - The stream must be seekable and writable.
      • writeBindedPresentation

        void writeBindedPresentation(java.lang.String file)

        Writes binded presentation to file.

        Parameters:
        file - Presentation file.