forked from Computer_Society/open-goverance
Revert "fix: turns out wkhtmltopdf has been depreciated for two years"
This reverts commit 04b9be1fbc
.
This commit is contained in:
parent
90c073e353
commit
d04a677387
3 changed files with 6 additions and 4 deletions
|
@ -36,7 +36,7 @@ for d in */ ; do
|
|||
echo "$out_folder/$stripped.pdf"
|
||||
|
||||
# convert teh html to pdf
|
||||
puppeteer print "$stripped.html" "$out_folder/$stripped.pdf" 2> ./tmp.txt
|
||||
wkhtmltopdf -q --enable-local-file-access --no-stop-slow-scripts "$stripped.html" "$out_folder/$stripped.pdf" 2> ./tmp.txt
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
|
|
@ -39,7 +39,7 @@ for year in */ ; do
|
|||
|
||||
echo $output
|
||||
|
||||
puppeteer print "$stripped.html" "$output" 2>> ../errors.log
|
||||
wkhtmltopdf -q --enable-local-file-access --no-stop-slow-scripts "$stripped.html" "$output" 2>> ../errors.log
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
permittedInsecurePackages = [
|
||||
# for obsidian
|
||||
"electron-25.9.0"
|
||||
# for wkhtmltopdf
|
||||
"qtwebkit-5.212.0-alpha4"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -47,12 +49,12 @@
|
|||
|
||||
packages = {
|
||||
handovers = pkgs.writeShellScriptBin "format_handovers" ''
|
||||
export PATH=${pkgs.lib.makeBinPath [pkgs.puppeteer-cli bfom.defaultPackage.x86_64-linux]}:$PATH
|
||||
export PATH=${pkgs.lib.makeBinPath [pkgs.wkhtmltopdf bfom.defaultPackage.x86_64-linux]}:$PATH
|
||||
${./_scripts/format_handovers.sh}
|
||||
'';
|
||||
|
||||
minutes = pkgs.writeShellScriptBin "format_minutes" ''
|
||||
export PATH=${pkgs.lib.makeBinPath [pkgs.puppeteer-cli bfom.defaultPackage.x86_64-linux]}:$PATH
|
||||
export PATH=${pkgs.lib.makeBinPath [pkgs.wkhtmltopdf bfom.defaultPackage.x86_64-linux]}:$PATH
|
||||
${./_scripts/format_minutes.sh}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue