system/meta/pdf-print.md
2024-07-02 21:56:23 +02:00

680 B

PDF Specs

1. Generate Jekyll Datasheet file

jekyll-product-datasheeets.sh -> sh scripts/mkProductDataSheet.sh products/elena ->
node ./node_modules/@plastichub/cli/build/main.js product-jekyll-datasheet --debug=true --products=. --product=$1

Where the template is at ${root/templates/site/product_datasheet.html

2. Run electron pdf

sh ./scripts/mkSpec.sh lydia-v4 - >

./scripts/mkSpec.sh : electron-pdf http://localhost:8008/products/$1/datasheet ./products/$1/resources/specs.pdf --browserConfig '{"show":true}' --outputWait=5000
cp -rf ./products/$1/resources/specs.pdf ./resources/$1-datasheet.pdf