Top Level Namespace
Defined in:
Constant Summary
-
RENDER_LIMITER =
MarkpdfWeb::RateLimiter.new(MarkpdfWeb::MAX_RENDERS_PER_MIN, 1.minute)
Method Summary
- abort_with(message : String)
- build_renderer(options, style, theme, code_theme, page_size, margins, kdp, mirror_headers, base_dir, header, footer, html_input, pageless, hyphenate, language)
-
list_styles(selected : String)
List the built-in stylesheets, marking the selected one.
- main(source, output, page_size, margin, css_paths, font_paths, emoji_font, header, footer, theme, code_theme, style, html_input, pageless, hyphenate, language, no_remote_images, kdp, mirror_headers)
- main(source, theme, code_theme, force_links = false, force_color = false, width = nil, hyphenate = false, language = "en", images = nil, no_links = false, no_pager = false)
- main(source)
- register_fonts(font_paths : Array(String))
-
render_kdp_guttered(input, output, pages, margin, css_bodies, options, style, theme, code_theme, page_size, mirror_headers, base_dir, header, footer, html_input, pageless, hyphenate, language)
The gutter feeds back into the page count: size it from the first pass and re-render when the table asks for a different one.
- setup_emoji_font(emoji_font : String)
Method Detail
def main(source, theme, code_theme, force_links = false, force_color = false, width = nil, hyphenate = false, language = "en", images = nil, no_links = false, no_pager = false)
#