diff --git a/.gitattributes b/.gitattributes index 67c48ea..5dedd2c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ -* text eol=lf \ No newline at end of file +* text eol=lf +*.pdf binary \ No newline at end of file diff --git a/cli.py b/cli.py index a8e47e2..9553c83 100644 --- a/cli.py +++ b/cli.py @@ -79,7 +79,7 @@ def buildPdf(args): if args.verbose: print("build start") print("print url", url) - cmd = ["deno", "run","--unstable" ,"-A","tools/printPdf.ts", "--outDir", args.outDir, "--url", url] + cmd = ["deno", "run","--no-check","--unstable" ,"-A","tools/printPdf.ts", "--outDir", args.outDir, "--url", url] if args.browser_path: cmd.append("--chromeDir") cmd.append(args.browser_path) @@ -87,6 +87,11 @@ def buildPdf(args): print("cmd: ", " ".join(cmd)) p = subprocess.run(cmd) p.check_returncode() + cmd = ["java", "-jar", "tools/pdfbox-app-2.0.26.jar", "PDFMerger", "cover.pdf", args.outDir, args.outDir] + if args.verbose: + print("merge cmd: ", " ".join(cmd)) + p = subprocess.run(cmd) + p.check_returncode() commandList = { 'build': build, diff --git a/cover.pdf b/cover.pdf new file mode 100644 index 0000000..9f122f6 Binary files /dev/null and b/cover.pdf differ