Skip to main content

Home > @jsplumbtoolkit/print > scaleToFullPage

scaleToFullPage() function

Instructs the given handler to zoom its content to 1, and then report back how big the page needs to be to render the entire dataset. Note that this method returns an array serialized as a string.

Signature:

export declare function scaleToFullPage(handlerId: string, margins?: Margins, units?: Units): String;

Parameters

ParameterTypeDescription
handlerIdstringID of the handler to scale.
marginsMarginsOptional margins to use (in [top,right,bottom,left] format). Values here are expressed in whatever you specify for units, which defaults to CENTIMETERS if you leave it empty.
unitsUnitsOptional units, defaults to CENTIMETERS.

Returns:

String