PDF Conversion Issues

How to Preserve Text Layers When Converting CAD to PDF

Huma Ashraf ChHuma Ashraf Ch Nov 3, 2026 868 views

Question details

The user wants to ensure that text remains selectable and searchable when exporting or converting a CAD drawing into a PDF file.

How to Preserve the Text Layer When Creating a PDF from CAD
Product
CAD Software, PDF Editors
Device & OS
not provided
Scenario
Converting CAD drawings to PDF format for sharing and archiving while maintaining text searchability.
Observed behavior
Exported PDFs often convert text into vector graphics or images, preventing OCR software or users from selecting and searching the text.
Before you start

Check the font types used in your original CAD file. TrueType fonts (TTF) are generally required for text to remain searchable, whereas SHX fonts often get converted into unsearchable line graphics.

Solution 1Recommended

Configure CAD Software Export Settings

The most effective way to preserve text is configuring your CAD software to export TrueType fonts as searchable text rather than vector graphics.

Standard PDF editors cannot magically reconstruct a text layer if the CAD program originally exported the text as vector paths. The conversion must be handled correctly at the source application.

1
Use TrueType Fonts

Open your drawing in your CAD software and ensure that the text styles use TrueType fonts (e.g., Arial, Times New Roman) rather than SHX fonts.

2
Check PDF Plotter Settings

Select the built-in 'DWG to PDF.pc3' plotter or navigate to the 'Export to PDF' function. Open the 'PDF Options' dialog.

3
Enable Font Capture

Ensure that the 'Capture fonts used in the drawing' or 'Include searchable text' option is checked before finalizing the PDF export.

Configure CAD Software Export Settings
SHX Font Compatibility: If you must use SHX fonts in AutoCAD, set the system variable EPDFSHX to 1 to help create a searchable text layer, though TrueType fonts remain the most reliable method.
Advanced PDF Editing & OCR

Extract Text from CAD PDFs with WPS Office OCR

If your CAD software exported text as unselectable graphics, you can use the advanced OCR feature in WPS Office to recognize and extract text from your PDF drawings easily.

  1. 1. Open the Flattened PDF: Launch WPS Office and open your CAD-generated PDF file.
  2. 2. Access the OCR Tool: Go to the 'Tools' tab on the top ribbon and click on the 'OCR' button.
  3. 3. Extract Text: Choose 'Extract Text' or 'Convert to Word', select the document language, and click 'Start' to convert the graphical text into searchable characters.
Accurate Optical Character Recognition (OCR) for scanned or CAD-flattened PDFsSeamlessly convert PDFs to fully compatible Microsoft Word, Excel, and PowerPoint formatsHighly compatible with all standard PDF files created by CAD programs or AdobeLightweight, fast, and features a familiar tabbed user interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does my CAD text turn into lines in PDF?

Many CAD programs use specialized SHX fonts optimized for drafting. When exported to PDF, these fonts are often drawn as vector lines rather than embedded as standard TrueType text fonts, making them unselectable.

Can Adobe Acrobat convert CAD lines back into text automatically?

Adobe Acrobat alone cannot recreate the original text layer if the text was exported as vector paths. You must either export the file properly from the CAD software or manually run an OCR tool to recognize the vector lines as text.

Does the EPDFSHX command fix all text search issues?

Setting the EPDFSHX system variable to 1 in AutoCAD helps make SHX fonts searchable by adding hidden text over the geometry in the PDF. However, using TrueType fonts provides the most reliable and universally selectable text layer across all PDF viewers.