Ruby wrapper for the PDF Tools command-line utils. https://www.pdf-tools.com/
Add this line to your application's Gemfile:
gem 'pdf_tools'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pdf_tools
Native support for next tools are available:
- 3-Heights™ PDF Merge Split
- 3-Heights™ Image to PDF Converter
PdfTools::Tool::ImageToPdf.new do |tool|
tool.lk "license key"
tool.f
tool << "input.tif"
tool << "output.pdf"
end
PdfTools::Tool::MergeSplit.new do |tool|
tool.lk "license key"
tool.m
tool << "in1.pdf"
tool.ot "Bookmark"
tool << "in2.pdf"
tool << "out.pdf"
end
Bug reports and pull requests are welcome on GitHub at https://github.com/ldrner/pdf_tools.