Unfortunately, probably doesn't work for the Devils.
They honestly couldn't afford Peterka. This is a cap strapped team. They have like 11 million in space and need a new contract for Luke Hughes (which should be a long term, would be a terrible idea to bridge him). Assuming that it is 8-9 million, that leaves them with maybe 3 million in space. They have 10 forwards (I'm not counting Macdermid, but if you did they'd have 11 and he'd eat up another 1.35 in space).
They may have some wiggle room with Kovacevic on LTIR to start the season, but I don't think the expectation is that they are going to be missing him for the year.
The only real way for this team to find money is going to be through moving Dougie or they get super lucky and Palat actually wants to leave.
If you trade Dougie you can then afford Peterka financially, but at that point your RHD is shredded. Dougie gone, Nemec gone, Kovacevic hurt. You've got Pesce, Casey (who I don't believe the team trusts yet and would prefer to have in the AHL) and then you need to find another