Wash the pumpkin and peel it. If it’s small, cut it into rounds; if it’s larger, cut it into wedges and remove the seeds.
Season each piece with salt, black pepper, and sprinkle with garlic and onion powder.
Cut the puff pastry into strips and wrap them around the pumpkin pieces.
Place the wrapped pumpkin on a baking sheet lined with parchment paper.
Brush with olive oil and sprinkle with pumpkin seeds.
Bake for 30 minutes in a preheated oven at 400°F (200°C), until the pastry is golden brown.
Serve warm.