baruchel / txt2pdf

Text to PDF converter with Unicode support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

--line-numbers

debiantriage opened this issue · comments

Testing rather than using it is anger, but --line-numbers does not work for me with Debian's unstable python-reportlab.

--
Brian

@debiantriage do you happen to know the version number of reportlab?

E.g. issue:

import sys
import txt2pdf
print('Python %s on %s' % (sys.version, sys.platform))
print('txt2pdf %s' % (txt2pdf.PDFCreator.appName,))
print('reportlab %s' % (txt2pdf.reportlab.__version__,))

I have seen this (line numbers flag silently not working) with an older version of reportlab, v3.0.0.

_writeChunk() is NEVER called. Example, using the readme:

 py -3 txt2pdf.py --line-numbers --encoding latin1  README.md