For your information, when I execute the code below for first time in my jupyter notebook, it is running with no problem:
In []: run txt2pdf.py Results/*.txt
Out []: Writing 'Results\A_2018_04_27_13_55.txt' with 80 characters per line and
60 lines per page...
PDF document: 1 pages
But during second time, I execute the same code (want it to run the latest version of the .txt after generated the latest version of the .txt file), it is not able to run:
In [] : run txt2pdf.py Results/*.txt
Out []: usage: txt2pdf.py [-h] [--font FONT] [--font-size FONT_SIZE]
[--extra-vertical-space EXTRA_VERTICAL_SPACE]
[--kerning KERNING] [--media MEDIA]
[--minimum-page-length MINIMUM_PAGE_LENGTH] [--landscape]
[--margin-left MARGIN_LEFT] [--margin-right MARGIN_RIGHT]
[--margin-top MARGIN_TOP] [--margin-bottom MARGIN_BOTTOM]
[--output OUTPUT] [--author AUTHOR] [--title TITLE]
[--quiet] [--subject SUBJECT] [--keywords KEYWORDS]
[--break-on-blanks] [--encoding ENCODING] [--page-numbers]
[--line-numbers]
filename
txt2pdf.py: error: unrecognized arguments: Results\A_2018_04_27_13_57.txt
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2
Any helpful solution will be very much appreciate! Thank you!