-
Notifications
You must be signed in to change notification settings - Fork 374
XDocReport102
Released May 21, 2013
Before downloading XDocReport JARs, you must understand that XDocReport is modular which is based on 3 modules :
- document : this module defines the document kind you wish used as source (docx, odt, ...). Every fr.opensagres.xdocreport.document....jar manages this module.
- template : this module defines the script syntax (Velocity, Freemarker) you wish use in the document source (odt, docx...) to set the fields name, script for manage loop of items, condition... Every fr.opensagres.xdocreport.template...jar manages this module.
- converter : this module defines the capability to convert the generated report (docx, odt...) to another format (PDF, XHTML...). Every fr.opensagres.xdocreport.converter...jar manages this module.
To use XDocReport to manage reporting you must download :
- required XDocReport API JARs :
- fr.opensagres.xdocreport.core: XDocReport Core.
- fr.opensagres.xdocreport.document : Document type API
- fr.opensagres.xdocreport.template: Template engine API
- fr.opensagres.xdocreport.converter: Converter API
- the well XDocReport implementation of document, template and converter according to that you wish managed (odt, docx... with Freemarker/Velocity... and convert it with PDF, XHTML...).
XDocReport releases are consumable in 2 different formats:
The XDocReport team provides release bundles hosted on the Downloads tab in ZIP. As XDocReport is modular, it exists a ZIP per configuration. For instance if you wish manage Docx with Velocity and convert your report to PDF, XHTML, you must download docxandvelocity.converters-1.0.2-sample.zip. This ZIP contains required XDocReport and dependant (POI,...) JARs and source code with sample.
Attention for PDF conversion: for license raison, we cannot set itext used for PDF in the samples ZIP. So if you wish manage PDF conversion , please download itext-2.1.7.jar at hand on the Maven repository.
Here an array of XDocReport download according to you wish to do :
**Document** | **Template** | **Converter** | |
Docx | Freemarker | * | **[docxandfreemarker-1.0.2-sample.zip](http://code.google.com/p/xdocreport/downloads/list)** |
Docx | Velocity | * | **[docxandvelocity-1.0.2-sample.zip](http://code.google.com/p/xdocreport/downloads/list)** |
Docx | Velocity | PDF/XHTML | **[docxandvelocity.converters-1.0.2-sample.zip](http://code.google.com/p/xdocreport/downloads/list)** |
PPTX | Velocity | **[pptxandvelocity-1.0.2-sample.zip](http://code.google.com/p/xdocreport/downloads/list)** |
**Document** | **Template** | **Converter** | |
ODP | Velocity | * | **[odpandvelocity-1.0.2-sample.zip](http://code.google.com/p/xdocreport/downloads/list)** |
ODT | Velocity | * | **[odtandvelocity-1.0.2-sample.zip](http://code.google.com/p/xdocreport/downloads/list)** |
ODT | Velocity | PDF/XHTML | **[odtandvelocity.converters-1.0.2-sample.zip](http://code.google.com/p/xdocreport/downloads/list)** |
The preferred method of "using" XDocReport is via Maven artifact repositories. Many build tools are able to interoperate with Maven repositories including Maven, Ivy, Gradle, etc.
XDocReport releases are available on central Maven Repository.
As explained below XDocReport is modular. You must choose :
- Your Document dependency
- Your Template dependency
- Your Converter dependency
If you wish use MS Word docx :
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.document.docx</artifactId>
<version>1.0.2</version>
</dependency>
If you wish use MS PowerPoint pptx :
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.document.pptx</artifactId>
<version>1.0.2</version>
</dependency>
If you wish use OpenOffice odt :
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.document.odt</artifactId>
<version>1.0.2</version>
</dependency>
If you wish use Freemarker :
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.template.freemarker</artifactId>
<version>1.0.2</version>
</dependency>
If you wish use Velocity :
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.template.velocity</artifactId>
<version>1.0.2</version>
</dependency>
If you wish convert docx 2 PDF/XHTML :
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.converter.docx.xwpf</artifactId>
<version>1.0.2</version>
</dependency>
If you wish convert odt 2 PDF/XHTML :
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.converter.odt.odfdom</artifactId>
<version>1.0.2</version>
</dependency>
Tools gives you the capability to generate report with Java main command. It is used by xdrtools.bat and xdrtools.sh for the preview feature in the XDocReport MS Word macro and XDocReport OOo extension macro.
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.document.tools</artifactId>
<version>1.0.2</version>
</dependency>
API :
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.remoting.resources</artifactId>
<version>1.0.2</version>
</dependency>
JAX-RS/JAX-WS Client :
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.remoting.resources.services.client</artifactId>
<version>1.0.2</version>
</dependency>
JAX-RS/JAX-WS Server:
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.remoting.resources.services.server</artifactId>
<version>1.0.2</version>
</dependency>
- Fix problem "alignement is lost after pdf generation" see issue 207
- Manage FieldsMetadata with @annotations : see issue 180
It's now very easy to customize the behaviour of a fieldmedata by adding an annotation on the field of a Pojo.
@FieldMetadata(syntaxKind="html", description="HTML Formatted long text")
public String getComment() {
return comment;
}
See XDocReportGAE.
- Fix "itext-gae instead of itext" see issue 197.
- Fix "Generating PDF from ODT in appengine" see issue 209.
- "Specify encoding via GET parameters for converter" : see issue 212.
- "xml parse exception when using SyntaxKind.NoEscape" : see issue 213.
- "XDocReport doesn't merge the fields with docx, odt which are zipped with Java code by using ZipEntry name '' instead of using '/'": see issue 234.
Text styling :
- Overview
- Getting Started
- FAQ
- Which License Applies
- Download
- Developer's Guide
- User's Guide
- Contributor's Guide
- Acknowledgment
- Articles
- Releases