Skip to content

Commit ccfd331

Browse files
committed
Aspose.Slides for Java 25.11 API references
1 parent b300601 commit ccfd331

File tree

35 files changed

+820
-1407
lines changed

35 files changed

+820
-1407
lines changed

content/java/english/com.aspose.slides/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ url: /com.aspose.slides/
376376
| [MathNaryOperatorTypes](../com.aspose.slides/mathnaryoperatortypes) | Nary operator IMathNaryOperator types (excluding integrals) For integrals [MathIntegralTypes](../com.aspose.slides/mathintegraltypes) |
377377
| [MathParagraph](../com.aspose.slides/mathparagraph) | Mathematical paragraph that is a container for mathematical blocks (IMathBlock) |
378378
| [MathParagraphFactory](../com.aspose.slides/mathparagraphfactory) | Allows to create a math paragraph |
379+
| [MathPhantom](../com.aspose.slides/mathphantom) | Represents a phantom math object (<m:phant>) that affects the layout of its child element without necessarily displaying it. |
379380
| [MathPortion](../com.aspose.slides/mathportion) | Represents a portion with mathematical context inside. |
380381
| [MathRadical](../com.aspose.slides/mathradical) | Specifies the radical function, consisting of a base, and an optional degree. |
381382
| [MathRadicalFactory](../com.aspose.slides/mathradicalfactory) | Allows to create math radical |
@@ -976,6 +977,7 @@ url: /com.aspose.slides/
976977
| [IMathNaryOperatorProperties](../com.aspose.slides/imathnaryoperatorproperties) | Specifies properties of IMathNaryOperator |
977978
| [IMathParagraph](../com.aspose.slides/imathparagraph) | Mathematical paragraph that is a container for mathematical blocks (IMathBlock) |
978979
| [IMathParagraphFactory](../com.aspose.slides/imathparagraphfactory) | Allows to create a math paragraph |
980+
| [IMathPhantom](../com.aspose.slides/imathphantom) | Represents a phantom math object (<m:phant>) that affects the layout of its child element without necessarily displaying it. |
979981
| [IMathPortion](../com.aspose.slides/imathportion) | Represents a portion with mathematical context inside. |
980982
| [IMathRadical](../com.aspose.slides/imathradical) | Specifies the radical function, consisting of a base, and an optional degree. |
981983
| [IMathRadicalFactory](../com.aspose.slides/imathradicalfactory) | Allows to create math radical |
@@ -997,7 +999,6 @@ url: /com.aspose.slides/
997999
| [INormalViewProperties](../com.aspose.slides/inormalviewproperties) | Represents normal view properties. |
9981000
| [INormalViewRestoredProperties](../com.aspose.slides/inormalviewrestoredproperties) | Specifies the sizing of the slide region ((width when a child of restoredTop, height when a child of restoredLeft) of the normal view, when the region is of a variable restored size(neither minimized nor maximized). |
9991001
| [INotImplementedWarningInfo](../com.aspose.slides/inotimplementedwarninginfo) | Represents a warning about known not implemented feature which won't be implemented in the near future. |
1000-
| [INotesCommentsLayoutingOptions](../com.aspose.slides/inotescommentslayoutingoptions) | Provides options that control the look of layouting of notes and comments in exported document. |
10011002
| [INotesSize](../com.aspose.slides/inotessize) | Represents a size of notes slide. |
10021003
| [INotesSlide](../com.aspose.slides/inotesslide) | Represents a notes slide in a presentation. |
10031004
| [INotesSlideHeaderFooterManager](../com.aspose.slides/inotesslideheaderfootermanager) | Represents manager which holds behavior of the notes slide placeholders, including header placeholder. |

content/java/english/com.aspose.slides/fontsmanager/_index.md

Lines changed: 48 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,23 @@ Manages fonts across the presentation.
2121
> ```
2222
> The following example shows how to add embedded fonts to PowerPoint Presentation.
2323
>
24+
> [C#]
2425
> // Load presentation
25-
> Presentation pres = new Presentation("Fonts.pptx");
26-
> try {
27-
> // Load source font to be replaced
28-
> IFontData sourceFont = new FontData("Arial");
29-
> IFontData[] allFonts = pres.getFontsManager().getFonts();
30-
> for (IFontData font : allFonts)
31-
> {
32-
> boolean fontAlreadyEmbedded = false;
33-
> IFontData[] embeddedFonts = pres.getFontsManager().getEmbeddedFonts();
34-
> for (int i = 0; i < embeddedFonts.length; i++)
35-
> {
36-
> if (embeddedFonts[i].equals(font))
37-
> {
38-
> fontAlreadyEmbedded = true;
39-
> break;
40-
> }
41-
> }
42-
> if (!fontAlreadyEmbedded) {
43-
> pres.getFontsManager().addEmbeddedFont(font, EmbedFontCharacters.All);
44-
> }
45-
> }
46-
> // Save the presentation
47-
> pres.save("AddEmbeddedFont_out.pptx", SaveFormat.Pptx);
48-
> } finally {
49-
> if (pres != null) pres.dispose();
26+
> using (Presentation presentation = new Presentation("Fonts.pptx"))
27+
> {
28+
> // Load source font to be replaced
29+
> IFontData sourceFont = new FontData("Arial");
30+
> IFontData[] allFonts = presentation.FontsManager.GetFonts();
31+
> IFontData[] embeddedFonts = presentation.FontsManager.GetEmbeddedFonts();
32+
> foreach (IFontData font in allFonts)
33+
> {
34+
> if (!embeddedFonts.Contains(font))
35+
> {
36+
> presentation.FontsManager.AddEmbeddedFont(font, EmbedFontCharacters.All);
37+
> }
38+
> }
39+
> // Save the presentation
40+
> presentation.Save("AddEmbeddedFont_out.pptx", SaveFormat.Pptx);
5041
> }
5142
> ```
5243
## Methods
@@ -59,6 +50,7 @@ Manages fonts across the presentation.
5950
| [setFontFallBackRulesCollection(IFontFallBackRulesCollection value)](#setFontFallBackRulesCollection-com.aspose.slides.IFontFallBackRulesCollection-) | Represents a user's collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality Read/write [IFontFallBackRulesCollection](../../com.aspose.slides/ifontfallbackrulescollection). |
6051
| [getFonts()](#getFonts--) | Returns the fonts used in the presentation |
6152
| [getSubstitutions()](#getSubstitutions--) | Gets the information about fonts that will be replaced on the presentation's rendering. |
53+
| [getSubstitutions(int[] slides)](#getSubstitutions-int---) | Gets the information about fonts that will be replaced during rendering of the specified slides. |
6254
| [getEmbeddedFonts()](#getEmbeddedFonts--) | Returns the fonts embedded in the presentation |
6355
| [removeEmbeddedFont(IFontData fontData)](#removeEmbeddedFont-com.aspose.slides.IFontData-) | Removes the embedded font |
6456
| [addEmbeddedFont(IFontData fontData, int embedFontRule)](#addEmbeddedFont-com.aspose.slides.IFontData-int-) | Adds the embedded font |
@@ -194,6 +186,36 @@ Gets the information about fonts that will be replaced on the presentation's ren
194186
195187
**Returns:**
196188
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.slides.FontSubstitutionInfo> - Collection of all fonts substitution [FontSubstitutionInfo](../../com.aspose.slides/fontsubstitutioninfo).
189+
### getSubstitutions(int[] slides) {#getSubstitutions-int---}
190+
```
191+
public final System.Collections.Generic.IGenericEnumerable<FontSubstitutionInfo> getSubstitutions(int[] slides)
192+
```
193+
194+
195+
Gets the information about fonts that will be replaced during rendering of the specified slides.
196+
197+
--------------------
198+
199+
> ```
200+
> Presentation pres = new Presentation("pres.pptx");
201+
> try {
202+
> int[] targetSlides = { 1, 2, 5 };
203+
> for (FontSubstitutionInfo fontSubstitution : pres.getFontsManager().getSubstitutions(targetSlides))
204+
> {
205+
> System.out.println(fontSubstitution.getOriginalFontName() + " -> " + fontSubstitution.getSubstitutedFontName());
206+
> }
207+
> } finally {
208+
> if (pres != null) pres.dispose();
209+
> }
210+
> ```
211+
212+
**Parameters:**
213+
| Parameter | Type | Description |
214+
| --- | --- | --- |
215+
| slides | int[] | An array of slide indexes for which to retrieve font substitution information, starting from 1. |
216+
217+
**Returns:**
218+
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.slides.FontSubstitutionInfo> - A collection of all font substitutions ([FontSubstitutionInfo](../../com.aspose.slides/fontsubstitutioninfo)) for the specified slides.
197219
### getEmbeddedFonts() {#getEmbeddedFonts--}
198220
```
199221
public final IFontData[] getEmbeddedFonts()
@@ -310,7 +332,7 @@ Retrieves the byte array representing the font data for a specified font style a
310332
**Parameters:**
311333
| Parameter | Type | Description |
312334
| --- | --- | --- |
313-
| fontData | [IFontData](../../com.aspose.slides/ifontdata) | The font data object containing the information about the font [FontData](../../com.aspose.slides/fontdata). |
335+
| fontData | [IFontData](../../com.aspose.slides/ifontdata) | The font data object containing the information about the font [IFontData](../../com.aspose.slides/ifontdata). |
314336
| fontStyle | int | The style of the font for which the data is to be retrieved [FontStyleType](../../com.aspose.slides/fontstyletype). |
315337
316338
**Returns:**

content/java/english/com.aspose.slides/html5options/_index.md

Lines changed: 2 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ Represents a HTML5 exporting options.
4949
| [setEmbedImages(boolean value)](#setEmbedImages-boolean-) | Returns or sets images embedding option. |
5050
| [getOutputPath()](#getOutputPath--) | Determines where external resources should be stored. |
5151
| [setOutputPath(String value)](#setOutputPath-java.lang.String-) | Determines where external resources should be stored. |
52-
| [getNotesCommentsLayouting()](#getNotesCommentsLayouting--) | Provides options that control how notes and comments is placed in exported document. |
53-
| [setNotesCommentsLayouting(INotesCommentsLayoutingOptions value)](#setNotesCommentsLayouting-com.aspose.slides.INotesCommentsLayoutingOptions-) | Provides options that control how notes and comments is placed in exported document. |
5452
| [getDisableFontLigatures()](#getDisableFontLigatures--) | Gets or sets a value indicating whether text is rendered without using ligatures. |
5553
| [setDisableFontLigatures(boolean value)](#setDisableFontLigatures-boolean-) | Gets or sets a value indicating whether text is rendered without using ligatures. |
5654
| [getSlidesLayoutOptions()](#getSlidesLayoutOptions--) | Gets or sets the mode in which slides are placed on the page when exporting a presentation [ISlidesLayoutOptions](../../com.aspose.slides/islideslayoutoptions). |
@@ -179,7 +177,7 @@ public final boolean getEmbedImages()
179177
```
180178
181179
182-
Returns or sets images embedding option. Read/write boolean .
180+
Returns or sets images embedding option. Read/write boolean.
183181
184182
--------------------
185183
@@ -204,7 +202,7 @@ public final void setEmbedImages(boolean value)
204202
```
205203
206204
207-
Returns or sets images embedding option. Read/write boolean .
205+
Returns or sets images embedding option. Read/write boolean.
208206
209207
--------------------
210208
@@ -281,69 +279,6 @@ Determines where external resources should be stored. Read/write String.
281279
| --- | --- | --- |
282280
| value | java.lang.String | |
283281
284-
### getNotesCommentsLayouting() {#getNotesCommentsLayouting--}
285-
```
286-
public final INotesCommentsLayoutingOptions getNotesCommentsLayouting()
287-
```
288-
289-
290-
Provides options that control how notes and comments is placed in exported document. Read/write [INotesCommentsLayoutingOptions](../../com.aspose.slides/inotescommentslayoutingoptions).
291-
292-
--------------------
293-
294-
> ```
295-
> Example:
296-
>
297-
> Presentation pres = new Presentation("test.pptx");
298-
> try {
299-
> NotesCommentsLayoutingOptions notesCommentsLayoutingOptions = new NotesCommentsLayoutingOptions();
300-
> notesCommentsLayoutingOptions.setNotesPosition(NotesPositions.BottomTruncated);
301-
>
302-
> Html5Options html5Options = new Html5Options();
303-
> html5Options.setOutputPath("test_pptx");
304-
> html5Options.setNotesCommentsLayouting(notesCommentsLayoutingOptions);
305-
>
306-
> pres.save("index.html", SaveFormat.Html5, html5Options);
307-
> } finally {
308-
> if (pres != null) pres.dispose();
309-
> }
310-
> ```
311-
312-
**Returns:**
313-
[INotesCommentsLayoutingOptions](../../com.aspose.slides/inotescommentslayoutingoptions)
314-
### setNotesCommentsLayouting(INotesCommentsLayoutingOptions value) {#setNotesCommentsLayouting-com.aspose.slides.INotesCommentsLayoutingOptions-}
315-
```
316-
public final void setNotesCommentsLayouting(INotesCommentsLayoutingOptions value)
317-
```
318-
319-
320-
Provides options that control how notes and comments is placed in exported document. Read/write [INotesCommentsLayoutingOptions](../../com.aspose.slides/inotescommentslayoutingoptions).
321-
322-
--------------------
323-
324-
> ```
325-
> Example:
326-
>
327-
> Presentation pres = new Presentation("test.pptx");
328-
> try {
329-
> NotesCommentsLayoutingOptions notesCommentsLayoutingOptions = new NotesCommentsLayoutingOptions();
330-
> notesCommentsLayoutingOptions.setNotesPosition(NotesPositions.BottomTruncated);
331-
>
332-
> Html5Options html5Options = new Html5Options();
333-
> html5Options.setOutputPath("test_pptx");
334-
> html5Options.setNotesCommentsLayouting(notesCommentsLayoutingOptions);
335-
>
336-
> pres.save("index.html", SaveFormat.Html5, html5Options);
337-
> } finally {
338-
> if (pres != null) pres.dispose();
339-
> }
340-
> ```
341-
342-
**Parameters:**
343-
| Parameter | Type | Description |
344-
| --- | --- | --- |
345-
| value | [INotesCommentsLayoutingOptions](../../com.aspose.slides/inotescommentslayoutingoptions) | |
346-
347282
### getDisableFontLigatures() {#getDisableFontLigatures--}
348283
```
349284
public final boolean getDisableFontLigatures()

content/java/english/com.aspose.slides/ifontsmanager/_index.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Manages fonts across the presentation.
1919
| [setFontFallBackRulesCollection(IFontFallBackRulesCollection value)](#setFontFallBackRulesCollection-com.aspose.slides.IFontFallBackRulesCollection-) | Represents a user's collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality Read/write [IFontFallBackRulesCollection](../../com.aspose.slides/ifontfallbackrulescollection). |
2020
| [getFonts()](#getFonts--) | Returns the fonts used in the presentation |
2121
| [getSubstitutions()](#getSubstitutions--) | Gets the information about fonts that will be replaced on the presentation's rendering. |
22+
| [getSubstitutions(int[] slides)](#getSubstitutions-int---) | Gets the information about fonts that will be replaced during rendering of the specified slides. |
2223
| [getEmbeddedFonts()](#getEmbeddedFonts--) | Returns the fonts embedded in the presentation |
2324
| [removeEmbeddedFont(IFontData fontData)](#removeEmbeddedFont-com.aspose.slides.IFontData-) | Removes the embedded font |
2425
| [addEmbeddedFont(IFontData fontData, int embedFontRule)](#addEmbeddedFont-com.aspose.slides.IFontData-int-) | Adds the embedded font. |
@@ -154,6 +155,36 @@ Gets the information about fonts that will be replaced on the presentation's ren
154155

155156
**Returns:**
156157
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.slides.FontSubstitutionInfo> - Collection of all fonts substitution [FontSubstitutionInfo](../../com.aspose.slides/fontsubstitutioninfo).
158+
### getSubstitutions(int[] slides) {#getSubstitutions-int---}
159+
```
160+
public abstract System.Collections.Generic.IGenericEnumerable<FontSubstitutionInfo> getSubstitutions(int[] slides)
161+
```
162+
163+
164+
Gets the information about fonts that will be replaced during rendering of the specified slides.
165+
166+
--------------------
167+
168+
> ```
169+
> Presentation pres = new Presentation("pres.pptx");
170+
> try {
171+
> int[] targetSlides = { 1, 2, 5 };
172+
> for (FontSubstitutionInfo fontSubstitution : pres.getFontsManager().getSubstitutions(targetSlides))
173+
> {
174+
> System.out.println(fontSubstitution.getOriginalFontName() + " -> " + fontSubstitution.getSubstitutedFontName());
175+
> }
176+
> } finally {
177+
> if (pres != null) pres.dispose();
178+
> }
179+
> ```
180+
181+
**Parameters:**
182+
| Parameter | Type | Description |
183+
| --- | --- | --- |
184+
| slides | int[] | An array of slide indexes for which to retrieve font substitution information, starting from 1. |
185+
186+
**Returns:**
187+
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.slides.FontSubstitutionInfo> - A collection of all font substitutions ([FontSubstitutionInfo](../../com.aspose.slides/fontsubstitutioninfo)) for the specified slides.
157188
### getEmbeddedFonts() {#getEmbeddedFonts--}
158189
```
159190
public abstract IFontData[] getEmbeddedFonts()

content/java/english/com.aspose.slides/ihtml5options/_index.md

Lines changed: 2 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ Represents a HTML5 exporting options.
4141
| [setEmbedImages(boolean value)](#setEmbedImages-boolean-) | Returns or sets images embedding option. |
4242
| [getOutputPath()](#getOutputPath--) | Determines where external resources should be stored. |
4343
| [setOutputPath(String value)](#setOutputPath-java.lang.String-) | Determines where external resources should be stored. |
44-
| [getNotesCommentsLayouting()](#getNotesCommentsLayouting--) | Provides options that control how notes and comments is placed in exported document. |
45-
| [setNotesCommentsLayouting(INotesCommentsLayoutingOptions value)](#setNotesCommentsLayouting-com.aspose.slides.INotesCommentsLayoutingOptions-) | Provides options that control how notes and comments is placed in exported document. |
4644
| [getDisableFontLigatures()](#getDisableFontLigatures--) | Gets or sets a value indicating whether text is rendered without using ligatures. |
4745
| [setDisableFontLigatures(boolean value)](#setDisableFontLigatures-boolean-) | Gets or sets a value indicating whether text is rendered without using ligatures. |
4846
| [getSlidesLayoutOptions()](#getSlidesLayoutOptions--) | Gets or sets the mode in which slides are placed on the page when exporting a presentation [ISlidesLayoutOptions](../../com.aspose.slides/islideslayoutoptions). |
@@ -163,7 +161,7 @@ public abstract boolean getEmbedImages()
163161
```
164162
165163
166-
Returns or sets images embedding option. Read/write boolean .
164+
Returns or sets images embedding option. Read/write boolean.
167165
168166
--------------------
169167
@@ -188,7 +186,7 @@ public abstract void setEmbedImages(boolean value)
188186
```
189187
190188
191-
Returns or sets images embedding option. Read/write boolean .
189+
Returns or sets images embedding option. Read/write boolean.
192190
193191
--------------------
194192
@@ -265,69 +263,6 @@ Determines where external resources should be stored. Read/write String.
265263
| --- | --- | --- |
266264
| value | java.lang.String | |
267265
268-
### getNotesCommentsLayouting() {#getNotesCommentsLayouting--}
269-
```
270-
public abstract INotesCommentsLayoutingOptions getNotesCommentsLayouting()
271-
```
272-
273-
274-
Provides options that control how notes and comments is placed in exported document. Read/write [INotesCommentsLayoutingOptions](../../com.aspose.slides/inotescommentslayoutingoptions).
275-
276-
--------------------
277-
278-
> ```
279-
> Example:
280-
>
281-
> Presentation pres = new Presentation("test.pptx");
282-
> try {
283-
> NotesCommentsLayoutingOptions notesCommentsLayoutingOptions = new NotesCommentsLayoutingOptions();
284-
> notesCommentsLayoutingOptions.setNotesPosition(NotesPositions.BottomTruncated);
285-
>
286-
> Html5Options html5Options = new Html5Options();
287-
> html5Options.setOutputPath("test_pptx");
288-
> html5Options.setNotesCommentsLayouting(notesCommentsLayoutingOptions);
289-
>
290-
> pres.save("index.html", SaveFormat.Html5, html5Options);
291-
> } finally {
292-
> if (pres != null) pres.dispose();
293-
> }
294-
> ```
295-
296-
**Returns:**
297-
[INotesCommentsLayoutingOptions](../../com.aspose.slides/inotescommentslayoutingoptions)
298-
### setNotesCommentsLayouting(INotesCommentsLayoutingOptions value) {#setNotesCommentsLayouting-com.aspose.slides.INotesCommentsLayoutingOptions-}
299-
```
300-
public abstract void setNotesCommentsLayouting(INotesCommentsLayoutingOptions value)
301-
```
302-
303-
304-
Provides options that control how notes and comments is placed in exported document. Read/write [INotesCommentsLayoutingOptions](../../com.aspose.slides/inotescommentslayoutingoptions).
305-
306-
--------------------
307-
308-
> ```
309-
> Example:
310-
>
311-
> Presentation pres = new Presentation("test.pptx");
312-
> try {
313-
> NotesCommentsLayoutingOptions notesCommentsLayoutingOptions = new NotesCommentsLayoutingOptions();
314-
> notesCommentsLayoutingOptions.setNotesPosition(NotesPositions.BottomTruncated);
315-
>
316-
> Html5Options html5Options = new Html5Options();
317-
> html5Options.setOutputPath("test_pptx");
318-
> html5Options.setNotesCommentsLayouting(notesCommentsLayoutingOptions);
319-
>
320-
> pres.save("index.html", SaveFormat.Html5, html5Options);
321-
> } finally {
322-
> if (pres != null) pres.dispose();
323-
> }
324-
> ```
325-
326-
**Parameters:**
327-
| Parameter | Type | Description |
328-
| --- | --- | --- |
329-
| value | [INotesCommentsLayoutingOptions](../../com.aspose.slides/inotescommentslayoutingoptions) | |
330-
331266
### getDisableFontLigatures() {#getDisableFontLigatures--}
332267
```
333268
public abstract boolean getDisableFontLigatures()

0 commit comments

Comments
 (0)