-PDFSHXTEXT command

Converts SHX geometry imported from PDF files into multiline text entities via Command line.

BricsCAD Lite; BricsCAD Pro; BricsCAD Mechanical; BricsCAD BIM

Icon:

Note: The command is available on Windows only.

Method

Select the curves you want to convert to Mtext. To change the settings for converting, choose the SEttings option before selecting the curves. After you configure the settings, press Enter and proceed with the selection.

Note: The command uses the LSTM OCR engine in Tesseract 4 to convert SHX geometry to MText entities. Results may vary, and manual correction can sometimes be faster.
Tip: For the best conversion results:
  • Make sure that only SHX geometry is included in the selection.
  • Add a language and SHX font that matches the geometry.
  • Work in small sections to identify issues more easily and minimize the risk of selecting unintended geometry.

Options within the command

SEttings
Configures the settings for converting imported SHX geometry to text entities.
Add font
Adds an SHX font to the comparison list. Type the font file name without the quotation marks or .shx extension.
Important: The SHX file must be stored in the Fonts folder in the BricsCAD installation directory.
Remove font
Removes an SHX font from the comparison list.
Threshold
Specifies the required percentage (1-100%) of geometric alignment with a font before text replacement.
Note: Use a lower value to generate text even if some characters are not recognized, or use a higher value to prioritize choosing the font that best matches from the comparison list.
Layer
Specifies whether the resulting MText is created on the current layer or on the layer of the original geometry.
Current
Adds the MText on the current layer.
Geometry
Adds the MText on the geometry layer.
Best match
Allows you to choose whether the best mach or first match is chosen when selected fonts are compared.
Best
Selects the best match that passes the recognition threshold.
First
Selects the first match that passes the recognition threshold.
LIst fonts
Displays the fonts that are part of the comparison list in the Prompt History window.
laNguage
Configures the language training data set.
Add language
Adds a language training data set. Type the data file name without the quotation marks or .traineddata extension.
Note:
  • English and the language of the localised BricsCAD installation are always included.
  • Additional data sets can be downloaded at Tesseract documentation. Place them in C:\ProgramData\Bricsys\PdfShx and include them in BricsCAD using Add language option.
Remove language
Removes a language training data set.
Default language
Sets the default language.
List languages
Shows all added language training data sets.