Fix Missing or Unsearchable Text in Word 2010 PDF Exports
Question details
The user needs text in a PDF exported from Word 2010 to be selectable, searchable, and copied correctly.

- Product
- Microsoft Word 2010
- Device & OS
- not provided
- Scenario
- A Word document is exported to PDF, and its text is later searched, selected, or copied.
- Observed behavior
- Some PDF text cannot be selected or searched correctly, and copying all text may produce repeated content and gaps.
Check whether the PDF is created by a macro or other code using Word's ExportAsFixedFormat method. Save the source Word document in a local folder before running the example macro.
Disable document structure tags when exporting with Word 2010
Use this solution when a macro or application creates the PDF with ExportAsFixedFormat.
Setting DocStructureTags to False can resolve text selection and search problems in affected Word 2010 PDF exports. This setting applies to the export call, not automatically to PDFs created through Save As.
In Word 2010, open the source document and press Alt+F11 to open the Visual Basic Editor. Open the module containing the ExportAsFixedFormat call, or choose Insert > Module to create a test macro.
Add DocStructureTags:=False to the existing ExportAsFixedFormat call. For a test macro, enter: Sub ExportTestPDF() ActiveDocument.ExportAsFixedFormat OutputFileName:=ActiveDocument.Path & "\export.pdf", ExportFormat:=wdExportFormatPDF, DocStructureTags:=False End Sub
Run the macro from the Visual Basic Editor using Run > Run Sub/UserForm. Open export.pdf from the document's folder, then search for a known phrase and copy and paste several passages to check the results.

Try WPS Office for Word-to-PDF conversion
WPS Office is a free, lightweight alternative with a familiar interface for opening Word documents and exporting them to PDF. It offers a separate conversion workflow but does not change or fix Word 2010's export method.

Frequently Asked Questions
Where do I set DocStructureTags to False?
Set it in the ExportAsFixedFormat call in the macro or application that creates the PDF. In a Word VBA macro, use the named argument DocStructureTags:=False.
Does this change PDFs I already exported?
No. Run the updated export code to create a new PDF, then search and copy text from the new file to verify the result.
Will the macro setting change Word's Save As PDF behavior?
No. DocStructureTags:=False applies to the ExportAsFixedFormat call where you specify it; it does not automatically change exports made through Save As.
What is the trade-off of disabling document structure tags?
The exported PDF may be less accessible to screen readers because it lacks document structure tags. Check the PDF against your accessibility requirements before sharing it.




