DocRaptor

The main repository for these examples is at github.

This example is a simple CLI program as opposed to a full blown GUI solution.

The entire solution for making this WPF example is at github.

jQuery Form Based

jQuery Url Based

jQuery plugin

David Baldwin made a nice DocRaptor jQuery plugin. Examples and usage details on that page.

One of our users wrote a nice PHP wrapper for DocRaptor as well: https://github.com/krewenki/php-docraptor

This showcases the DocRaptor gem.

This showcases the async functionality.

This uses HTTParty rather than the DocRaptor gem.

A couple of excerpts from a complete Ruby on Rails example that you can get at github.

Note: You can define a PDF layout to be used for all of your PDFs by creating an application.pdf.haml (or .erb) file. This technique can also be used to create an XLS layout.

controller

index.xls.haml

John Keyes wrote a Python wrapper for us! There are several code examples in the repo. Here's what it looks like in action:


If you would like to see a more complex example you can check out a complete tutorial written by the guys at Switch on the Code: Using Doc Raptor to create Excel Spreadsheets

If you have an example you'd like to share let us know and we'll share it with the world.

The simple examples (ruby, curl, php) will produce a PDF and/or an XLS file. They should look something like these*:
*The simple ruby example will have a different worksheet name because the code was formatted to fit on this page.