Skip to content

tanaka3622/pdf_kitchen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published