Method: CBETA::HTMLToPDF#initialize

Defined in:
lib/cbeta/html_to_pdf.rb

#initialize(input, output, converter) ⇒ HTMLToPDF

Returns a new instance of HTMLToPDF.

Examples:

c = CBETA::HTMLToPDF.new('/temp/cbeta-html', '/temp/cbeta-pdf', "prince %{in} -o %{out}")

Parameters:

  • input (String)

    folder of source HTML, HTML can be produced by CBETA::P5aToHTMLForPDF.

  • output (String)

    output folder

  • converter (String)

    shell command to convert HTML to PDF

    • suggestion: www.princexml.com/

    • wkhtmltopdf has font problem to display unicode extb characters



10
11
12
13
14
# File 'lib/cbeta/html_to_pdf.rb', line 10

def initialize(input, output, converter)
  @input = input
  @output = output
  @converter = converter
end