com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface ISaveOptions

    • Method Detail

      • getWarningCallback

        IWarningCallback getWarningCallback()

        Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback.

      • setWarningCallback

        void setWarningCallback(IWarningCallback value)

        Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback.

      • getDefaultRegularFont

        java.lang.String getDefaultRegularFont()

        Returns or sets font used in case source font is not found. Read-write String.


         
         Presentation pres = new Presentation("SomePresentation.pptx");
         try
         {
             HtmlOptions htmlOpts = new HtmlOptions();
             htmlOpts.setDefaultRegularFont("Arial Black");
             pres.save("SomePresentation-out-ArialBlack.html", SaveFormat.Html, htmlOpts);
             htmlOpts.setDefaultRegularFont("Lucida Console");
             pres.save("Somepresentation-out-LucidaConsole.html", SaveFormat.Html, htmlOpts);
             PdfOptions pdfOpts = new PdfOptions();
             pdfOpts.setDefaultRegularFont("Arial Black");
             pres.save("SomePresentation-out-ArialBlack.pdf", SaveFormat.Pdf, pdfOpts);
         } finally {
             if (pres != null) pres.dispose();
         }
         

      • setDefaultRegularFont

        void setDefaultRegularFont(java.lang.String value)

        Returns or sets font used in case source font is not found. Read-write String.


         
         Presentation pres = new Presentation("SomePresentation.pptx");
         try
         {
             HtmlOptions htmlOpts = new HtmlOptions();
             htmlOpts.setDefaultRegularFont("Arial Black");
             pres.save("SomePresentation-out-ArialBlack.html", SaveFormat.Html, htmlOpts);
             htmlOpts.setDefaultRegularFont("Lucida Console");
             pres.save("Somepresentation-out-LucidaConsole.html", SaveFormat.Html, htmlOpts);
             PdfOptions pdfOpts = new PdfOptions();
             pdfOpts.setDefaultRegularFont("Arial Black");
             pres.save("SomePresentation-out-ArialBlack.pdf", SaveFormat.Pdf, pdfOpts);
         } finally {
             if (pres != null) pres.dispose();
         }