@classmethod
    def raster(cls, fname, client):
        if cls.OldImageReader is None:
            import reportlab.platypus.paraparser as p
            cls.OldImageReader = p.ImageReader
            p.ImageReader = cls.NewImageReader
            from reportlab.pdfgen.canvas import Canvas as c
            c._drawImageNotVectorPDF = c.drawImage
            c.drawImage = drawImage
        return fname
We don't REALLY generate a raster image.
dataset/ETHPy150Open rst2pdf/rst2pdf/rst2pdf/extensions/vectorpdf_r2p.py/VectorPdf.raster