1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

pdf を生成できる良さげな ruby gem 調査

Posted at

pdf を生成できる gem の候補

gem の候補:
prawn, prawn-table

  • 独自言語でpdfを生成, 🔑付きも可能
  • 9M downloads

wicked_pdf

  • HTMLからpdfを生成
  • 6M downloads

pdfkit

  • HTMLからpdfを生成
  • 3M downloads

combine_pdf

  • pdfをマージしたり編集することが主
  • 1M downloads

hexapdf

  • メンテナンスがよくされている
  • better prawn を意識している
  • 52k downloads

hexapdf の使い方

require 'hexapdf'

doc = HexaPDF::Document.new
canvas = doc.pages.add.canvas
canvas.font('Helvetica', size: 100)
canvas.text("Hello World!", at: [20, 400])
doc.write("hello-world.pdf")
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?