TechDraw PDF export, exports Template text not as text

Discussions about the development of the TechDraw workbench
Post Reply
tobiasfalk
Posts: 17
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 6 times
FoldLinePen-1-2022-06-23.pdf
(334.62 KiB) Downloaded 12 times
User avatar
wandererfan
Veteran
Posts: 4766
Joined: Tue Nov 06, 2012 5:42 pm

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.
tobiasfalk
Posts: 17
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.
bensay
Posts: 37
Joined: Wed Dec 22, 2021 8:14 pm
Location: Danmark

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