please check printing triggers in the docs
https://jsreport.net/learn/phantom-pdf#printing-triggers