Qtr::Renderers::NativePdfRenderer
Inherits Reference < Object
Direct, self-contained PDF proposal generator using embedded TrueType fonts
Constants
BORDER_COLOR = {226 / 255.0, 232 / 255.0, 240 / 255.0}
DARK_TEXT = {31 / 255.0, 41 / 255.0, 55 / 255.0}
EMBEDDED_FONT_BOLD = ({{ read_file("/tmp/tmp.IJjAMa/src/src/qtr/renderers/../../../assets/fonts/DejaVuSans-Bold.ttf") }}).to_slice
EMBEDDED_FONT_REGULAR = ({{ read_file("/tmp/tmp.IJjAMa/src/src/qtr/renderers/../../../assets/fonts/DejaVuSans.ttf") }}).to_slice
Embedded DejaVu Sans TrueType fonts for 100% standalone, zero-dependency execution
LIGHT_BG = {248 / 255.0, 250 / 255.0, 252 / 255.0}
MARGIN_BOTTOM = 45.0
MARGIN_TOP = 45.0
MARGIN_X = 45.0
MUTED_GRAY = {100 / 255.0, 116 / 255.0, 139 / 255.0}
PAGE_HEIGHT = 841.89
PAGE_WIDTH = 595.28
Geometry (A4 Standard: 595.28 x 841.89 pt)
PRIMARY = {13 / 255.0, 59 / 255.0, 102 / 255.0}
Palette
SECONDARY = {0 / 255.0, 168 / 255.0, 150 / 255.0}
Constructors
new(quote : Quote, financials : Financials, config : Config)
Instance methods
compile(target_pdf_path : String) : Bool
config
config=(config : Config)
financials
financials=(financials : Financials)
quote
quote=(quote : Quote)