【发布时间】:2015-06-25 12:16:02
【问题描述】:
如何动态覆盖pdfkit 配置
PDFKit.configure do |config|
config.wkhtmltopdf = '/path/to/wkhtmltopdf'
config.default_options = {
:page_size => 'Legal',
:print_media_type => true
:page_width=> " i just want to change this value depends on record count"====> issue
}
或者有什么方法可以设置最小页面宽度和最大页面宽度?
【问题讨论】:
标签: ruby-on-rails ruby pdfkit