Thaw the puff pastry sheet at room temperature for 40 minutes, until it unfolds flat without cracking along the fold lines.
Preheat the oven to 400F and line a large baking sheet with parchment paper.
Dust the counter lightly with flour, unfold the sheet, and roll it just enough to smooth the seams, keeping it roughly 9 by 12 inches.
Cut the sheet into 16 narrow triangles about 4 inches tall, using a sharp knife or pizza cutter so the edges stay clean.
Lay 8 triangles on the counter and cut 4 shallow diagonal slits into each long edge, stopping an inch from the center to leave a solid spine, then gently fan the cut strips outward like branches.
Spread a scant teaspoon of pesto down the spine of each slit triangle, leaving a quarter inch border bare, then lay a plain triangle on top and press the border firmly with a fork to seal.
Transfer the trees to the lined sheet, brush each one with the egg wash, and sprinkle lightly with parmesan.
Bake for 14 to 16 minutes, until the pastry is deep gold and the branch layers have separated and puffed; the tree should feel light, not doughy, when lifted.
Let the trees cool on the sheet for 5 minutes, then push a rosemary sprig into the base of each one as a trunk before carrying them to the table.
Good to Know
Assemble the trees up to the egg wash step and freeze flat on the tray; bake straight from frozen, adding 3 to 4 minutes.