From e14ed77faac829aa4f2067b2081c6219c95d9305 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 7 Nov 2019 23:24:12 +0100 Subject: Docs for PDF format --- README.txt | 3 +++ deal-converter.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 9a3a65a..c8b84fc 100644 --- a/README.txt +++ b/README.txt @@ -14,5 +14,8 @@ Supported formats: BER BHG BRI CDS CSV DGE DLM DUP PBN RZD. Formats are auto-detected based on file extension. To display deals on STDOUT, provide "-" as an output file name. To print deals to HTML file, use *.html output file. +To print deals to PDF file, use *.pdf output file. + +PDF output requires wkhtmltopdf in a patched-qt version. Web interface available: https://deal.emkael.info/ diff --git a/deal-converter.py b/deal-converter.py index 424ee6a..122053a 100644 --- a/deal-converter.py +++ b/deal-converter.py @@ -12,7 +12,9 @@ parser = argparse.ArgumentParser( epilog='Supported formats: BER BHG BRI CDS CSV DGE DLM DUP PBN RZD.\n' + \ 'Formats are auto-detected based on file extension.\n' + \ 'To display deals on STDOUT, provide "-" as an output file name.\n' + \ - 'To print deals to HTML file, use *.html output file.\n') + 'To print deals to HTML file, use *.html output file.\n' + \ + 'To print deals to PDF file, use *.pdf output file.\n\n' + \ + 'PDF output requires wkhtmltopdf in a patched-qt version.') parser.add_argument('--jfr', action='store_true', help='For PBN file, write only JFR DD fields') parser.add_argument('--columns', type=int, default=None, -- cgit v1.2.3