Pdf-generator/1.0

From WebLab Wiki
Jump to navigationJump to search
PDF Generator Service
Details
Service Interfaces Analyser
Exchange model: WebLab 1.2.2
Versions: <ListSubPages />
Licence LGPL 2.1
Supported OS Linux
Integrated COTS LibreOffice 3.x, wkhtmltopdf 0.11.0_rc1-static
Binary pdf-generator-service-Pdf-generator-SNAPSHOT.war
Sources pdf-generator-service-Pdf-generator-SNAPSHOT-sources.jar
Javadoc pdf-generator-service-Pdf-generator-SNAPSHOT-javadoc.jar
SVN pdf-generator
Maven Artifact

<groupId>org.ow2.weblab.webservices</groupId>

<artifactId>pdf-generator-service</artifactId>

<version>Pdf-generator-SNAPSHOT</version>
Release Note


This service will retrieve the dc:source annotation from a resource and it will try to convert it in a PDF format. This service supports document from file system or http/ftp document from the web.

Installation

You can either install external tools with the following script or manually.

Script

You can use the following script:

http://weblab-project.org/files/pdf_tools_install.sh

Manual

Before deploying this service, you install two tools on your system:

  1. LibreOffice or OpenOffice version 3.x
  2. wkhtmltopdf 0.11.0_rc1-static
  • To install LibreOffice:

$ sudo apt-get install libreoffice


  • To install wkhtmltopdf:

$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-{your_architecture}.tar.bz2 -O wkhtmltopdf.tar.bz2

$ tar -xvf wkhtmltopdf.tar.bz2

$ sudo cp wkhtmltopdf-* /usr/bin/wkhtmltopdf

Your architecture can be either amd64 or i386, use archdetect.


Installation verification:

To check if your installation is ok, try to open libreoffice et run wkhtmltopdf from a terminal.

Configuration

UsageContext effects

Examples of SOAP Input/Output

Known Limitations

Dependencies