com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class PresentationInfo

  • java.lang.Object
    • com.aspose.slides.PresentationInfo
  • All Implemented Interfaces:
    IPresentationInfo


    public final class PresentationInfo
    extends java.lang.Object
    implements IPresentationInfo

    Information about presentation file

    • Method Detail

      • isEncrypted

        public final boolean isEncrypted()

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

        Specified by:
        isEncrypted in interface IPresentationInfo
      • updateDocumentProperties

        public final 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");
         
        Specified by:
        updateDocumentProperties in interface IPresentationInfo
      • writeBindedPresentation

        public final void writeBindedPresentation(java.io.OutputStream stream)

        Writes binded presentation to stream.

        Specified by:
        writeBindedPresentation in interface IPresentationInfo
        Parameters:
        stream - The stream must be seekable and writable.
      • writeBindedPresentation

        public final void writeBindedPresentation(java.lang.String file)

        Writes binded presentation to file.

        Specified by:
        writeBindedPresentation in interface IPresentationInfo
        Parameters:
        file - Presentation file.