Simulation results for future measurements of electromagnetic proton form factors at PANDA (FAIR) within the PandaRoot software framework are reported. The statistical precision with which the proton form factors can be determined is estimated. The signal channel $bar p p to e^+ e^-$ is studied on the basis of two different but consistent procedures. The suppression of the main background channel, $textit{i.e.}$ $bar p p to pi^+ pi^-$, is studied. Furthermore, the background versus signal efficiency, statistical and systematical uncertainties on the extracted proton form factors are evaluated using two different procedures. The results are consistent with those of a previous simulation study using an older, simplified framework. However, a slightly better precision is achieved in the PandaRoot study in a large range of momentum transfer, assuming the nominal beam conditions and detector performance.