Class: Pdfs2Pdf::Configuration
- Inherits:
-
Object
- Object
- Pdfs2Pdf::Configuration
- Defined in:
- lib/pdfs2pdf/configuration.rb
Instance Attribute Summary collapse
-
#default_options ⇒ Object
Returns the value of attribute default_options.
-
#pdfmarks_meta ⇒ Object
Returns the value of attribute pdfmarks_meta.
-
#wkhtmltopdf ⇒ Object
Returns the value of attribute wkhtmltopdf.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/pdfs2pdf/configuration.rb', line 8 def initialize # see: http://wkhtmltopdf.org/usage/wkhtmltopdf.txt = { paper_size: 'A4', # 'Letter' # Note: placeholder values, will be added in the up coming release! margin_top: '0.75in', margin_right: '0.75in', margin_bottom: '0.75in', margin_left: '0.75in', encoding: 'UTF-8' } # see: http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/pdf_creation_apis_and_specs/pdfmarkReference.pdf = " |[ /Title (My Combined Pdf)\n | /Author (Burin Choomnuan)\n | /Keywords (fun, witty, interesting)\n | /DOCINFO pdfmark\n END\n\n @wkhtmltopdf = (defined?(Bundler::GemfileError) ? `bundle exec which wkhtmltopdf` : `which wkhtmltopdf`).chomp\nend\n".gsub(/^\s+\|/, '') |
Instance Attribute Details
#default_options ⇒ Object
Returns the value of attribute default_options.
4 5 6 |
# File 'lib/pdfs2pdf/configuration.rb', line 4 def end |
#pdfmarks_meta ⇒ Object
Returns the value of attribute pdfmarks_meta.
4 5 6 |
# File 'lib/pdfs2pdf/configuration.rb', line 4 def end |
#wkhtmltopdf ⇒ Object
Returns the value of attribute wkhtmltopdf.
4 5 6 |
# File 'lib/pdfs2pdf/configuration.rb', line 4 def wkhtmltopdf @wkhtmltopdf end |