Getting your content back depends on how you backed up in the first place. When you use the erase all content and settings, you will be given the option during the activation process to set up as a new device, restore from an iTines backup or an iCloud backup.
Setting up as new is self explanatory - you are starting from scratch.
If you have been using iCloud only for backups and never synced with iTunes, when you choose to restore from the iCloud backup, all of your content will download from the cloud ....all apps, app data, music, movies and so on. It can take quite a while if the iPad has lost of content on it.
If you backup and sync with iTunes, when you get to that point of the activation process, and choose the iTunes backup, you will have to connect your iPad to your computer with the cable, launch iTunes and the backup will restore and it should be followed up with a sync which will recover all of your apps and other synced media to the iPad. Bear in mind that this will not load the new iOS when you use iTunes this way. You are only recovering your backup and media from your iTunes library. The new iOS will download only if you "restore" using iTunes. You are not restoring when you do what I have typed here.
I Don't know if this will help, but take a look.
Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support