DocRaptor

Author: Joel Meador

Invoice Enhancements

By popular request, you can now set separate billing information in DocRaptor if you’d like to quit forwarding the monthly invoice to Amy in accounting. You can also customize your invoice with the full address, company name, and VAT number if you’re into that kind of thing... Continue Reading

Upgrades to Doc Listing API

Today we are happy to announce support for API Access to Document Logs, which has long been available on the internal dashboard of DocRaptor. Our Document Listing API only worked for documents that created successfully, which was not ideal!

There are a lot of reasons you might want this, including but not limited to:

  • success/failure rates of your document generation
  • tags distribution against success rates
  • easier DocRaptor white-labeling for agencies
  • usage report for specific weeks/months/years

What would it look like to get a log of all document creation attempts for the first 7 days of 2015?.. Continue Reading

Simple CSS-Only Footnotes for PDFs

Whether you’re creating an eBook or a marketing one-page with fine print, footnotes are a necessity. With DocRaptor (powered by Prince), footnotes are easy to create and you can do it inline too!

Unfortunately, you’re out of luck if you’re using open-source tools such as wkhtmltopdf or PhantomJS. It’s possible to create HTML documents that look like they have footnotes, but you’ll need to add an extra footnotes section and split your footnotes from your content... Continue Reading

DocRaptor Does Google Webfonts Part 3: Rails Edition

Mark from Carriemail asked about using Google Webfonts</a> in the DocRaptor Rails Example (clone it from github).

Now that the link-fest is over, let’s talk about how to do that (it’s really easy).

In app/views/index.pdf.haml (original), I add the following to the <head> of the haml file used to make the PDFs:

%link{:href => "http://fonts.googleapis.com/css?family=Cantarell|Gravitas+One&v2", :rel => "stylesheet", :type => "text/css"}
%style{:type => "text/css"}
  = "h1 { font-family: 'Gravitas One', cursive; font-weight: bold; }"
  = "th { font-family: 'Cantarell', serif; font-size: 16px; }"

I also altered the table to use th and thead tags... Continue Reading

No Margin PDFs with DocRaptor

We had a support ticket come in this morning about how to make a PDF with DocRaptor having no margins. What follows is a little background information and the simplest way to achieve the result.

Page Styles in Prince XML and DocRaptor

To understand how to do this, you need to know DocRaptor uses Prince XML to produce PDFs... Continue Reading