\documentclass{article}
\usepackage{mfpic}
\opengraphsfile{example-mfpic}
\begin{document}
Using mfpic for diagrams and dvipdfm to produce pdf.

\begin{figure}
\input pwrsupply
\end{figure}
\vfill
\closegraphsfile
\end{document}
