String quotation marks when exporting a Mathematica Grid as vector graphics
Running the following
agrid = Grid[{{Style["hello", Bold]}}]
ImportString[ExportString[agrid, "PNG"], "PNG"]
ImportString[ExportString[agrid, "EPS"], "EPS"]
spits out
hello
hello "he开发者_如何学Pythonllo"
That is, the EPS exporter included the quotation marks in the output. Same for PDF. Without the Grid
, all exporters leave out the quotation marks.
What magic do I need to get rid of the quotation marks in the PDF?
Add ShowStringCharacters->False to your Style.
精彩评论