[Tex/LaTex] How to include LaTeX with PStrick macros figure generated using Inkscape

inkscapepstrickssvg

I generated a PStrick macros .tex file from a .svg using Inkscape 0.91 (Shift+Ctr+S, save as LaTeX with PStrick macros) but I am not able to include it in my document I have tried:

\documentclass{article}
\usepackage[pdf]{pstricks}
\begin{document}

\begin{figure}
    \centering
    \input{image.tex}
\end{figure}

\end{document}

But it seems that some packages is missing.
To try on your own if you don't want to install inkscape, you can save as a .tex file the following code, that I've generated using inkscape.

%LaTeX with PSTricks extensions
%%Creator: inkscape 0.91
%%Please note this file requires PSTricks extensions
\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
\begin{pspicture}(744.09448819,1052.36220472)
{
\newrgbcolor{curcolor}{0 0 1}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
\moveto(129.74527979,894.28571241)
\lineto(307.39757299,894.28571241)
\curveto(311.21360267,894.28571241)(314.2857132,891.21360188)(314.2857132,887.39757221)
\lineto(314.2857132,778.31671303)
\curveto(314.2857132,774.50068336)(311.21360267,771.42857283)(307.39757299,771.42857283)
\lineto(129.74527979,771.42857283)
\curveto(125.92925012,771.42857283)(122.85713959,774.50068336)(122.85713959,778.31671303)
\lineto(122.85713959,887.39757221)
\curveto(122.85713959,891.21360188)(125.92925012,894.28571241)(129.74527979,894.28571241)
\closepath
}
}
{
\newrgbcolor{curcolor}{0 0 1}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
\moveto(274.2857132,731.42858046)
\curveto(274.2857132,655.68667578)(207.76802226,594.2857297)(125.71429079,594.28572767)
\lineto(125.7142868,731.42858046)
\closepath
}
}
\end{pspicture}

Best Answer

use

\documentclass{article}
\usepackage{pstricks}
\usepackage{auto-pst-pdf}
\begin{document}

    \begin{figure}
        \centering
        \input{image.tex}
    \end{figure}

\end{document}

and run it with

pdflatex --shell-escape <file>

enter image description here

However: the PSTricks export from Inkscape is rubbish ...