[Gmsh] Problem: Save .geo as .pdf image vector file.

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Jun 9 13:57:27 CEST 2015

> On 08 Jun 2015, at 17:07, Victor Alcazar Contreras <vac at liceng.dk> wrote:
> Dear GMSH team,
> I need help printing to PDF a model I made in GMSH (attached ULS.geo) . As you can see in the attached test.pdf, when I save the view as *.pdf  the following happens:
> -          the legend has some odd triangles and it is not filled completely

This is strange. Attached is the pdf that I get when I export as PDF using the default options (i.e. with “Simple sort”) on my Mac:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 147810 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150609/fe577c27/attachment.pdf>
-------------- next part --------------

Everything looks OK in the rendering. Which version/OS of Gmsh are you using?

> -          the backslashes of the path to file have disappeared (2D text on the corner).

This is actually normal: we don’t do any pre-processing of the strings before exporting to PDF. You will need to escape the “\” with another “\” in order for the string to be rendered correctly, i.e. use “\\” in your annotations for vector PDF export.


> This only happens when choosing vector graphics and not raster graphics. How can I fix this?
> Best Regards,
> Victor Alcazar Contreras
> MSc Wind Energy Engineer
> Structural Analysis
> <test.pdf><ULS.geo>_______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 

More information about the gmsh mailing list