Preheat oven to 350 degrees
Roll out the pastry sheet and ut into 3 or four strips about 4.5"x 9"
Grate the pumpkin and divide evenly on the dough strips
Sprinkle the pumpkin with sugar
Brush the edges of the dough and bring the sides up over the pumpkin and secure the ends to create a tube. Make sure that all the edges are pinched together
Brush the pastries with the beaten egg and put in the oven.
Cook for about an hour, checking to see when the pastry becomes a golden brown and the pumpkin is boiling at the sealing line.
Remove from the oven and cut each tube into four pieces and sprinkle with vanilla sugar,