aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/resumejson_converter3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/resumejson_converter b/bin/resumejson_converter
index 4b29ae8..b848385 100755
--- a/bin/resumejson_converter
+++ b/bin/resumejson_converter
@@ -16,6 +16,7 @@ def main():
parser.add_argument("--resume", help="JSON Resume file to transform", default="resume.json")
parser.add_argument("--template", help="Specifie an jijna2 template file", default="templates/template.html")
parser.add_argument("--html", help="Html file output")
+ parser.add_argument("--pdf", help="Pdf file output", default="out/out.pdf")
parser.add_argument("--nopdf", help="Don't generate pdf", action="store_true")
args = parser.parse_args()
@@ -23,7 +24,7 @@ def main():
html = generate_html(resume, args.template, args.html)
if not args.nopdf:
- generate_pdf(html)
+ generate_pdf(html, args.pdf)
if __name__ == "__main__":
main()