GroupDocs.Conversion for Java 19.6 Release Notes

Major Features 

This regular monthly release contains 5+ new features, improvements and bug fixes. Most notable are: 

  • Implemented conversion improvement when converting Svg to Slides
  • Conversions from Vcf
  • Added support for setting watermark as background when converting to image
  • Saving converted document to file returns the file name and size
  • Fixed bug where Footnote page numbers only render the first digit
  • Fixed bug where PowerPoint with black SmartArt Text gets changed into white text when converted to a PDF
  • Fixed bug where was inconsistent conversion from email file formats when converting to Cells

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
CONVERSIONNET‑2862Implement conversion from VcfFeature
CONVERSIONNET‑2830Implement conversion improvement when converting Svg to SlidesImprovement
CONVERSIONNET‑2878Add support for setting watermark as background when converting to imageImprovement
CONVERSIONNET‑2881Save converted document to file should return the file name and sizeImprovement
CONVERSIONNET‑2863Issue with conversion .docx (with table of content) to .htmlFix
CONVERSIONNET‑2864Conversion .pdf to .png (or .jpeg) with watermark as background issueFix
CONVERSIONNET‑2871Inconsistent conversion from email file formats when converting to CellsFix
CONVERSIONNET‑2876Receiving Aspose.Pdf.InvalidValueFormatException when converting a PDF fileFix
CONVERSIONJAVA‑543Footnote page numbers only render the first digitFix
CONVERSIONJAVA‑468PowerPoint with black SmartArt Text gets changed into white text when converted to a PDFFix

Public API and Backward Incompatible Changes

  1. ** Removed obsolete package com.groupdocs.conversion.converter.option**

    All **LoadOptions **and SaveOptions classes removed from package com.groupDocs.conversion.converter.option.
    LoadOptions classes are now in com.groupdocs.conversion.options.load package.
    SaveOptions classes are now in com.g
    roupdocs.conversion.options.save
     package.

  2. Save converted document returns saved file name and size

    /**
     * <p>
     * Class for handling converted document
     * </p>
     */
    public final class ConvertedDocument implements IDisposable {
     /**
     * <p>
     * Save converted document to stream
     * </p>
     *
     * @param stream
     */
     public SaveInfo save(GroupDocsOutputStream stream) {
     ....
    
     /**
     * <p>
     * Save specific page from converted document to stream
     * </p>
     *
     * @param stream
     * @param page
     */
     public SaveInfo save(GroupDocsOutputStream stream, int page) {
     ....
    

    Usage

    ...
    ConversionConfig config = new ConversionConfig();
    ConversionHandler conversionHandler = new ConversionHandler(config);
    String source = "source.docx";
    PdfSaveOptions saveOptions = new PdfSaveOptions();
    ConvertedDocument convertedDocument = conversionHandler.convert(source, saveOptions);
    SaveInfo saveInfo = convertedDocument.save("converted", 1);
    System.out.println(String.format("Page 1 file size: %d", saveInfo.getSize()));
    System.out.println(String.format("Page 1 saved path: %s", saveInfo.getFileName()));
    
    ...