GroupDocs.Assembly for Java 19.8 Release Notes

Major Features

Supported saving of assembled Markdown documents to Word Processing formats and saving of assembled Word Processing documents and emails to Markdown.

Full List of Features Covering all Changes in this Release

KeySummaryCategory
ASSEMBLYNET-125 Support saving of assembled Markdown documents to Word Processing formats Feature 
ASSEMBLYNET-126 Support saving of assembled Word Processing documents to Markdown Feature 
ASSEMBLYNET-127 Support saving of assembled emails to Markdown Feature 

Public API and Backward Incompatible Changes 

Since version 19.8, the GroupDocs.Assembly provides abilities for saving of assembled Markdown documents to Word Processing formats and saving of assembled Word Processing documents and emails to Markdown. 

New members of FileFormat

Java

/**
  * Specifies the Markdown format.
  */
public static final int MARKDOWN;

Assembled Markdown Document to Word Processing Format 

Use Case: Saving an assembled Markdown document to a Word Processing format using file extension.

Java

final String description =
    "GroupDocs.Assembly for Java is a class library that enables you to generate documents in popular " +
    "office and email file formats based upon template documents and data obtained from various sources " +
    "including databases, XML, JSON, OData, objects of custom Java types, external documents, and more.";
     
DocumentAssembler assembler = new DocumentAssembler();
 
assembler.assembleDocument(
    "ReadMe.md",
    "ReadMe Out.docx",
    new DataSourceInfo("GroupDocs.Assembly for Java", "product"),
    new DataSourceInfo(description, "description"));

Assembled Word Processing Document or Email to Markdown

Use Case: Saving an assembled Word Processing document or email to Markdown using file extension.

Java

final String description =
    "GroupDocs.Assembly for Java is a class library that enables you to generate documents in popular " +
    "office and email file formats based upon template documents and data obtained from various sources " +
    "including databases, XML, JSON, OData, objects of custom Java types, external documents, and more.";
 
DocumentAssembler assembler = new DocumentAssembler();
 
assembler.assembleDocument(
    "ReadMe.docx",
    "ReadMe Out.md",
    new DataSourceInfo("GroupDocs.Assembly for Java", "product"),
    new DataSourceInfo(description, "description"));

Assembled Word Processing Document or Email to Markdown (Explicit)

Use Case: Saving an assembled Word Processing document or email to Markdown using explicit specifying.

Java

InputStream sourceStream = ...;
OutputStream targetStream = ...;
 
DataSourceInfo dataSourceInfo = new DataSourceInfo(...);
DocumentAssembler assembler = new DocumentAssembler();
 
assembler.assembleDocument(sourceStream, targetStream, new LoadSaveOptions(FileFormat.MARKDOWN), dataSourceInfo);