Incumbent Barack Obama ran unopposed on the Democratic primary ballot . He received 616,102 votes . There were 19,082 write-in votes . In the floor vote taken at the Democratic National Convention , 242 Pennsylvania delegates voted for Obama . The other 8 of the state 's 250 allocated votes were not announced
Democratic National Convention
2012 Democratic National Convention
2012 United States presidential election in Pennsylvania