TechDraw PDF export, exports Template text not as text

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
tobiasfalk
Posts: 93
Joined: Fri Feb 05, 2021 2:35 pm

TechDraw PDF export, exports Template text not as text

Post by tobiasfalk »

After exporting the drawing the text of the Template is not mark able (not a text)n so at least in Okular, LibreOffice Draw or Adobe Acrobat Reader. The behave in exporting DXF and SVG is completely different. With SVG's there is no real problemn the text is redable and markable(it is "real" text) but with DXF's the template is not exported. I have a PDF and a DXF file attached.

FreeCAD version:

Code: Select all

OS: openSUSE Leap 15.3 (KDE//usr/share/xsessions/plasma5)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: German/Germany (de_DE)
Attachments
FoldLinePen-1-2022-06-23.dxf
(21.09 KiB) Downloaded 32 times
FoldLinePen-1-2022-06-23.pdf
(334.62 KiB) Downloaded 40 times
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: TechDraw PDF export, exports Template text not as text

Post by wandererfan »

tobiasfalk wrote: Sun Jun 26, 2022 11:35 am After exporting the drawing the text of the Template is not mark able (not a text)n so at least in Okular, LibreOffice Draw or Adobe Acrobat Reader. The behave in exporting DXF and SVG is completely different. With SVG's there is no real problemn the text is redable and markable(it is "real" text) but with DXF's the template is not exported. I have a PDF and a DXF file attached.
Not sure this can be fixed as we use a Qt function to output our PDF files. I found posts on StackOverflow from other people with this issue, but none of the posts had real solutions.

As mentioned in the Limitations section of TechDraw_ExportPageDXF, the template is not included in exported DXF. This would require converting the SVG template into FC geometry and then to DXF.
User avatar
tobiasfalk
Posts: 93
Joined: Fri Feb 05, 2021 2:35 pm

Re: TechDraw PDF export, exports Template text not as text

Post by tobiasfalk »

Ok, thx.
Dos that mean that when the Template is FC geometry that it would be exported? If yes is it possible to to create a template as FC geometry? By doing that there would not be a need to convert the SVG to FC geometry.
User avatar
bensay
Posts: 202
Joined: Wed Dec 22, 2021 8:14 pm
Location: Danmark
Contact:

Re: TechDraw PDF export, exports Template text not as text

Post by bensay »

@wandererfan @tobiasfalk
So apparently, there is a workaround made for SVG: https://github.com/FreeCAD/FreeCAD/blob ... #L731-L733.

A workaround for you then is to export as SVG and then convert the SVG to PDF
Post Reply