Each chapter of my User Guide is a separate page in hierarchy of pages. Now I need to export my User Guide into PDF-document where the hierarchy of pages should be equal to the document chapters’ hierarchy. All the formatting of the pages should be preserved in the final document (body, headings, headers, footers etc.).
How can i do this?