All Projects β†’ DocRaptor β†’ docraptor-ruby

DocRaptor / docraptor-ruby

Licence: MIT license
A native Ruby client for the DocRaptor HTML to PDF generation API

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to docraptor-ruby

Snappy
PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage
Stars: ✭ 3,986 (+19830%)
Mutual labels:  html-to-pdf, pdf-generation
Resumake.io
πŸ“ A website for automatically generating elegant LaTeX resumes.
Stars: ✭ 2,277 (+11285%)
Mutual labels:  pdf-generator, pdf-generation
Docotic.Pdf.Samples
C# and VB.NET samples for Docotic.Pdf library
Stars: ✭ 52 (+160%)
Mutual labels:  html-to-pdf, pdf-generation
Pdf Bot
πŸ€– A Node queue API for generating PDFs using headless Chrome. Comes with a CLI, S3 storage and webhooks for notifying subscribers about generated PDFs
Stars: ✭ 2,551 (+12655%)
Mutual labels:  pdf-generator, pdf-generation
Dompdf
HTML to PDF converter for PHP
Stars: ✭ 8,446 (+42130%)
Mutual labels:  html-to-pdf, pdf-generation
api2pdf.php
PHP client library for the Api2Pdf.com REST API - Convert HTML to PDF, URL to PDF, Office Docs to PDF, Merge PDFs, HTML to Image, URL to Image, HTML to Docx, HTML to Xlsx, PDF to HTML, Thumbnail preview of office files
Stars: ✭ 42 (+110%)
Mutual labels:  html-to-pdf, pdf-generation
pydf
PDF generation in python using wkhtmltopdf for heroku and docker
Stars: ✭ 68 (+240%)
Mutual labels:  html-to-pdf, pdf-generation
src2pdf
Generate a pdf report of your source code using bash and LaTeX.
Stars: ✭ 25 (+25%)
Mutual labels:  pdf-generation
imprenta
An AWS lambda in python 3 that generates PDF files from HTML using jinja, pdfkit and wkhtmltopdf.
Stars: ✭ 18 (-10%)
Mutual labels:  pdf-generation
Task2pdf
Kanboard - Task2PDF
Stars: ✭ 48 (+140%)
Mutual labels:  pdf-generation
Expense Tracker with Pdf report
An expense Tracker πŸ”₯πŸ”₯ which lets you add transactions πŸ–ŠπŸ–Š and generate a pdf report of all of your transactionsπŸ“‹πŸ“‹
Stars: ✭ 16 (-20%)
Mutual labels:  pdf-generation
shuttlepdf
πŸ“ƒ Smashingly simple, and scalable ("serverless") HTML to PDF conversions using Google Cloud Functions, and Puppeteer.
Stars: ✭ 15 (-25%)
Mutual labels:  html-to-pdf
ph-pdf-layout
Java library for creating fluid page layouts with Apache PDFBox. Supporting multi-page tables, different page layouts etc.
Stars: ✭ 33 (+65%)
Mutual labels:  pdf-generation
soldoc
A solidity documentation generator, based in NatSpec format. πŸ“ƒ with standalone HTML, pdf, gitbook and docsify output ✏️ just plug and play.
Stars: ✭ 54 (+170%)
Mutual labels:  pdf-generation
umdoc
A Markdown to LaTeX to PDF converter
Stars: ✭ 15 (-25%)
Mutual labels:  pdf-generation
easy-resume
πŸŽ‰ A less is more online resume editor!
Stars: ✭ 116 (+480%)
Mutual labels:  pdf-generation
chromic pdf
Convenient HTML to PDF/A rendering library for Elixir based on Chrome & Ghostscript
Stars: ✭ 196 (+880%)
Mutual labels:  pdf-generation
Android-XML-to-PDF-Generator
This library is for convert XML to PDF very easily using Step Builders Pattern
Stars: ✭ 140 (+600%)
Mutual labels:  pdf-generation
pdfio
PDFio is a simple C library for reading and writing PDF files.
Stars: ✭ 55 (+175%)
Mutual labels:  pdf-generation
laravel-print-api
Laravel package to access our print-api
Stars: ✭ 16 (-20%)
Mutual labels:  pdf-generation

DocRaptor Ruby Native Client Library

This is a Ruby gem for using DocRaptor API to convert HTML to PDF and XLSX.

Installation

Add the following to your Gemfile.

gem "docraptor"

Then run:

bundle install

Basic Usage

DocRaptor.configure do |config|
  config.username = "YOUR_API_KEY_HERE" # this key works for test documents
  # config.debugging = true
end

$docraptor = DocRaptor::DocApi.new

response = $docraptor.create_doc(
  test:             true,                                         # test documents are free but watermarked
  document_content: "<html><body>Hello World</body></html>",      # supply content directly
  # document_url:   "http://docraptor.com/examples/invoice.html", # or use a url
  name:             "docraptor-ruby.pdf",                         # help you find a document later
  document_type:    "pdf",                                        # pdf or xls or xlsx
  # javascript:       true,                                       # enable JavaScript processing
  # prince_options: {
  #   media: "screen",                                            # use screen styles instead of print styles
  #   baseurl: "http://hello.com",                                # pretend URL when using document_content
  # },
)

Next Steps

  • Optionally store and get a URL for your converted document with document hosting
  • View more code examples with error handling, asynchronous creation, file saving, and document hosting.
  • Perfect your document styling with our style and formatting reference, and API reference. Easily add headers and footers, page breaks, page numbers, table of contents, and much more!

More Help

Stuck? We're experts at turning HTML into PDFs so please email us if you run into trouble.

Development

The majority of the code in this repo is generated using swagger-codegen on docraptor.yaml. You can modify this file and regenerate the client using script/generate_language ruby.

Release Process

  1. Pull latest master
  2. Merge feature branch(es) into master
  3. script/test
  4. Increment version in code:
  • swagger-config.json
  • lib/docraptor/version.rb
  1. Update CHANGELOG.md
  2. Commit "Release version vX.Y.Z"
  3. rake release
  4. Verify package release at https://rubygems.org/gems/docraptor
  5. Refresh documentation on docraptor.com

Version Policy

This library follows Semantic Versioning 2.0.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].