// Configuration and initialisation
Configuration config = new Configuration(licenseKey, site, path); SystemManager.initialise(config);// Create a data provider and add some “key”:”value” pairs
DataProviderBuilder dpb = new DataProviderBuilder();
dpb.add(“message”, “This docgen engine is working great!”)// Specify template and output files and formats
File templateFile = new File(“myTemplate.docx”);
File outputFile = new File(“result.pdf”);// Generate the document
DocumentProcessor.renderDoc(templateFile, outputFile, dpb.getDataProvider());
An API-First Approach
The integration with Java depends upon the product.
The Cloud or Tornado products:
- Use as a Web Service via a REST API.
- Send JSON or XML data using HTTPS POST.
- Data is merged with a template to generate a document.
- Generated documents can be: returned as a stream in the response; emailed; stored to AWS S3.
The Docmosis-Java product:
- A JAR file embedded in the Java application.
- Data provided as: JSON or XML (recommended); Delimited text; Java POJOs; Database queries.
- Write documents to File or OutputStream.
PDF Generation using Templates
How to create PDF files from Java.
- Create templates using Microsoft Word or LibreOffice Writer. No special plugins needed.
- Leverage these richly featured editors to: specify page size/margins; design headers and footers; format tables and lay out images; create bullet and numbered lists; add page numbering or table of contents.
- Add plain-text placeholders, just by typing, to control the position and behaviour of dynamic content.
- The Java application sends data to be merged with the template.
- Docmosis will: insert text/images into the body, headers and footers; conditionally add/remove any content; perform calculations; loop over repeating data to fill tables or lists; format data/numbers and much more.
- The generated document is converted to the PDF format and delivered as instructed.
Cloud | Tornado | Docmosis-Java |
---|---|---|
Suitable For | ||
Teams that prefer someone else to manage and monitor the infrastructure and ensure service availability. The easiest way to try Docmosis. Fastest way to complete proof of concept. |
Teams that already host, run and manage their own application servers. Easily switch between Cloud/Tornado during proof of concept by changing web service URL. Requires some setup to run the engine. |
Teams that have an approved Java stack to meet internal requirements. Moving from code-based PDF libraries so non-developers can contribute to document changes. Requires more detailed understanding when embedding in Java application. |
Common Features | ||
Create templates in DOCX (Microsoft Word) and ODT (LibreOffice Writer). Generate documents in PDF, DOCX, ODT and TXT formats. |
||
Hosting | ||
SaaS hosted using AWS. Processing occurs in user-controlled regions (US, EU, AU). Scales under load to provide a fast, high-availability and reliable service. Monitored 24/7 by our team with published:
|
Self-hosted stand-alone application. Options to run multi-threaded and distribute load over multiple servers.
|
Java Library that requires the installation of additional software dependencies. Options to run multi-threaded and distribute load over multiple servers. Configuration options to control:
|
Unique Features | ||
API includes template management features (Upload, List, Delete, Batch, etc.) Web Console where users can: upload templates/images; test document rendering; manage the account. With enterprise features:
|
Designed to run in a protected environment where network access is restricted. Store and source templates from:
|
Designed to run in a protected environment where network access is restricted. Javadoc provides detailed documentation from within Java IDE. |
Pricing | ||
Usage based pricing (pages/month) Starts from $49 / month. No overage charges. No blocking at quota. |
One-off fee for a perpetual license. Includes access to support/updates for 12 months. Optional annual renewal of support/updates. |
One-off fee for a perpetual license. Includes access to support/updates for 12 months. Optional annual renewal of support/updates. |
Trusted by Customers Worldwide
Used in Finance, Insurance, Health, Legal, Education, HR, Transport & Logistics, and more…
SaaS
Companies
Adding user-customizable
reports to their platforms.
Small-To-Medium
Businesses
Automating the generation of
client-facing documents.
Large
Corporations
Replacing legacy, code-based
document generation systems.
Tech-Savvy
Professionals
Looking for an easy way to
generate bespoke documents.
![testimonial paperworkpros](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-paperworkpros.png)
![testimonial marriott](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-marriott.png)
![testimonial qryptal](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-qryptal.png)
![testimonial seaglass](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-seaglass.png)
![testimonial bluedriver](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-bluedriver.jpg)
![testimonial evac guide](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-evac-guide.png)
![testimonial bridgeall](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-bridgeall.jpg)
![testimonial redmonkey](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-redmonkey.png)
![testimonial gappless](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-gappless.png)
![testimonial thales](https://www.docmosis.com/wp-content/uploads/2021/07/testimonial-thales.png)