

def txt_to_pdf(self):
    'text to pdf conversion, use a2ps and ps2pdf command (a2ps & ghostscript)'
    file_obj = self.do_convert('a2ps --quiet --portrait --columns=1 --rows=1 -L 100 --no-header --borders=off -o - %(from)s | ps2pdf -sPAPERSIZE=a4 - %(to)s')
    return ['application/pdf', self]

dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/libraries/adlibre/converter.py NewFileConverter.txt_to_pdf/VarMisuse@25/137 `file_obj`->`self`