Control whether CSS @page size rules take precedence over the specified paper size
prefer_css_page_size
parameter allows you to control whether CSS-defined page sizes take precedence over the API-specified paper size.
size
parameter) and any page size defined in the document’s CSS using @page
rules. The prefer_css_page_size
parameter determines which of these takes precedence.
true
: CSS page size defined in @page
rules takes precedence over the size
parameter. Content will be rendered using the dimensions specified in CSS.false
: The size
parameter takes precedence over any CSS-defined page size. Content will be scaled to fit the specified paper size.@page
size rules that are essential to the layout design.
true
false