Step 1:

Go to File > Save As and select PDF from the dropdown list.

Step 2:

Select ‘Options’ and make sure that the ‘Document structure tags for accessibility’ is selected.

While saving a Microsoft document as a PDF, select ‘Options’ and make sure that the ‘Document structure tags for accessibility’ is selected.