The former soap star accepted responsibility over the charges but did not enter a plea as part of the programme, which allows low level offending to be spared a criminal record.
Magistrate Tim Bourke ordered the actor to be of good behaviour for six months, donate $150 to the court fund and complete a drug awareness course.
He must abide by the conditions before the charges are discharged, the court was told.
His lawyer Carmela Pezzimenti, said he was previously placed on a diversion programme in 2015, when he was 21, but details of those allegations were not raised in court.
She said Pledger was only 21 at the time, was unrepresented and there was a "great deal of confusion" around it. There were also no longer records available.
His character Mason Morgan was killed off in 2019 when Pledger decided to leave the show.
Morgan was shot by a gang in a siege when they took over the hospital where he worked.
Pledger recently revealed on Instagram that he plans to start DJing and has been making electronic music.