ChromicPDF.Template.styles
You're seeing just the function
styles
, go back to ChromicPDF.Template module for more information.
Specs
styles([style_option()]) :: blob()
Renders page styles for given options.
These base styles will configure page dimensions and header and footer heights. They also remove any browser padding and margins from these elements, and set the font-size.
Additionally, they set the zoom level of header and footer templates to 0.75 which seems to make them align with the content viewport scaling better.
Options
size
page size, either a standard name (:a4
,:us_letter
) or a{<width>, <height>}
tuple in inches, default::us_letter
header_height
default: zeroheader_font_size
default: 10ptheader_zoom
default: 0.75footer_height
default: zerofooter_font_size
default: 10ptfooter_zoom
default: 0.75webkit_color_print_adjust
default: "exact"