0.0
No commit activity in last 3 years
No release in over 3 years
PdfKitchen API client: Ruby client library for the PdfKitchen Platform.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0
 Project Readme

PdfKitchen

Installation

Add this line to your application's Gemfile:

gem 'pdf_kitchen'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pdf_kitchen

Usage

PdfKitchen::Api.post({
   filename: "/var/www/html/aaa.pdf",
   access_token: "システムで発行するtoken",
   access_secret_token: "システムで発行するsecret-token",
   data: {
      text1: "aaa"
      ... 
   },
})
*補足
フロント側にダウンロードさせたい場合のコード例
send_file(filename, :filename => "your_document.pdf", :type => "application/pdf")

ブラウザ側に表示させたい場合は
send_file(filename, :filename => "your_document.pdf", :disposition => 'inline', :type => "application/pdf")