I spoted a difference with the Text betwen the PDF export and the SVG export, this may be related to the fact that the PDF Text is not "Text"(viewtopic.php?t=69791) but it is a simple visual differance:
One can see a clear difference in the line thignes of the text and the spacing between the charecters(look at the bottom line), I used the "A4_LandscapeTD.svg" template for the test.
The PDF export:
The SVG Export and then converted to PDF with Inkscape:
The Template opend in Microsoft Edge:
In FreeCAD it self:
Visual differance in PDF and SVG exported Text
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- tobiasfalk
- Posts: 93
- Joined: Fri Feb 05, 2021 2:35 pm
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Visual differance in PDF and SVG exported Text
I believe that in order to get the exact same representation in the Svg, you would have to embed the font definition in the Svg. Otherwise font substitution will use something similar, but not necessarily identical.
That template specifies the font as "Arial" which is not available on all platforms, so some sans-serif font will be used as a substitution.
I'm no expert on this, so I could be talking rubbish.
Re: Visual differance in PDF and SVG exported Text
From long far zoom out, it's a known thing, that path text and font text renders different thicknesses, but not on this zoom level. Can you send both the SVG and PDF please?
- tobiasfalk
- Posts: 93
- Joined: Fri Feb 05, 2021 2:35 pm
Re: Visual differance in PDF and SVG exported Text
AS said I just used the Standard Template: A4_LandscapeTD.svg
Re: Visual differance in PDF and SVG exported Text
It is not astonishing that the visualization are different, there are some considerations to make even on how the PDF was rendered by the PDF viewer you ae using, some of them are not very precise in things like font kerning and spacing, PDF was thought with a subset of character in mind usually "professionally made fonts" with correct metrics and correct "boxes", usually supplied with the program itself and copyrighted.
You could try to switch from you PDF viewer (provide it is using a different rendering engine) and see if PDF visualization is different.
Regards
Carlo D:
You could try to switch from you PDF viewer (provide it is using a different rendering engine) and see if PDF visualization is different.
Regards
Carlo D:
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- tobiasfalk
- Posts: 93
- Joined: Fri Feb 05, 2021 2:35 pm
Re: Visual differance in PDF and SVG exported Text
In the Origonal post I used Adobe Acrobat Reader.
The SVG Export and then converted to PDF with Inkscape and viewn in KDE Okular: The SVG Export and then converted to PDF with Inkscape and viewn in MS Edge: The SVG Export and then converted to PDF with Inkscape and viewn in Gogle Chrome: This was less of an post to ask for fixing it imidiatly but more of documanting that this exists and the posebilaty that one will once look to try to make them all look more simelar. One way that could fix this quit easaly is to change from diractyl exporting to PDF to exporting to SVG and than convert to PDF with incscape or somthin other. This could be done if Incscape is found(a path to it is given)
The SVG Export and then converted to PDF with Inkscape and viewn in KDE Okular: The SVG Export and then converted to PDF with Inkscape and viewn in MS Edge: The SVG Export and then converted to PDF with Inkscape and viewn in Gogle Chrome: This was less of an post to ask for fixing it imidiatly but more of documanting that this exists and the posebilaty that one will once look to try to make them all look more simelar. One way that could fix this quit easaly is to change from diractyl exporting to PDF to exporting to SVG and than convert to PDF with incscape or somthin other. This could be done if Incscape is found(a path to it is given)