How do I prevent Statutory and Automatic components from reflecting on the PDF payslip?

How do I prevent Statutory and Automatic components from reflecting on the PDF payslip?

To prevent Statutory and Automatic components from reflecting on the PDF payslip, enable the "show on mock payslip only?" checkbox when editing the specific components on the General Ledger Parameters screen.

      Navigate > Configuration > Payroll > Payroll Config > General Ledger Parameters