GroupDocs.Conversion for Java 17.10 Release Notes

Major Features

There are 4 new features, improvements and fixes in this regular monthly release. The most notable are:

  • Hide comments from Cells documents
  • Option to convert specific pages (e.g. 1,3,5) from source document
  • Simplifying the generated HTML markup
  • Fixed bug with fixed layout when converting to HTML
  • Major improvements in the public API. Note: no braking changes. The redundant methods are marked as obsolete and will be removed after 17.12.0 release
  • Improvement in diagram to HTML conversion
  • Improved conversion from SVG
  • Email to HTML conversion improvements
  • Converting from STL
  • Converting from IFC
  • Improved Cells to XPS conversions
  • Improved Slides to XPS conversions
  • Improved saving on the whole converted document as well as page by page saving functionallity
  • Watermark transparency set to 50% transparent by default
  • 9 bugs fixed

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONNET‑1999Hide comments for Cells documentsNew Feature
CONVERSIONNET‑1984Implement possibility to convert specific pagesNew Feature
CONVERSIONNET‑2170Implement conversion from STLNew Feature
CONVERSIONNET‑2171Implement conversion from IFCNew Feature
CONVERSIONNET‑2176Conversion of document containing images to RTF with “old readers” compatibilityNew Feature
CONVERSIONNET‑2003Simplify the generated HTML markupImprovement
CONVERSIONNET‑1841Convert Diagram to Html improvementsImprovement
CONVERSIONNET‑2044Conversion from SVG improvementImprovement
CONVERSIONNET‑2056Email to Html conversion improvementImprovement
CONVERSIONNET‑2072Improved public APIImprovement
CONVERSIONNET‑2108Improve document savers for saving complete document and save by pageImprovement
CONVERSIONNET‑2130Cells To XPS conversion improvementImprovement
CONVERSIONNET‑2152WatermarkOptions is instantiated default Width and Height of the watermarkImprovement
CONVERSIONNET‑2153Set default transparency of watermark to 0.5Improvement
CONVERSIONNET‑2155Slides To XPS conversion improvementImprovement
CONVERSIONNET‑2161Expose FileType and PagesCount properties in ConvertedDocument classImprovement
CONVERSIONNET‑2020Converting to Html with SaveOptions.FixedLayout=false always produce fixed layout html conversionFix
CONVERSIONNET‑1754PPTX to HTML Conversion - While converting pptx to html found improper text formatting of Header or missing textFix
CONVERSIONNET‑2042ImageSaveOptions.TiffOptions.Compression does not seem to workFix
CONVERSIONNET‑1755PPTX to HTML Conversion - Image without background converted with white background also white dot is added near Header TextFix
CONVERSIONNET‑809Images are missing when PDF is saved to EPUBFix
CONVERSIONNET‑1908Incorrect conversion from One to PdfFix
CONVERSIONNET‑2158PsdOptions does not have constrcutorFix
CONVERSIONNET‑2163Converting HTML with external resources produce wrong outputFix
CONVERSIONNET‑2167Pdf locked with modification password but without view password cannot be convertedFix
CONVERSIONJAVA‑143Conversion .html to .pdf doesn’t load .css and image resources from relative pathFix
CONVERSIONJAVA‑405Simplify the generated HTML markupFix
CONVERSIONJAVA‑442File extension for filetype is not reliableFix
CONVERSIONJAVA‑443Corrupted Jpeg scan component id definition. Cannot load imageFix

Public API and Backward Incompatible Changes

How to hide comments when converting from Cells

 String sourceFileName = "source.xlsx"; //TODO: Put the source filename here 

// Setup Conversion configuration
ConversionConfig conversionConfig = new ConversionConfig();
conversionConfig.setStoragePath(storagePath);
conversionConfig.setCachePath(cachePath);
conversionConfig.setOutputPath(outputPath); 

ConversionHandler conversionHandler = new ConversionHandler(conversionConfig); 

PdfSaveOptions options = new PdfSaveOptions();
options.setOutputType(OutputType.String);
options.setHideComments(true); 

ConvertedDocument result = conversionHandler.<String>convert(sourceFileName, options);
result.save(sourceFileName + "." + result.getFileType());

How to convert specific pages from source document

String sourceFileName = "DOCXsample.docx"; //TODO: Put the source filename here with more than 5 pages 

// Setup Conversion configuration
ConversionConfig conversionConfig = new ConversionConfig();
conversionConfig.setStoragePath(storagePath);
conversionConfig.setCachePath(cachePath);
conversionConfig.setOutputPath(outputPath); 

ConversionHandler conversionHandler = new ConversionHandler(conversionConfig); 

PdfSaveOptions options = new PdfSaveOptions();
options.setOutputType(OutputType.String);
ArrayList<Integer> arrayList = new ArrayList<Integer>();
arrayList.add(1);
arrayList.add(3);
arrayList.add(5);
options.setConvertPages(arrayList); 

ConvertedDocument result = conversionHandler.<String>convert(sourceFileName, options);
result.save(sourceFileName + "." + result.getFileType());

How to get simplified markup when converting to HTML

String sourceFileName = "DOCXsample.docx"; //TODO: Put the source filename here 

// Setup Conversion configuration
ConversionConfig conversionConfig = new ConversionConfig();
conversionConfig.setStoragePath(storagePath);
conversionConfig.setCachePath(cachePath);
conversionConfig.setOutputPath(outputPath); 

ConversionHandler conversionHandler = new ConversionHandler(conversionConfig); 

HtmlSaveOptions options = new HtmlSaveOptions();
options.setOutputType(OutputType.String);
options.setFixedLayout(false); 

ConvertedDocument result = conversionHandler.<String>convert(sourceFileName, options);
result.save(sourceFileName + "." + result.getFileType());