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

23 lines
680 B
Markdown

# PDF Specs
## 1. Generate Jekyll Datasheet file
```bash
jekyll-product-datasheeets.sh -> sh scripts/mkProductDataSheet.sh products/elena ->
```
```bash
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
```bash
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
```