Class: WeasyPDF::Renderer

Inherits:
Object
  • Object
show all
Defined in:
sig/renderer.rbs

Constant Summary collapse

WEASYPRINT_OPTIONS =

Returns:

  • (Array[Symbol])

Instance Method Summary collapse

Constructor Details

#initializeRenderer

Returns a new instance of Renderer.

Parameters:

  • options (Hash[Symbol, untyped])


5
# File 'sig/renderer.rbs', line 5

def initialize: (?Hash[Symbol, untyped] options) -> void

Instance Method Details

#pdf_from_html_fileString?

Parameters:

  • filepath (String, Pathname)
  • options (Hash[Symbol, untyped])

Returns:

  • (String, nil)


7
# File 'sig/renderer.rbs', line 7

def pdf_from_html_file: (String | Pathname filepath, ?Hash[Symbol, untyped] options) -> String?

#pdf_from_stringString?

Parameters:

  • html_string (String)
  • options (Hash[Symbol, untyped])

Returns:

  • (String, nil)


6
# File 'sig/renderer.rbs', line 6

def pdf_from_string: (String html_string, ?Hash[Symbol, untyped] options) -> String?

#pdf_from_urlString?

Parameters:

  • url (String)
  • options (Hash[Symbol, untyped])

Returns:

  • (String, nil)


8
# File 'sig/renderer.rbs', line 8

def pdf_from_url: (String url, ?Hash[Symbol, untyped] options) -> String?