I would like to convert a pdf drawing to png, and would like if pdf drawing line width is 1, then converted png output is 1 pixel. for example:
\documentclass[border=1pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) -- (1,1) -- (1,0) -- cycle;
\end{tikzpicture}
\end{document}
If I use convert -density 72 input.pdf output.png
, I got below output png (dimension is 31x31):
But if print the R value of each pixel in the png file, I got below output:
The right line is 1 pixel exactly, the bottom line used 2 pixel, and the diagonal line used 3 pixel.
I would like all lines output with 1 pixel.