To recycle content, we must first go steal it. I took the sample I had, loaded it in peep and then saved the contents to a file. You can download the U3D raw object content from here. I then used Didiers make PDF tool and hardcoded the values I knew needed to exist. This mainly consisted of the single page, the 3D definition and then the actual 3D content.
Here is the code to generate the test document I have (seriously, it’s horrible):