PDFire.io logo

PDFire Ruby

GitHub

This package provides a client for the PDFire.io API. Read the Documentation for a list of available options.

Installation

gem install pdfire

Basic usage

require 'pdfire'

client = PDFire::Client.new('YOUR-API-KEY')

params = PDFire::ConversionParams.new
params.url = 'https://google.com'
params.margin = 0
params.format = 'A4'

pdf = client.convert(params)

pdf.save_to('/path/on/disk.pdf')

License

MIT