Skip to content

denniskuczynski/doctorj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

     _            _             _ 
  __| | ___   ___| |_ ___  _ __(_)
 / _` |/ _ \ / __| __/ _ \| '__| |
| (_| | (_) | (__| || (_) | |  | |
 \__,_|\___/ \___|\__\___/|_| _/ |
                             |__/ 

doctorj

A simple server to connect to LibreOffice and convert documents to PDF format.

The name comes from "Document to Renderable (Java)", since I needed some software to batch convert Word Documents to PDFs that are renderable in the browser. But it's an easy name to remember because of the basketball star.

Screenshot

Installation

  1. Download and install LibreOffice_4.0.0
  1. Ensure a 32bit JDK is installed on the machine
  1. Ensure your JAVA_HOME environment variable is set and ensure %JAVA_HOME%\bin is in the PATH environment variable.

  2. Ensure a 32bit JRuby is installed on the machine

  1. Install the buildr gem for JRuby:
  • jruby -S gem install buildr
  1. If on Windows, ensure the Windows Error Reporting\DontShowUI registry setting is set to 1
  1. If any firewall is running, ensure that TCP port 8080 is allowed for inbound connections. (And port 8081 for the admin interface)

  2. Clone this git repository

  3. In the repository's root directory, execute:

  • buildr run
  1. Use the REST API to submit files for conversion, check on conversion status, and retrieve files.

Usage

You can see an example ruby client in the test script: https://github.com/denniskuczynski/doctorj/tree/master/buildlib/doctorj

Testing

  1. In the root directory, execute: buildr test
  2. There are also two Ruby test scripts
  • buildr smoke_test
  • buildr load_test

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licensing

LibreOffice is released under the LGPL http://www.libreoffice.org/download/license/

doctorj uses the DropWizard framework (http://dropwizard.codahale.com/) which uses the Apache License

Screenshot

Screenshot

About

Simple server to connect to LibreOffice and convert documents to PDF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published