com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class SaveOptions

  • java.lang.Object
    • com.aspose.slides.SaveOptions
    • Constructor Detail

      • SaveOptions

        public SaveOptions()
    • Method Detail

      • getDefaultRegularFont

        public final 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();
         }
         
        Specified by:
        getDefaultRegularFont in interface ISaveOptions
      • setDefaultRegularFont

        public final 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();
         }
         
        Specified by:
        setDefaultRegularFont in interface ISaveOptions