Skip to content
angelozerr edited this page Aug 4, 2015 · 1 revision

XDocReport & Google App Engine

Since XDocReport 1.0.2, XDocReport supports Google App Engine : reporting and converter features are available in Google App Engine context.

Converters with GAE

You can play with XDocReport ODT and DOCX converters (XHTML and PDF) with the XDocReport GAE live demo. You can find sources of this demo on xdocreport-gae-demo.

Reporting with GAE

You can :

  • download the reporting-webapp-gae-xxx.war : if you don't use maven, this war is perfect to get the well GAE JARs.
  • find sources on reporting-webapp-gae : if you use maven, this project contains a POM with the well dependencies.

Problem with Google App Engine

With Google App Engine, java.awt.Color is not allowed, see The JRE Class White List for more information.

ODT and DOCX converters uses java.awt.Color in their code, so it cannot be used with Google App Engine.

To resolve this problem, XDocReport uses a dedicated implementation of itext ported on gae (https://github.com/pascalleclercq/itext-gae) (since version 1.0.2).

Converters & Google App Engine

DOCX Converter with GAE

DOCX Converter to XHTML with GAE =

To download the XDOCREPORT_VERSION version of DOCX 2 XHTML converter you can use maven :

<dependency>
  <groupId>fr.opensagres.xdocreport</groupId>
  <artifactId>org.apache.poi.xwpf.converter.xhtml-gae</artifactId>
  <version>XDOCREPORT_VERSION</version>
</dependency>

DOCX Converter to PDF with GAE =

To download the XDOCREPORT_VERSION version of DOCX 2 PDF converter you can use maven :

<dependency>
  <groupId>fr.opensagres.xdocreport</groupId>
  <artifactId>org.apache.poi.xwpf.converter.pdf-gae</artifactId>
  <version>XDOCREPORT_VERSION</version>
</dependency>

ODT Converter with GAE

ODT Converter to XHTML with GAE =

To download the XDOCREPORT_VERSION version of ODT 2 XHTML converter you can use maven :

<dependency>
  <groupId>fr.opensagres.xdocreport</groupId>
  <artifactId>org.odftoolkit.odfdom.converter.xhtml-gae</artifactId>
  <version>XDOCREPORT_VERSION</version>
</dependency>

ODT Converter to PDF with GAE =

To download the XDOCREPORT_VERSION version of ODT 2 PDF converter you can use maven :

<dependency>
  <groupId>fr.opensagres.xdocreport</groupId>
  <artifactId>org.odftoolkit.odfdom.converter.pdf-gae</artifactId>
  <version>XDOCREPORT_VERSION</version>
</dependency>
Clone this wiki locally