Top Level Namespace

Defined in:

Constant Summary

RENDER_LIMITER = MarkpdfWeb::RateLimiter.new(MarkpdfWeb::MAX_RENDERS_PER_MIN, 1.minute)

Method Summary

Method Detail

def abort_with(message : String) #

[View source]
def build_renderer(options, style, theme, code_theme, page_size, margins, kdp, mirror_headers, base_dir, header, footer, html_input, pageless, hyphenate, language) #

[View source]
def list_styles(selected : String) #

List the built-in stylesheets, marking the selected one.


[View source]
def 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) #

[View source]
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) #

[View source]
def main(source) #

[View source]
def register_fonts(font_paths : Array(String)) #

[View source]
def 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.


[View source]
def setup_emoji_font(emoji_font : String) #

[View source]