Thanks @adityaduggal
This helps, because in 4.0 most of the print formats are client, but in 4.5 no client format is present and only server. Also in 4.0 for print templates coding is done in JS and in the 4.5 jinja.
So, I’m concluding that in Print format type, only server side option to be used.