If I collapse all tasks in my project schedule to just view the Parent/Summary tasks in Gantt view, and then export (to PDF or Excel) - it exports ALL tasks, not just the Parent/Summary Tasks. See below:
Gantt View (collapsed to display only Parent/Summary Tasks):
Export View (all tasks are collapsed):