Where would the expand/collapse all buttons be positioned in the document when the expand/collapses are spread all over the document? In contrast to being a list of expand/collapse sections with no content in-between?
Would that be clear to readers? What if the button is somewhere were the user can’t see any of the expanded/collapsed sections? What does the user base their decision on? (For example if it is the first thing in the document, in a responsive mobile viewport, the first section to expand/collapse might be several screens down. The user would not know how to decide to expand all or not.)
Most important issues: