Sha256: 9e92e6301f1ba37ecc16fa72b8e99e977b3899c868aaa4efa1d191cd27d9f5d8
Contents?: true
Size: 486 Bytes
Versions: 5
Compression:
Stored size: 486 Bytes
Contents
require "asciidoctor-pdf" module Asciidoctor module PDF class Converter alias_method :build_pdf_info_original, :build_pdf_info def build_pdf_info doc info = build_pdf_info_original(doc) keys = %w( Title Author Subject Keywords Producer Creator ) keys.each do |key| val = doc.attr( ("pdf_"+key).downcase ) next unless val info[ key.to_sym ] = val.to_s.as_pdf end info end end end end
Version data entries
5 entries across 5 versions & 1 rubygems