GroupDocs.Conversion for Java 17.7.1 Release Notes

Major Features

There are fixed 1 bug:

  • Single source file DOCX different outputs PDF on different platforms/environment

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONJAVA‑451Single source file DOCX different outputs PDF on different platforms/environmentFix

Public API and Backward Incompatible Changes

Single source file DOCX different outputs PDF on different platforms/environment

// In Fonts folder must be two fonts "Calibri.ttf" and "Cambria Math.ttf" 

String projectPath = new java.io.File("Data/").getAbsolutePath().replace("
", "/");
String storagePath = projectPath + "/Storage/";
String outputPath = projectPath + "/Output/";
String fontsPath = projectPath + "/Fonts/"; 

// Setup Conversion configuration
ConversionConfig conversionConfig = new ConversionConfig();
conversionConfig.setStoragePath(storagePath);
conversionConfig.setOutputPath(outputPath);
conversionConfig.getFontDirectories().add(fontsPath); 

// Instantiating the conversion handler
ConversionHandler conversionHandler = new ConversionHandler(conversionConfig);
PdfSaveOptions saveOption = new PdfSaveOptions();
saveOption.setOutputType(OutputType.String); 

// Set absolute path to file
String guid = "Assignment__2_7.1-7.3.docx";
String convertedDocumentPath = conversionHandler.<String>convert(guid, saveOption);