### Get and Use DrawingGuides Source: https://reference.aspose.com/slides/java/com.aspose.slides/masterhandoutslide Retrieves the collection of drawing guides and demonstrates adding a new horizontal guide. ```java public final IDrawingGuidesCollection getDrawingGuides() ``` ```java Presentation pres = new Presentation(); try { Dimension2D notesSize = pres.getNotesSize().getSize(); IDrawingGuidesCollection guides = pres.getMasterHandoutSlideManager().setDefaultMasterHandoutSlide().getDrawingGuides(); // Adding the new horizontal drawing guide above the slide center guides.add(Orientation.Horizontal, (float) notesSize.getHeight() / 2 - 50f); pres.save("MasterHandoutDrawingGuides_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Retrieve and Manage Drawing Guides Source: https://reference.aspose.com/slides/java/com.aspose.slides/imasternotesslide Method signature for accessing drawing guides and an example of adding a horizontal guide to a master notes slide. ```java public abstract IDrawingGuidesCollection getDrawingGuides() ``` ```java Presentation pres = new Presentation(); try { Dimension2D notesSize = pres.getNotesSize().getSize(); IDrawingGuidesCollection guides = pres.getMasterNotesSlideManager().setDefaultMasterNotesSlide().getDrawingGuides(); // Adding the new horizontal drawing guide below the slide center guides.add(Orientation.Horizontal, (float)notesSize.getHeight() / 2 + 50f); pres.save("MasterNotesDrawingGuides_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Example Usage Source: https://reference.aspose.com/slides/java/com.aspose.slides/mathblock Demonstrates a basic example of how to create a new MathBlock instance. ```APIDOC ### Example ```java MathBlock mathBlock = new MathBlock(); ``` ``` -------------------------------- ### Get Drawing Guides Source: https://reference.aspose.com/slides/java/com.aspose.slides/icommonslideviewproperties Retrieves the collection of drawing guides associated with the slide view. ```java Copypublic abstract IDrawingGuidesCollection getDrawingGuides() ``` -------------------------------- ### Demonstrate Getting Effective Theme Properties Source: https://reference.aspose.com/slides/java/com.aspose.slides/theme This example demonstrates how to retrieve and print effective theme properties such as font scheme names and major/minor latin fonts from a presentation. ```java Presentation pres = new Presentation("MyPresentation.pptx"); try { IThemeEffectiveData effectiveTheme = pres.getSlides().get_Item(0).getThemeManager().getOverrideTheme().getEffective(); System.out.println("Font scheme name: " + effectiveTheme.getFontScheme().getName()); System.out.println("Major latin font: " + effectiveTheme.getFontScheme().getMajor().getLatinFont().getFontName()); System.out.println("Minor latin font: " + effectiveTheme.getFontScheme().getMinor().getLatinFont().getFontName()); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Example Usage: MasterNotesDrawingGuides Source: https://reference.aspose.com/slides/java/com.aspose.slides/imasternotesslide Demonstrates how to add drawing guides to the master notes slide using Aspose.Slides Java. ```APIDOC ## Example Usage: MasterNotesDrawingGuides ### Description This example shows how to add a new horizontal drawing guide to the master notes slide. ### Code Example ```java Presentation pres = new Presentation(); try { Dimension2D notesSize = pres.getNotesSize().getSize(); IDrawingGuidesCollection guides = pres.getMasterNotesSlideManager().setDefaultMasterNotesSlide().getDrawingGuides(); // Adding the new horizontal drawing guide below the slide center guides.add(Orientation.Horizontal, (float)notesSize.getHeight() / 2 + 50f); pres.save("MasterNotesDrawingGuides_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` ### Returns IDrawingGuidesCollection ``` -------------------------------- ### Demonstrate Getting Effective Paragraph Format Properties Source: https://reference.aspose.com/slides/java/com.aspose.slides/paragraphformat This example demonstrates how to get effective paragraph format properties like text alignment, indent, and bullet type. Ensure the presentation file exists and the specified shape and paragraph are valid. ```java Presentation pres = new Presentation("MyPresentation.pptx"); try { IAutoShape shape = (IAutoShape)pres.getSlides().get_Item(0).getShapes().get_Item(0); IParagraphFormatEffectiveData effectiveParagraphFormat = shape.getTextFrame().getParagraphs().get_Item(0).getParagraphFormat().getEffective(); System.out.println("Text alignment: " + effectiveParagraphFormat.getAlignment()); System.out.println("Indent: " + effectiveParagraphFormat.getIndent()); System.out.println("Bullet type: " + effectiveParagraphFormat.getBullet().getType()); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Configure MathPhantom Instance Source: https://reference.aspose.com/slides/java/com.aspose.slides/mathphantom Example showing how to initialize a MathPhantom and configure its visibility and width properties. ```java IMathPhantom phantom = new MathPhantom(new MathematicalText("1/2")); phantom.setShow(false); // Hide the content phantom.setZeroWidth(false); // Keep the width ``` -------------------------------- ### Get Effective Bullet Formatting Data Source: https://reference.aspose.com/slides/java/com.aspose.slides/bulletformat Gets effective bullet formatting data with inheritance applied. This example demonstrates retrieving bullet type, numbered style, and starting number. ```java public final IBulletFormatEffectiveData getEffective() ``` ```java Presentation pres = new Presentation("MyPresentation.pptx"); try { IAutoShape shape = (IAutoShape)pres.getSlides().get_Item(0).getShapes().get_Item(0); IBulletFormatEffectiveData effectiveBulletFormat = shape.getTextFrame().getParagraphs().get_Item(0).getParagraphFormat().getBullet().getEffective(); System.out.println("Bullet type: " + effectiveBulletFormat.getType()); if (effectiveBulletFormat.getType() == BulletType.Numbered) { System.out.println("Numbered style: " + effectiveBulletFormat.getNumberedBulletStyle()); System.out.println("Starting number: " + effectiveBulletFormat.getNumberedBulletStartWith()); } } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Get Start Shape Connection Site Index Source: https://reference.aspose.com/slides/java/com.aspose.slides/iconnector Gets the index of the connection site for the start shape. This is a read/write property returning a long. ```java public abstract long getStartShapeConnectionSiteIndex() ``` -------------------------------- ### Convert presentation to XPS Source: https://reference.aspose.com/slides/java/com.aspose.slides/xpsoptions Examples demonstrating both default and custom XPS conversion settings. ```java // Instantiate a Presentation object that represents a presentation file Presentation pres = new Presentation("Convert_XPS.pptx"); try { // Saving the presentation to XPS document pres.save("XPS_Output_Without_XPSOption_out.xps", SaveFormat.Xps); } finally { if (pres != null) pres.dispose(); } The following example shows how to converting presentations to XPS using custom settings. // Instantiate a Presentation object that represents a presentation file Presentation pres = new Presentation("Convert_XPS_Options.pptx"); try { // Instantiate the TiffOptions class XpsOptions options = new XpsOptions(); // Save MetaFiles as PNG options.setSaveMetafilesAsPng(true); // Save the presentation to XPS document pres.save("XPS_With_Options_out.xps", SaveFormat.Xps, options); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Get Starting Rotation Value Source: https://reference.aspose.com/slides/java/com.aspose.slides/irotationeffect Retrieves the starting value for the animation. ```java Copypublic abstract float getFrom() ``` -------------------------------- ### Configure ZIP64 Mode for Saving Source: https://reference.aspose.com/slides/java/com.aspose.slides/pptxoptions Example demonstrating how to apply Zip64Mode.Always when saving a presentation. ```java Presentation pres = new Presentation("demo.pptx"); try { PptxOptions pptxOptions = new PptxOptions(); pptxOptions.setZip64Mode(Zip64Mode.Always); pres.save("demo-zip64.pptx", SaveFormat.Pptx, pptxOptions); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Example of setting MathLimit Source: https://reference.aspose.com/slides/java/com.aspose.slides/mathlimit Demonstrates creating a limit element and configuring its position. ```java MathLimit limitElement = new MathLimit(new MathematicalText("lim"), new MathematicalText("𝑛→∞")); limitElement.setUpperLimit(false); ``` -------------------------------- ### Trim video start time Source: https://reference.aspose.com/slides/java/com.aspose.slides/videoframe Sets or gets the start trim time in milliseconds. ```java public final float getTrimFromStart() ``` ```java public final void setTrimFromStart(float value) ``` ```java Presentation pres = new Presentation(); try { ISlide slide = pres.getSlides().get_Item(0); IVideo video = pres.getVideos().addVideo(Files.readAllBytes(Paths.get("video.mp4"))); IVideoFrame videoFrame = slide.getShapes().addVideoFrame(0, 0, 100, 100, video); //set triming start time 1sec videoFrame.setTrimFromStart(1000f); //set triming end time 2sec videoFrame.setTrimFromEnd(2000f); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Converting Presentations to XPS Source: https://reference.aspose.com/slides/java/com.aspose.slides/xpsoptions Examples demonstrating how to convert presentations to XPS format using Aspose.Slides Java, with and without custom XpsOptions. ```APIDOC ## Converting Presentations to XPS ### Default Settings ```java // Instantiate a Presentation object that represents a presentation file Presentation pres = new Presentation("Convert_XPS.pptx"); try { // Saving the presentation to XPS document pres.save("XPS_Output_Without_XPSOption_out.xps", SaveFormat.Xps); } finally { if (pres != null) pres.dispose(); } ``` ### Custom Settings ```java // Instantiate a Presentation object that represents a presentation file Presentation pres = new Presentation("Convert_XPS_Options.pptx"); try { // Instantiate the TiffOptions class XpsOptions options = new XpsOptions(); // Save MetaFiles as PNG options.setSaveMetafilesAsPng(true); // Save the presentation to XPS document pres.save("XPS_With_Options_out.xps", SaveFormat.Xps, options); } finally { if (pres != null) pres.dispose(); } ``` ``` -------------------------------- ### Access Animation Starting Value Source: https://reference.aspose.com/slides/java/com.aspose.slides/ipropertyeffect Methods to get or set the starting value of an animation. ```java public abstract String getFrom() ``` ```java public abstract void setFrom(String value) ``` -------------------------------- ### Importing a Chart from Excel Source: https://reference.aspose.com/slides/java/com.aspose.slides/excelworkbookimporter Example demonstrating how to initialize a presentation and add a chart from an external Excel file. ```java Presentation pres = new Presentation(); try { ExcelWorkbookImporter.addChartFromWorkbook(pres.getSlides().get_Item(0).getShapes(), 10, 10, workbookPath, worksheetName, chartName, false); pres.save("result.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Get Motion Start Coordinates Source: https://reference.aspose.com/slides/java/com.aspose.slides/imotioneffect Retrieves the starting x/y coordinates for the animation in percentages. ```java public abstract Point2D.Float getFrom() ``` -------------------------------- ### Initialize MathAccent Source: https://reference.aspose.com/slides/java/com.aspose.slides/mathaccent Examples of creating a MathAccent instance with or without a specified character. ```java IMathElement baseElement = new MathematicalText("x"); MathAccent accent = new MathAccent(baseElement, '~'); ``` ```java IMathElement baseElement = new MathematicalText("x"); MathAccent accent = new MathAccent(baseElement); ``` -------------------------------- ### Get Drawing Guides Source: https://reference.aspose.com/slides/java/com.aspose.slides/commonslideviewproperties Retrieves the collection of drawing guides from the presentation's view properties. ```APIDOC ## GET /websites/reference_aspose_slides_java/getDrawingGuides ### Description Retrieves the collection of drawing guides from the presentation's view properties. ### Method GET ### Endpoint /websites/reference_aspose_slides_java/getDrawingGuides ### Returns IDrawingGuidesCollection - The collection of the drawing guides. Read-only IDrawingGuidesCollection ### Request Example ```java Presentation pres = new Presentation(); try { IDrawingGuidesCollection guides = pres.getViewProperties().getSlideViewProperties().getDrawingGuides(); // Use the guides collection } finally { if (pres != null) pres.dispose(); } ``` ### Response #### Success Response (200) - **drawingGuides** (IDrawingGuidesCollection) - The collection of drawing guides. ``` -------------------------------- ### Html5Options Example Usage Source: https://reference.aspose.com/slides/java/com.aspose.slides/html5options Demonstrates how to set animation options for HTML5 export. ```APIDOC ```java Presentation pres = new Presentation("demo.pptx"); try { Html5Options htmlOptions = new Html5Options(); htmlOptions.setAnimateShapes(true); htmlOptions.setAnimateTransitions(true); pres.save("demo-animate-shapes-and-transitions.html", SaveFormat.Html5, htmlOptions); } finally { if (pres != null) pres.dispose(); } ``` ``` -------------------------------- ### Initialize PptOptions Source: https://reference.aspose.com/slides/java/com.aspose.slides/pptoptions Creates a new instance of PptOptions. This class controls how a presentation is saved in PPT format. ```java public PptOptions() ``` -------------------------------- ### Get text selection start Source: https://reference.aspose.com/slides/java/com.aspose.slides/moderncomment Retrieves the starting position of the text selection in the text frame. ```java public final int getTextSelectionStart() ``` -------------------------------- ### PptOptions Constructor Source: https://reference.aspose.com/slides/java/com.aspose.slides/pptoptions Initializes a new instance of the PptOptions class. ```APIDOC ### PptOptions() ```java public PptOptions() ``` Initializes a new instance of the `PptOptions` class. ``` -------------------------------- ### Get Drawing Guides Collection in Java Source: https://reference.aspose.com/slides/java/com.aspose.slides/commonslideviewproperties Retrieves the collection of drawing guides for a presentation. This is a read-only collection. ```java public final IDrawingGuidesCollection getDrawingGuides() ``` -------------------------------- ### Example: Add and Save Presentation with Modern Comment Source: https://reference.aspose.com/slides/java/com.aspose.slides/commentcollection This example demonstrates how to create a presentation, add a modern comment to the first slide, and then save the presentation. It includes proper resource disposal. ```java CopyPresentation pres = new Presentation(); try { ICommentAuthor newAuthor = pres.getCommentAuthors().addAuthor("Some Author", "SA"); newAuthor.getComments().addModernComment("This is modern comment", pres.getSlides().get_Item(0), null, new Point2D.Float(100, 100), new Date()); pres.save(outPptxFileName, SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### GET getStartPosAlpha Source: https://reference.aspose.com/slides/java/com.aspose.slides/reflection Retrieves the start position of the start alpha value along the alpha gradient ramp. ```APIDOC ## GET getStartPosAlpha ### Description Specifies the start position (along the alpha gradient ramp) of the start alpha value (percents). ### Method GET ### Response #### Success Response (200) - **value** (float) - The start position in percents. ``` -------------------------------- ### Load presentation without embedded binary objects Source: https://reference.aspose.com/slides/java/com.aspose.slides/iloadoptions Example demonstrating how to initialize LoadOptions to strip embedded binary objects during the presentation loading process. ```java LoadOptions loadOptions = new LoadOptions(); loadOptions.setDeleteEmbeddedBinaryObjects(true); Presentation pres = new Presentation("pres.ppt", loadOptions); try { pres.save("output_WithoutBinaryObjects.ppt", SaveFormat.Ppt); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Creating a Chart in PowerPoint Source: https://reference.aspose.com/slides/java/com.aspose.slides/shapecollection Example demonstrating how to instantiate a presentation, add a clustered column chart, populate it with custom data, and save the result. ```java // Instantiates the Presentation class that represents a PPTX file Presentation pres = new Presentation(); try { // Accesses the first slide ISlide sld = pres.getSlides().get_Item(0); // Adds a chart with its default data IChart chart = sld.getShapes().addChart(ChartType.ClusteredColumn, 0, 0, 500, 500); // Sets the chart title chart.getChartTitle().addTextFrameForOverriding("Sample Title"); chart.getChartTitle().getTextFrameForOverriding().getTextFrameFormat().setCenterText(NullableBool.True); chart.getChartTitle().setHeight(20); chart.setTitle(true); // Sets the first series to show values chart.getChartData().getSeries().get_Item(0).getLabels().getDefaultDataLabelFormat().setShowValue(true); // Sets the index for the chart data sheet int defaultWorksheetIndex = 0; // Gets the chart data worksheet IChartDataWorkbook fact = chart.getChartData().getChartDataWorkbook(); // Deletes the default generated series and categories chart.getChartData().getSeries().clear(); chart.getChartData().getCategories().clear(); // Adds new series chart.getChartData().getSeries().add(fact.getCell(defaultWorksheetIndex, 0, 1, "Series 1"), chart.getType()); chart.getChartData().getSeries().add(fact.getCell(defaultWorksheetIndex, 0, 2, "Series 2"), chart.getType()); // Adds new categories chart.getChartData().getCategories().add(fact.getCell(defaultWorksheetIndex, 1, 0, "Caetegoty 1")); chart.getChartData().getCategories().add(fact.getCell(defaultWorksheetIndex, 2, 0, "Caetegoty 2")); chart.getChartData().getCategories().add(fact.getCell(defaultWorksheetIndex, 3, 0, "Caetegoty 3")); // Takes the first chart series IChartSeries series = chart.getChartData().getSeries().get_Item(0); // Populates series data series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 1, 1, 20)); series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 2, 1, 50)); series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 3, 1, 30)); // Sets the fill color for the series series.getFormat().getFill().setFillType(FillType.Solid); series.getFormat().getFill().getSolidFillColor().setColor(Color.RED); // Takes the second chart series series = chart.getChartData().getSeries().get_Item(1); // Populates series data series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 1, 2, 30)); series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 2, 2, 10)); series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 3, 2, 60)); // Sets the fill color for series series.getFormat().getFill().setFillType(FillType.Solid); series.getFormat().getFill().getSolidFillColor().setColor(Color.GREEN); // Sets the first label to show Category name IDataLabel lbl = series.getDataPoints().get_Item(0).getLabel(); lbl.getDataLabelFormat().setShowCategoryName(true); lbl = series.getDataPoints().get_Item(1).getLabel(); lbl.getDataLabelFormat().setShowSeriesName(true); // Sets the series to show the value for the third label lbl = series.getDataPoints().get_Item(2).getLabel(); lbl.getDataLabelFormat().setShowValue(true); lbl.getDataLabelFormat().setShowSeriesName(true); lbl.getDataLabelFormat().setSeparator("/"); // Saves the PPTX file to disk pres.save("AsposeChart_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Get Start Position Alpha Source: https://reference.aspose.com/slides/java/com.aspose.slides/reflection Retrieves the start position of the alpha gradient ramp for the reflection effect. ```java public final float getStartPosAlpha() ``` -------------------------------- ### Configure and Save WebDocument Source: https://reference.aspose.com/slides/java/com.aspose.slides/webdocument Demonstrates initializing a WebDocument, setting a global property, and saving the document. ```java WebDocumentOptions options = new WebDocumentOptions(); WebDocument document = new WebDocument(options); // put "slideMargin" property to use from templates document.getGlobal().put("slideMargin", 10); // ... set up other options of the document and then save the document document.save(); ``` -------------------------------- ### Get and Set Animation Starting Value Source: https://reference.aspose.com/slides/java/com.aspose.slides/rotationeffect Methods to retrieve or define the starting rotation value for an animation. ```java public final float getFrom() public final void setFrom(float value) ``` -------------------------------- ### Numbered Bullet Start Number Management Source: https://reference.aspose.com/slides/java/com.aspose.slides/bulletformat Methods for setting and getting the starting number for numbered bullets. ```APIDOC ## setNumberedBulletStartWith / getNumberedBulletStartWith ### Description Methods for setting and getting the first number used for a group of numbered bullets with no inheritance. ### Method `setNumberedBulletStartWith(short value)` - Sets the starting number. `getNumberedBulletStartWith()` - Gets the starting number. ### Parameters #### setNumberedBulletStartWith - **value** (short) - Required - The starting number for the group of bullets. ### Response #### getNumberedBulletStartWith Success Response (200) - **short** (short) - The starting number. ``` -------------------------------- ### Initialize PptxOptions Source: https://reference.aspose.com/slides/java/com.aspose.slides/pptxoptions Constructor for creating a new instance of PptxOptions. ```java public PptxOptions() ``` -------------------------------- ### Get and Set Animation Start Value Source: https://reference.aspose.com/slides/java/com.aspose.slides/propertyeffect Retrieves or specifies the starting value for a property animation. This value is a string. ```java public final String getFrom() ``` ```java public final void setFrom(String value) ``` -------------------------------- ### Get Start Reflection Opacity Source: https://reference.aspose.com/slides/java/com.aspose.slides/ireflectioneffectivedata Retrieves the starting opacity of the reflection effect, specified in percent. This property is read-only. ```java public abstract float getStartReflectionOpacity() ``` -------------------------------- ### Initialize Presentation from File Path Source: https://reference.aspose.com/slides/java/com.aspose.slides/presentation Creates a new Presentation object by reading from a specified file path. ```java Presentation pres = new Presentation("demo.pptx"); ``` -------------------------------- ### Initialize Html5Options Source: https://reference.aspose.com/slides/java/com.aspose.slides/html5options Default constructor for creating an instance of Html5Options. ```java public Html5Options() ``` -------------------------------- ### Get Start Shape Connected To Source: https://reference.aspose.com/slides/java/com.aspose.slides/iconnector Gets the shape to which the beginning of the connector is attached. This is a read/write property returning an IShape. ```java public abstract IShape getStartShapeConnectedTo() ``` -------------------------------- ### Implement writeDocumentStart method Source: https://reference.aspose.com/slides/java/com.aspose.slides/ihtmlformattingcontroller Callback method invoked once at the beginning of the presentation conversion to write the HTML document header. ```java public abstract void writeDocumentStart(IHtmlGenerator generator, IPresentation presentation) ``` -------------------------------- ### Get Drawing Guides for Layout Slide Source: https://reference.aspose.com/slides/java/com.aspose.slides/ilayoutslide Retrieves a collection of drawing guides for a specific layout slide. This is a read-only collection. ```APIDOC ## GET /layoutslides/{slide_index}/drawingguides ### Description Retrieves the collection of drawing guides for a layout slide. ### Method GET ### Endpoint /layoutslides/{slide_index}/drawingguides ### Parameters #### Path Parameters - **slide_index** (integer) - Required - The index of the layout slide. ### Response #### Success Response (200) - **IDrawingGuidesCollection** (object) - A collection of drawing guides for the layout slide. ### Response Example ```json { "drawingGuides": [ { "orientation": "Vertical", "position": 100.5 }, { "orientation": "Horizontal", "position": 50.2 } ] } ``` ### Code Example ```java Presentation pres = new Presentation(); try { Dimension2D slideSize = pres.getSlideSize().getSize(); IDrawingGuidesCollection guides = pres.getLayoutSlides().get_Item(0).getDrawingGuides(); // Adding the new vertical drawing guide to the left of the slide center guides.add(Orientation.Vertical, (float)slideSize.getWidth() / 2 - 20f); pres.save("LayoutDrawingGuides_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` ``` -------------------------------- ### writeDocumentStart Method Source: https://reference.aspose.com/slides/java/com.aspose.slides/embeddedeotfontshtmlcontroller Called once per presentation conversion to write the HTML document header. Used for initial setup before content generation. ```java public final void writeDocumentStart(IHtmlGenerator generator, IPresentation presentation) ``` -------------------------------- ### Get Drawing Guide Orientation Source: https://reference.aspose.com/slides/java/com.aspose.slides/idrawingguide Retrieves the orientation of the drawing guide. Use this method to check the current orientation before modification. ```java public abstract byte getOrientation() ``` -------------------------------- ### Get Audio CD Start Track Time Source: https://reference.aspose.com/slides/java/com.aspose.slides/iaudioframe Retrieves the starting time for an audio CD track. This property is read/write. ```java public abstract int getAudioCdStartTrackTime() ``` -------------------------------- ### Initialize MathDelimiter Source: https://reference.aspose.com/slides/java/com.aspose.slides/mathdelimiter Example showing how to instantiate a MathDelimiter with a mathematical element. ```java IMathElement element = new MathematicalText("x"); MathDelimiter delimiter = new MathDelimiter(element); ``` -------------------------------- ### Initialize IMathPhantom Source: https://reference.aspose.com/slides/java/com.aspose.slides/imathphantom Create a phantom math object and configure its visibility and width properties. ```java IMathPhantom phantom = new MathPhantom(new MathematicalText("1/2")); phantom.setShow(false); // Hide the content phantom.setZeroWidth(false); // Keep the width ``` -------------------------------- ### Get Audio CD Start Track Index Source: https://reference.aspose.com/slides/java/com.aspose.slides/iaudioframe Retrieves the starting track index for an audio CD. This property is read/write. ```java public abstract int getAudioCdStartTrack() ``` -------------------------------- ### Add Drawing Guides to Presentation Source: https://reference.aspose.com/slides/java/com.aspose.slides/icommonslideviewproperties Demonstrates how to add vertical and horizontal drawing guides to a PowerPoint presentation. ```java Presentation pres = new Presentation(); try { Dimension2D slideSize = pres.getSlideSize().getSize(); IDrawingGuidesCollection guides = pres.getViewProperties().getSlideViewProperties().getDrawingGuides(); // Adding the new vertical drawing guide to the right of the slide center guides.add(Orientation.Vertical, (float)(slideSize.getWidth() / 2) + 12.5f); // Adding the new horizontal drawing guide below the slide center guides.add(Orientation.Horizontal, (float)(slideSize.getHeight() / 2) + 12.5f); pres.save("DrawingGuides_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Get Start Position Alpha of Reflection Effect Source: https://reference.aspose.com/slides/java/com.aspose.slides/ireflectioneffectivedata Retrieves the start position along the alpha gradient ramp for the start alpha value of a reflection effect. This property is read-only. ```java public abstract float getStartPosAlpha() ``` -------------------------------- ### Add Drawing Guide to Master Notes Slide Source: https://reference.aspose.com/slides/java/com.aspose.slides/masternotesslide Demonstrates how to add a horizontal drawing guide to the master notes slide. This involves getting the notes size, accessing the drawing guides collection, and adding a new guide. ```java Presentation pres = new Presentation(); try { Dimension2D notesSize = pres.getNotesSize().getSize(); IDrawingGuidesCollection guides = pres.getMasterNotesSlideManager().setDefaultMasterNotesSlide().getDrawingGuides(); // Adding the new horizontal drawing guide below the slide center guides.add(Orientation.Horizontal, (float)notesSize.getHeight() / 2 + 50f); pres.save("MasterNotesDrawingGuides_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Initialize MathParagraph Source: https://reference.aspose.com/slides/java/com.aspose.slides/mathparagraph Shows how to create a new instance of the MathParagraph class using its default constructor. ```java MathParagraph mathParagraph = new MathParagraph(); ``` -------------------------------- ### Apply Slide Transitions - Aspose.Slides Java Source: https://reference.aspose.com/slides/java/com.aspose.slides/presentation Demonstrates applying basic slide transitions (Circle and Comb) to the first two slides of a presentation. Requires loading an existing presentation. ```java Presentation pres = new Presentation("AccessSlides.pptx"); try { // Apply circle type transition on slide 1 pres.getSlides().get_Item(0).getSlideShowTransition().setType(TransitionType.Circle); // Apply comb type transition on slide 2 pres.getSlides().get_Item(1).getSlideShowTransition().setType(TransitionType.Comb); // Write the presentation to disk pres.save("SampleTransition_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Get Drawing Guide Position Source: https://reference.aspose.com/slides/java/com.aspose.slides/idrawingguide Retrieves the position of the drawing guide in points from the top-left corner of the slide. The typical value range is from zero to slide height for a horizontal guide and from zero to slide width for a vertical guide. ```java public abstract float getPosition() ``` -------------------------------- ### Get Color Source: https://reference.aspose.com/slides/java/com.aspose.slides/drawingguide Retrieves the color of the drawing guide. ```java public final Color getColor() ``` -------------------------------- ### Configure Handout Layout Source: https://reference.aspose.com/slides/java/com.aspose.slides/handoutlayoutingoptions Example demonstrating how to set the handout layout type and render a slide thumbnail with the specified options. ```java Presentation pres = new Presentation("pres.pptx"); try { RenderingOptions options = new RenderingOptions(); HandoutLayoutingOptions slidesLayoutOptions = new HandoutLayoutingOptions(); slidesLayoutOptions.setHandout(HandoutType.Handouts4Horizontal); options.setSlidesLayoutOptions(slidesLayoutOptions); ImageIO.write(pres.getSlides().get_Item(0).getThumbnail(options, new Dimension(1920, 1080)), "PNG", new java.io.File("pres-handout.png")); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Add Drawing Guide to Master Handout Slide Source: https://reference.aspose.com/slides/java/com.aspose.slides/imasterhandoutslide Demonstrates how to add a horizontal drawing guide to the master handout slide. This example requires a Presentation object and manipulates its drawing guides. ```java Presentation pres = new Presentation(); try { Dimension2D notesSize = pres.getNotesSize().getSize(); IDrawingGuidesCollection guides = pres.getMasterHandoutSlideManager().setDefaultMasterHandoutSlide().getDrawingGuides(); // Adding the new horizontal drawing guide above the slide center guides.add(Orientation.Horizontal, (float) notesSize.getHeight() / 2 - 50f); pres.save("MasterHandoutDrawingGuides_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Create New Presentation Source: https://reference.aspose.com/slides/java/com.aspose.slides/presentationfactory Create a new, empty presentation. No specific load options are required. ```java public final IPresentation createPresentation() ``` -------------------------------- ### Get Drawing Guides for Master Handout Slide Source: https://reference.aspose.com/slides/java/com.aspose.slides/imasterhandoutslide Retrieves the collection of drawing guides for the master handout slide. This collection is read-only. ```java public abstract IDrawingGuidesCollection getDrawingGuides() ``` -------------------------------- ### Create Presentation with Load Options - Java Source: https://reference.aspose.com/slides/java/com.aspose.slides/ipresentationfactory Creates a new presentation with specified load options. Use this when custom loading behavior is required. ```java public abstract IPresentation createPresentation(ILoadOptions options) ``` -------------------------------- ### Get Start Shape Connection Site Index Source: https://reference.aspose.com/slides/java/com.aspose.slides/connector Retrieves the index of the connection site for the start shape of a connector. This is a read/write property. ```java public final long getStartShapeConnectionSiteIndex() ``` -------------------------------- ### Access Ink Traces Example Source: https://reference.aspose.com/slides/java/com.aspose.slides/iink Demonstrates how to load a presentation, access an ink shape, and retrieve its traces. ```java Presentation pres = new Presentation("pres.pptx"); try { IInk ink = (IInk)pres.getSlides().get_Item(0).getShapes().get_Item(0); IInkTrace[] traces = ink.getTraces(); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Configure Data Label Leader Lines Source: https://reference.aspose.com/slides/java/com.aspose.slides/datalabelcollection Example demonstrates how to set the fill type and color for data label leader lines. Ensure the presentation object is disposed after use. ```java Presentation pres = new Presentation("pres.pptx"); try { IChart chart = (IChart) pres.getSlides().get_Item(0).getShapes().get_Item(0); IChartSeriesCollection series = chart.getChartData().getSeries(); IDataLabelCollection labels = series.get_Item(0).getLabels(); labels.getLeaderLinesFormat().getLine().getFillFormat().setFillType(FillType.Solid); labels.getLeaderLinesFormat().getLine().getFillFormat().getSolidFillColor().setColor(new java.awt.Color(255, 0, 0, 255)); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Get Numbered Bullet Start Number Source: https://reference.aspose.com/slides/java/com.aspose.slides/bulletformat Retrieves the starting number for a sequence of numbered bullets. Use this to control the numbering sequence. ```java public final short getNumberedBulletStartWith() ``` -------------------------------- ### Add Drawing Guide to Master Slide Source: https://reference.aspose.com/slides/java/com.aspose.slides/masterslide Demonstrates how to add a vertical drawing guide to a master slide using Aspose.Slides for Java. This involves getting the drawing guides collection and adding a new guide with specified orientation and position. ```java Presentation pres = new Presentation(); try { Dimension2D slideSize = pres.getSlideSize().getSize(); IDrawingGuidesCollection guides = pres.getMasters().get_Item(0).getDrawingGuides(); // Adding the new vertical drawing guide to the right of the slide center guides.add(Orientation.Vertical, (float) slideSize.getWidth() / 2 + 20f); pres.save("MasterSlideDrawingGuides_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Initialize XpsOptions Source: https://reference.aspose.com/slides/java/com.aspose.slides/xpsoptions Default constructor for XpsOptions. ```java public XpsOptions() ``` -------------------------------- ### Get Orientation Source: https://reference.aspose.com/slides/java/com.aspose.slides/drawingguide Retrieves the current orientation of the drawing guide. ```java public final byte getOrientation() ``` -------------------------------- ### Configure Presentation Slide Size Source: https://reference.aspose.com/slides/java/com.aspose.slides/presentation Examples for changing slide dimensions, scaling content, and setting custom sizes. ```java Presentation pres = new Presentation("pres-4x3-aspect-ratio.pptx"); try { pres.getSlideSize().setSize(SlideSizeType.OnScreen16x9, SlideSizeScaleType.DoNotScale); pres.save("pres-4x3-aspect-ratio.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` ```java // Instantiate a Presentation object that represents a presentation file Presentation presentation = new Presentation("AccessSlides.pptx"); try { Presentation auxPresentation = new Presentation(); try { ISlide slide = presentation.getSlides().get_Item(0); // Set the slide size of generated presentations to that of source presentation.getSlideSize().setSize(540, 720, SlideSizeScaleType.EnsureFit); // Method SetSize is used for set slide size with scale content to ensure fit presentation.getSlideSize().setSize(SlideSizeType.A4Paper, SlideSizeScaleType.Maximize); // Method SetSize is used for set slide size with maximize size of content // Save Presentation to disk auxPresentation.save("Set_Size&Type_out.pptx", SaveFormat.Pptx); } finally { if (auxPresentation != null) auxPresentation.dispose(); } } finally { if (presentation != null) presentation.dispose(); } ``` ```java Presentation pres = new Presentation("pres.pptx"); try { pres.getSlideSize().setSize(780, 540, SlideSizeScaleType.DoNotScale); // A4 paper size pres.save("pres-a4-slide-size.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Create Default BlobManagementOptions Source: https://reference.aspose.com/slides/java/com.aspose.slides/blobmanagementoptions Initializes a new instance of the BlobManagementOptions class with default settings. Use this to start configuring BLOB handling. ```java public BlobManagementOptions() ``` -------------------------------- ### getCoordinates() Source: https://reference.aspose.com/slides/java/com.aspose.slides/portion Gets the starting coordinates of the portion, including bearings. ```APIDOC ## getCoordinates() ### Description Get coordinates of the beginning of the portion. The X coordinate of point represents the portion beginning from the first character including left side bearing. The Y coordinate includes top side bearing. ### Method GET ### Endpoint /websites/reference_aspose_slides_java/coordinates ### Response #### Success Response (200) - **coordinates** (Point2D.Float) - The starting coordinates of the portion. #### Response Example { "coordinates": { "x": 10.0, "y": 10.0 } } ``` -------------------------------- ### Initialize OutputFile Source: https://reference.aspose.com/slides/java/com.aspose.slides/outputfile Constructor for the OutputFile class. ```java public OutputFile() ``` -------------------------------- ### Get Audio CD Start Track - Aspose.Slides Java Source: https://reference.aspose.com/slides/java/com.aspose.slides/audioframe Retrieves the start track index for an audio CD. This is a read/write integer property. ```java public final int getAudioCdStartTrack() ``` -------------------------------- ### Obtain and Use Palette Colors from Theme Source: https://reference.aspose.com/slides/java/com.aspose.slides/shape This example demonstrates how to obtain palette colors from the main theme color and then use them in shapes. It shows applying different shades and tints of Accent 4 to various shapes. ```java Presentation pres = new Presentation(); try { ISlide slide = pres.getSlides().get_Item(0); // Accent 4 IShape shape1 = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 10, 50, 50); shape1.getFillFormat().setFillType(FillType.Solid); shape1.getFillFormat().getSolidFillColor().setSchemeColor(SchemeColor.Accent4); // Accent 4, Lighter 80% IShape shape2 = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 70, 50, 50); shape2.getFillFormat().setFillType(FillType.Solid); shape2.getFillFormat().getSolidFillColor().setSchemeColor(SchemeColor.Accent4); shape2.getFillFormat().getSolidFillColor().getColorTransform().add(ColorTransformOperation.MultiplyLuminance, 0.2f); shape2.getFillFormat().getSolidFillColor().getColorTransform().add(ColorTransformOperation.AddLuminance, 0.8f); // Accent 4, Lighter 60% IShape shape3 = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 130, 50, 50); shape3.getFillFormat().setFillType(FillType.Solid); shape3.getFillFormat().getSolidFillColor().setSchemeColor(SchemeColor.Accent4); shape3.getFillFormat().getSolidFillColor().getColorTransform().add(ColorTransformOperation.MultiplyLuminance, 0.4f); shape3.getFillFormat().getSolidFillColor().getColorTransform().add(ColorTransformOperation.AddLuminance, 0.6f); // Accent 4, Lighter 40% IShape shape4 = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 190, 50, 50); shape4.getFillFormat().setFillType(FillType.Solid); shape4.getFillFormat().getSolidFillColor().setSchemeColor(SchemeColor.Accent4); shape4.getFillFormat().getSolidFillColor().getColorTransform().add(ColorTransformOperation.MultiplyLuminance, 0.6f); shape4.getFillFormat().getSolidFillColor().getColorTransform().add(ColorTransformOperation.AddLuminance, 0.4f); // Accent 4, Darker 25% IShape shape5 = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 250, 50, 50); shape5.getFillFormat().setFillType(FillType.Solid); shape5.getFillFormat().getSolidFillColor().setSchemeColor(SchemeColor.Accent4); shape5.getFillFormat().getSolidFillColor().getColorTransform().add(ColorTransformOperation.MultiplyLuminance, 0.75f); // Accent 4, Darker 50% IShape shape6 = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 310, 50, 50); shape6.getFillFormat().setFillType(FillType.Solid); shape6.getFillFormat().getSolidFillColor().setSchemeColor(SchemeColor.Accent4); shape6.getFillFormat().getSolidFillColor().getColorTransform().add(ColorTransformOperation.MultiplyLuminance, 0.5f); pres.save("example_accent4.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Get Audio CD Start Track Time - Aspose.Slides Java Source: https://reference.aspose.com/slides/java/com.aspose.slides/audioframe Retrieves the start track time for an audio CD. This is a read/write integer property. ```java public final int getAudioCdStartTrackTime() ``` -------------------------------- ### Initialize MathParagraph with IMathBlock Source: https://reference.aspose.com/slides/java/com.aspose.slides/mathparagraph Demonstrates initializing a MathParagraph with an existing IMathBlock object. ```java MathParagraph mathParagraph = new MathParagraph(new MathBlock()); ``` -------------------------------- ### Get Starting Slide Source: https://reference.aspose.com/slides/java/com.aspose.slides/isection Returns the first slide belonging to the section. ```java public abstract ISlide getStartedFromSlide() ``` -------------------------------- ### Initialize PresentedBySpeaker Instance Source: https://reference.aspose.com/slides/java/com.aspose.slides/presentedbyspeaker Constructor definition for creating a new instance of the PresentedBySpeaker class. ```java public PresentedBySpeaker() ``` -------------------------------- ### Get Text Selection Start Position Source: https://reference.aspose.com/slides/java/com.aspose.slides/imoderncomment Retrieves the starting position of text selection within a text frame for comments associated with AutoShapes. This is a read/write property. ```java public abstract int getTextSelectionStart() ``` -------------------------------- ### Get Position Source: https://reference.aspose.com/slides/java/com.aspose.slides/drawingguide Retrieves the position of the drawing guide in points from the top-left corner of the slide. ```java public final float getPosition() ``` -------------------------------- ### setUpperLimit(IMathElement limit) / setUpperLimit(String limit) Source: https://reference.aspose.com/slides/java/com.aspose.slides/imathelement Takes an upper limit for a mathematical element. ```APIDOC ## setUpperLimit(IMathElement limit) / setUpperLimit(String limit) ### Description Takes upper limit. ### Parameters #### Path Parameters - **limit** (IMathElement or java.lang.String) - Required - limit ### Response - **Returns** (IMathLimit) - New instance of type IMathLimit ``` -------------------------------- ### Initialize and Set License from File Source: https://reference.aspose.com/slides/java/com.aspose.slides/license Initializes the License class and sets the license from a file named MyLicense.lic. The component searches for the license file in multiple locations. ```java License license = new License(); license.setLicense("MyLicense.lic"); ``` -------------------------------- ### Get Item ID Source: https://reference.aspose.com/slides/java/com.aspose.slides/customxmlpart Retrieves the unique GUID identifier for the custom XML part. ```java public final UUID getItemId() ``` -------------------------------- ### Video Trimming Source: https://reference.aspose.com/slides/java/com.aspose.slides/ivideoframe Methods to get and set the start and end times for video trimming. ```APIDOC ## GET /api/videoframe/trimfromstart ### Description Retrieves the trim start time in milliseconds for the video. ### Method GET ### Endpoint /api/videoframe/trimfromstart ### Response #### Success Response (200) - **trimFromStart** (float) - The trim start time in milliseconds. #### Response Example ```json { "trimFromStart": 1000.0 } ``` ## POST /api/videoframe/trimfromstart ### Description Sets the trim start time in milliseconds for the video. ### Method POST ### Endpoint /api/videoframe/trimfromstart ### Parameters #### Request Body - **value** (float) - Required - The trim start time in milliseconds. ### Request Example ```json { "value": 1500.0 } ``` ### Response #### Success Response (200) - **message** (string) - Confirmation message. #### Response Example ```json { "message": "Trim start time set successfully." } ``` ## GET /api/videoframe/trimfromend ### Description Retrieves the trim end time in milliseconds for the video. ### Method GET ### Endpoint /api/videoframe/trimfromend ### Response #### Success Response (200) - **trimFromEnd** (float) - The trim end time in milliseconds. #### Response Example ```json { "trimFromEnd": 2000.0 } ``` ## POST /api/videoframe/trimfromend ### Description Sets the trim end time in milliseconds for the video. ### Method POST ### Endpoint /api/videoframe/trimfromend ### Parameters #### Request Body - **value** (float) - Required - The trim end time in milliseconds. ### Request Example ```json { "value": 2500.0 } ``` ### Response #### Success Response (200) - **message** (string) - Confirmation message. #### Response Example ```json { "message": "Trim end time set successfully." } ``` ``` -------------------------------- ### Initialize WebDocumentOptions Source: https://reference.aspose.com/slides/java/com.aspose.slides/webdocumentoptions Constructor for creating a new instance of WebDocumentOptions. ```java public WebDocumentOptions() ``` -------------------------------- ### BrowsedAtKiosk Constructor Source: https://reference.aspose.com/slides/java/com.aspose.slides/browsedatkiosk Initializes a new instance of the BrowsedAtKiosk class. ```APIDOC ## BrowsedAtKiosk() ### Description Initializes a new instance of the `BrowsedAtKiosk` class. ### Method `public BrowsedAtKiosk()` ### Usage Example ```java Presentation pres = new Presentation(); try { pres.getSlideShowSettings().setSlideShowType(new BrowsedAtKiosk()); pres.save("pres.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); } ``` ``` -------------------------------- ### Manage First Slide Number Source: https://reference.aspose.com/slides/java/com.aspose.slides/ipresentation Gets or sets the starting slide number for the presentation. ```java public abstract int getFirstSlideNumber() ``` ```java public abstract void setFirstSlideNumber(int value) ``` -------------------------------- ### Get Function Name Source: https://reference.aspose.com/slides/java/com.aspose.slides/imathfunction Retrieves the name of the mathematical function. For example, 'sin' or 'cos'. ```java IMathFunction func = new MathematicalText("sin").function("x"); IMathElement funcName = func.getName(); ``` -------------------------------- ### Embed and Add Audio Frame using Java Source: https://reference.aspose.com/slides/java/com.aspose.slides/shapecollection Example demonstrating how to embed a WAV audio file into a presentation and add it as an audio frame. It sets the playback mode and volume. ```java Presentation pres = new Presentation(); try { ISlide sld = pres.getSlides().get_Item(0); FileInputStream fstr = new FileInputStream("sampleaudio.wav"); try { IAudioFrame audioFrame = sld.getShapes().addAudioFrameEmbedded(50, 150, 100, 100, fstr); audioFrame.setPlayMode(AudioPlayModePreset.Auto); audioFrame.setVolume(AudioVolumeMode.Loud); } finally { if (fstr != null) fstr.close(); } pres.save("AudioFrameEmbed_out.pptx", SaveFormat.Pptx); } catch(IOException e) { } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Read Presentation from File with Options Source: https://reference.aspose.com/slides/java/com.aspose.slides/presentationfactory Read an existing presentation from a file path, applying specified load options during the process. ```java public final IPresentation readPresentation(String file, ILoadOptions options) ``` -------------------------------- ### Get Effective Line Format - Aspose.Slides Java Source: https://reference.aspose.com/slides/java/com.aspose.slides/lineformat Retrieves effective line formatting data with inheritance applied. This example shows how to get properties like style, width, and fill type. ```java Presentation pres = new Presentation("MyPresentation.pptx"); try { ILineFormatEffectiveData effectiveLineFormat = pres.getSlides().get_Item(0).getShapes().get_Item(0).getLineFormat().getEffective(); System.out.println("Style: " + effectiveLineFormat.getStyle()); System.out.println("Width: " + effectiveLineFormat.getWidth()); System.out.println("Fill type: " + effectiveLineFormat.getFillFormat().getFillType()); } finally { if (pres != null) pres.dispose(); } ``` -------------------------------- ### Get Root Directory CLSID Source: https://reference.aspose.com/slides/java/com.aspose.slides/ipptoptions Retrieves the object class GUID stored in the root directory entry. ```java public abstract UUID getRootDirectoryClsid() ```