Skip to content

Commit 418cb7f

Browse files
Updated examples
1 parent cffbb27 commit 418cb7f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Examples/src/main/java/com/groupdocs/conversion/examples/advanced_usage/loading/load_options_by_document_type/presentation/ConvertPresentationBySpecifyingFontSubstitution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static void run() {
1919
List<FontSubstitute> fontSubstitutes = new ArrayList<FontSubstitute>();
2020
fontSubstitutes.add(FontSubstitute.create("Tahoma", "Arial"));
2121
fontSubstitutes.add(FontSubstitute.create("Times New Roman", "Arial"));
22-
loadOptions.setDefaultFont("Helvetica");
22+
loadOptions.setDefaultFont("resources/fonts/Helvetica.ttf");
2323
loadOptions.setFontSubstitutes(fontSubstitutes);
2424
Converter converter = new Converter(Constants.PPTX_WITH_NOTES, loadOptions);
2525
PdfConvertOptions options = new PdfConvertOptions();

Examples/src/main/java/com/groupdocs/conversion/examples/advanced_usage/loading/load_options_by_document_type/spreadsheet/ConvertSpreadsheetBySpecifyingFontsubstitution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static void run() {
1919
List<FontSubstitute> fontSubstitutes = new ArrayList<FontSubstitute>();
2020
fontSubstitutes.add(FontSubstitute.create("Tahoma", "Arial"));
2121
fontSubstitutes.add(FontSubstitute.create("Times New Roman", "Arial"));
22-
loadOptions.setDefaultFont("Helvetica");
22+
loadOptions.setDefaultFont("resources/fonts/Helvetica.ttf");
2323
loadOptions.setOnePagePerSheet(true);
2424
loadOptions.setFontSubstitutes(fontSubstitutes);
2525
Converter converter = new Converter(Constants.SAMPLE_XLSX, loadOptions);

Examples/src/main/java/com/groupdocs/conversion/examples/advanced_usage/loading/load_options_by_document_type/word_processing/ConvertWordProcessingBySpecifyingFontSubstitution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void run() {
1717
String convertedFile = Constants.getConvertedPath("ConvertWordProcessingBySpecifyingFontSubstitution.pdf");
1818
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions();
1919
loadOptions.setAutoFontSubstitution(false);
20-
loadOptions.setDefaultFont("Helvetica");
20+
loadOptions.setDefaultFont("resources/fonts/Helvetica.ttf");
2121
List<FontSubstitute> fontSubstitutes = new ArrayList<FontSubstitute>();
2222
fontSubstitutes.add(FontSubstitute.create("Tahoma", "Arial"));
2323
fontSubstitutes.add(FontSubstitute.create("Times New Roman", "Arial"));

0 commit comments

Comments
 (0)