Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Various examples on how to use Doc Raptor
Ruby C# Java Shell PHP
branch: master
Failed to load latest commit information.
csharp-cli Edited csharp-cli/DocRaptor.cs via GitHub
csharp gotta make sure the string is lowercase
curl Renamed sample file.
excel_styling first excel styling example
java urlencode document to ensure there are no style issues
javascript updated jquery examples
php
ruby bundler and rvmrc files
.gitignore update gitignore file with bundler and other file types
README.rdoc update readme with new links
docraptor_sample.pdf add the generated binary simple examples
docraptor_sample.xls add the generated binary simple examples

README.rdoc

Doc Raptor Examples Repository

This is a repository of examples in various languages on how to use and integrate with Doc Raptor. Doc Raptor is a web service for easily and quickly generating Excel or PDF files without tendious syntax or extra server requirements.

What does this examples repo contain?

Code

  1. Curl example, for the real nuts & bolts look

  2. A plain Ruby example, using the DocRaptor gem

  3. A more complicated Ruby on Rails example, showing how to use the service with controllers/views as well as Paperclip

  4. A simple PHP example (using the pecl_http php extension)

  5. Javascript examples for Prototype.js and jQuery; whichever strikes your fancy

  6. An interactive .NET C# / WPF example

  7. An HTML example with complicated excel styling and layout

  8. A CLI .NET C# example

  9. A Ruby example showcasing the async options

Example Outputs

  1. doc_raptor_sample.pdf - produced by the curl, plain ruby, and php examples

  2. doc_raptor_sample.xls - produced by the curl, plain ruby, and php examples

  3. excel_styling/example1.xls - produced by sending the contents of excel_styling/example1.html to DocRaptor

Other Libraries

* Doc Raptor - docraptor.com

Something went wrong with that request. Please try again.