Module Expr Str Import alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Assign NameStore Str ClassDef bases NameLoad body Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore ListLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Raise Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index BinOpAdd NameLoad Str NameLoad Assign NameStore ListLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Str Call NameLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Raise Return NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list
N/A N/A 
inkscape.py is an rst2pdf extension (e.g. rst2pdf -e inkscape xxx xxxx)
which uses the inkscape program to convert an svg to a PDF, then uses
the vectorpdf code to process the PDF.

.. NOTE::

    The initial version is a proof of concept; uses subprocess in a naive way,
    and doesn't check return from inkscape for errors.
 N/A sys os tempfile subprocess weakref WeakKeyDictionary rst2pdf.log log vectorpdf_r2p VectorPdf N/A rst2pdf.image N/A N/A N/A N/A sys platform startswith win N/A N/A progname N/A N/A N/A os path expandvars $PROGRAMFILES\Inkscape\inkscape.exe N/A N/A progname inkscape InkscapeImage N/A VectorPdf N/A N/A source_filecache N/A WeakKeyDictionary available N/A N/A self N/A N/A N/A True N/A classmethod __init__ N/A N/A self filename width height kind mask lazy srcinfo N/A None None direct None True None N/A N/A N/A client uri srcinfo N/A cache N/A N/A N/A self source_filecache setdefault client N/A N/A pdffname N/A N/A cache get filename N/A N/A pdffname None N/A N/A N/A tmpf pdffname N/A N/A tempfile mkstemp suffix .pdf N/A N/A N/A os close tmpf N/A N/A N/A N/A client to_unlink append pdffname N/A N/A cache N/A filename pdffname N/A cmd N/A progname N/A N/A N/A os path abspath filename -A pdffname N/A N/A N/A N/A N/A subprocess call cmd N/A N/A N/A OSError N/A e N/A N/A N/A N/A log error Failed to run command: %s N/A N/A join cmd N/A N/A N/A N/A self load_xobj N/A client pdffname N/A pdfuri N/A N/A uri replace filename pdffname N/A pdfsrc N/A client pdfuri N/A N/A N/A VectorPdf __init__ self pdfuri width height kind mask lazy pdfsrc N/A raster N/A N/A self filename client N/A N/A N/A Returns a URI to a rasterized version of the image N/A cache N/A N/A N/A self source_filecache setdefault client N/A N/A pngfname N/A N/A cache get N/A filename _raster N/A N/A pngfname None N/A N/A N/A tmpf pngfname N/A N/A tempfile mkstemp suffix .png N/A N/A N/A os close tmpf N/A N/A N/A N/A client to_unlink append pngfname N/A N/A cache N/A N/A filename _raster pngfname N/A cmd N/A progname N/A N/A N/A os path abspath filename -e pngfname -d N/A str N/A client def_dpi N/A N/A N/A N/A N/A subprocess call cmd N/A pngfname N/A N/A N/A OSError N/A e N/A N/A N/A N/A log error Failed to run command: %s N/A N/A join cmd N/A N/A None N/A classmethod N/A install N/A N/A createpdf options N/A N/A N/A  Monkey-patch our class in to image as a replacement class for SVGImage.
     N/A N/A N/A rst2pdf image SVGImage InkscapeImage N/A