saving ligand and protein in PDB format

I want to save the some pose in PDB format involving both protein and ligand with interactions. it saves either protein or ligand bu not together. i wnat both of them together