Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

JRuby web application frontend for Flying Saucer, which converts xhtml into a pdf.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 tmp
Octocat-spinner-32 views
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 config.ru
Octocat-spinner-32 pdf.rb
Octocat-spinner-32 pdf_concatenator.rb
Octocat-spinner-32 pdf_generator.rb
Octocat-spinner-32 sinatra_saucer.rb
Octocat-spinner-32 sinatra_saucer_client.rb
README
Sinatra Saucer
==============
JRuby web application frontend for Flying Saucer. 

It does two things:
* It converts xhtml into a pdf. It requires a zip file containing the file pdf.html, along with any css and images referenced in the xhtml file. 
* It concatenates multiple xhtml (which will be converted) and pdf files into one. Instead of a pdf.html file, it requires a MANIFEST file with a list of all the files to convert and concatenate, separated by newlines.

There is a rudimentary form to submit a zip file, but it is expected the file will be sent by another application. This is to allow for the power of PDF creation with Flying Saucer without requiring your whole application to run in JRuby.

So far the upload form works for creating a PDF. Coming soon will be documentation on how to use it from another app.

Gems required: pbrant-flyingsaucer4r (0.5+), jruby (1.3+), rubyzip, and sinatra

To get started, type this in the command line:
jruby -S rackup config.ru

The default port for rack is 9292.
Something went wrong with that request. Please try again.