Docmosis-Java

Complete control of the Docmosis engine via the Java API.

Create PDF, Doc, DocX and HTML documents and reports from your Java application.

Full Control Java API

// create a PDF from myTemplate.doc
File templateFile = new File("myTemplate.doc");
File outputFile = new File("result.pdf");
DocumentProcessor.renderDoc(myTemplateFile, outputFile, buildData());

The Docmosis-Java API provides detailed control over all aspects of Docmosis including:

  • Docmosis Intialization - timing of start up and configuration settings
  • Template Management - locating and loading templates
  • Document Production - data provision, output formats, output destination
  • Reverse Engineering - dynamic extraction of template fields and structures

Architecture of Java API to create PDF, Doc, DocX

Embed Docmosis in your Java application.  Docmosis will start and manage the converter(s) - "Embedded Converter".  See: Docmosis-Java Code Samples - Simple Render.

To use Docmosis simply add the docmosis.jar to your application and create documents using the Java API.  In the simpliest case Docmosis will automatically start and manage the Converters on the server where your application is running.

Start by creating a template of your document using Microsoft Word or OpenOffice. Your application sends data to Docmosis - which Docmosis merges with the template to create PDF/Doc/DocX documents.

The full Java API can be downloaded or viewed online from our Java Resources page.

Start with DocumentProcessor.renderDoc.  Templates, that have been previously registered with the configured TemplateStore, can be merged with data to provide the output document.

Docmosis Converters

Architecture of Java API to create PDF, Doc, DocX

Distribute processing load by running converters on other servers - "Remote Converter".  Configure Docmosis to connect to the converter(s).  See: Docmosis-Java Code Samples - Remote Render.

Docmosis has been designed for high performance and load distribution with the ability to distribute processing load using the Docmosis Converters.  The Converters are seperate processes that are used by Docmosis and allow the finished document to be created as a PDF or Doc/DocX or HTML - or all three at once.

You can run remote Converters, on a separate server, and configure Docmosis to connect to the Converters over your network (as shown in the diagram above).

 

For a general overview of Docmosis start with How it Works -> Introducing Docmosis.

Start a Docmosis-Java Trial

System Requirements

  • Java 1.4 or later
  • OpenOffice or LibreOffice

In recent years LibreOffice has outpaced OpenOffice in adding new features and stability.

We find LibreOffice - "Still" often proves to be the best choice.

Resources

Downloads, Documentation and Code Samples for Docmosis Java can be found on our Java Resources page.