News:

Please remember to do a search before you ask a question!

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Save as PDF using SHX fonts

Started by jjj_earls, February 21, 2017, 10:00:01 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

jjj_earls

One of my main uses for TC is to open DXFs generated from our very old CAD system and save them as PDFs that have searchable text. However, the DXFs all use txt.shx. When I save as a PDF, the text basically has a line width of 1 pixel. This makes it difficult to read when viewing the PDF and it doesn't print nicely. After doing much research on the issue, I have gotten nowhere. The SHX fonts are a bit of a mystery to me. I don't want to convert all of the text to a TTF because this messes up alignment of lines of text (that used to be multi-line text but are now just single lines after conversion to DXF). It also changes the text width, which is undesirable as it messes up the drawing formatting.

Anyone have a good solution for this?

Henry Hubich

One possibility: Explode all the text until it's a bunch of Polylines (I think two explosions will do it), then change the Line Width to whatever you like.

Henry H

jjj_earls

Thanks Henry, but then I will lose my searchable text.

Henry Hubich

Quote from: jjj_earls on February 21, 2017, 10:47:06 AM
Thanks Henry, but then I will lose my searchable text.

Well, maybe you could create a new Layer; select all the text; click the Copy in Place icon; put the copies on that new Layer and turn off its visiblilty; then proceed as in my first post. To search text, make the new Layer visible and go ahead and search. Maybe.

Henry H

jjj_earls

I've tried that, or variations of it. It doesn't work out very nicely.

Dean

#5
For 2D work >
Try saving as eps format.
Select a viewport and save as selection to eps.
or you could explode the viewport.
You can also save from Modelspace.
Acrobat reads eps.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

jjj_earls

PDF readers don't read EPS unfortunately. GSview didn't like the EPS that TC created... I ended up changing all the text to a true type font. I cycled through every single font available in the list to find the one that was closest in character spacing to txt.shx. I used Gungsuh in case anyone's curious. It wasn't bang on, but didn't cause too much destruction of my drawing. I'm not a big fan of the font itself, it is a serif font, but at least I have part of a solution for now. I can search for different TT fonts later that are more similar to the SHX fonts.

jjj_earls

My final solution to this problem was to download a free TTF version of txt.shx and then I used a font editor to scale it to match the one in TurboCAD as well as thickening the lines. I think I got it pretty close with this one.

lemel_man

You said save as PDF.  Have you tried printing from Paper Space to a virtual PDF printer? There are various free ones around - my favourite is PrimoPDF; download it from www.primopdf.com
Gary Wooding
Win10 64-bit,
TC21.2 x64 Plat, Bld59
TC16.2 Plat, Bld54.0
TCC 3.5