The @document is the way to get the PDF out from the DocumentForm varibale. If you get just the data, it's because the DocumentForm was populated with just the data in the first place.
Make sure you submit PDF from your form and not just the data.
Jasmin