public interface IRenderingOptions extends ISaveOptions
Provides options that control how a presentation/slide is rendered.
Presentation pres = new Presentation("pres.pptx"); try { IRenderingOptions renderingOpts = new RenderingOptions(); NotesCommentsLayoutingOptions notesCommentsLayoutingOptions = new NotesCommentsLayoutingOptions(); notesCommentsLayoutingOptions.setNotesPosition(NotesPositions.BottomTruncated); renderingOpts.setSlidesLayoutOptions(notesCommentsLayoutingOptions); ImageIO.write(pres.getSlides().get_Item(0).getThumbnail(renderingOpts), "PNG", new File("pres-Original.png")); renderingOpts.setDefaultRegularFont("Arial Black"); ImageIO.write(pres.getSlides().get_Item(0).getThumbnail(renderingOpts), "PNG", new File("pres-ArialBlackDefault.png")); renderingOpts.setDefaultRegularFont("Arial Narrow"); ImageIO.write(pres.getSlides().get_Item(0).getThumbnail(renderingOpts), "PNG", new File("pres-ArialNarrowDefault.png")); } catch (IOException e) { } finally { if (pres != null) pres.dispose(); }
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDisableFontLigatures()
Gets or sets a value indicating whether text is rendered without using ligatures.
|
IInkOptions |
getInkOptions()
Provides options that control the look of Ink objects in exported document.
|
ISlidesLayoutOptions |
getSlidesLayoutOptions()
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
void |
setDisableFontLigatures(boolean value)
Gets or sets a value indicating whether text is rendered without using ligatures.
|
void |
setSlidesLayoutOptions(ISlidesLayoutOptions value)
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
getDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackISlidesLayoutOptions getSlidesLayoutOptions()
Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
Example:Presentation pres = new Presentation("pres.pptx"); try { RenderingOptions options = new RenderingOptions(); HandoutLayoutingOptions slidesLayoutOptions = new HandoutLayoutingOptions(); slidesLayoutOptions.setHandout(HandoutType.Handouts4Horizontal); slidesLayoutOptions.setPrintSlideNumbers(false); options.setSlidesLayoutOptions(slidesLayoutOptions); BufferedImage[] handoutSlides = pres.getThumbnails(options); for (int index = 0; index < handoutSlides.length; index++) { ImageIO.write(handoutSlides[index], "PNG", new java.io.File("handout-" + index + ".png")); } } catch (IOException e) { } finally { if (pres != null) pres.dispose(); }
void setSlidesLayoutOptions(ISlidesLayoutOptions value)
Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
Example:Presentation pres = new Presentation("pres.pptx"); try { RenderingOptions options = new RenderingOptions(); HandoutLayoutingOptions slidesLayoutOptions = new HandoutLayoutingOptions(); slidesLayoutOptions.setHandout(HandoutType.Handouts4Horizontal); slidesLayoutOptions.setPrintSlideNumbers(false); options.setSlidesLayoutOptions(slidesLayoutOptions); BufferedImage[] handoutSlides = pres.getThumbnails(options); for (int index = 0; index < handoutSlides.length; index++) { ImageIO.write(handoutSlides[index], "PNG", new java.io.File("handout-" + index + ".png")); } } catch (IOException e) { } finally { if (pres != null) pres.dispose(); }
IInkOptions getInkOptions()
Provides options that control the look of Ink objects in exported document.
Read-only IInkOptions
boolean getDisableFontLigatures()
Gets or sets a value indicating whether text is rendered without using ligatures. When set to true, ligatures will be disabled in the rendered output. By default, this property is set to false.
Example:Presentation pres = new Presentation("pres.pptx"); try { RenderingOptions options = new RenderingOptions(); options.setDisableFontLigatures(true); IImage[] renderedSlides = pres.getImages(options); for (int index = 0; index < renderedSlides.length; index++) { IImage slideImage = renderedSlides[index]; slideImage.save("slide-" + index + ".png"); } } finally { if (pres != null) pres.dispose(); }
void setDisableFontLigatures(boolean value)
Gets or sets a value indicating whether text is rendered without using ligatures. When set to true, ligatures will be disabled in the rendered output. By default, this property is set to false.
Example:Presentation pres = new Presentation("pres.pptx"); try { RenderingOptions options = new RenderingOptions(); options.setDisableFontLigatures(true); IImage[] renderedSlides = pres.getImages(options); for (int index = 0; index < renderedSlides.length; index++) { IImage slideImage = renderedSlides[index]; slideImage.save("slide-" + index + ".png"); } } finally { if (pres != null) pres.dispose(); }
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.