Gmx density: pbc implication

GROMACS version: 2021
Hi, while calculating linear density distribution using ‘‘gmx density’’ how can one implement pbc condition?
does pbc is default considered or the trajectory file should be modified using trajconv? Any suggestion would be appreciated.