1
$\begingroup$

Simple codes:

pol = Polygon[{{1, 0}, {0, Sqrt[3]}, {-1, 0}}];
aa = Graphics[{Red, Opacity[0.2], EdgeForm[], pol}]
Export["cc.pdf", aa]

I just want to remove the edges when exporting it in pdf format.

enter image description here

$\endgroup$
3
  • $\begingroup$ Version 13.0 Your code seems to work. $\endgroup$ Jan 19, 2022 at 9:32
  • $\begingroup$ I use 13.0 on win10, and it has edges when exporting to a pdf file. $\endgroup$
    – zongxian
    Jan 19, 2022 at 10:54
  • $\begingroup$ I can confirm the behaviour in 12.3.1 for Microsoft Windows (64-bit) (June 24, 2021). As suggested in this answer, use Graphics[{Red, Opacity[0.2], EdgeForm[AbsoluteThickness[-1]], pol}]. $\endgroup$
    – Domen
    Jan 19, 2022 at 11:13

0

Browse other questions tagged or ask your own question.