KiCad_BOM_Wizard
KiCad_BOM_Wizard copied to clipboard
PDF output not readable on Mac
Running the BOM wizard with HTML output works perfectly, but changing it to PDF generates a file that is not readable by Preview on Mac (or on an online PDF viewer).
Hiya @awmt102
Would you mind posting a copy of your config file. I'm hoping to replicated the issue. :D
I'm just using the provided config files.
This command works and generates a valid html file: /usr/local/bin/node "/Users/-----/KiCad_BOM_Wizard/KiCad_BOM_Wizard.js" "%I" "%O BOM.html" "HTML" This command generates a pdf, but it will not open as it appears to be corrupt: /usr/local/bin/node "/Users/-----/KiCad_BOM_Wizard/KiCad_BOM_Wizard.js" "%I" "%O BOM.pdf" "HTML_PDF"
I don't know if it is relevant but when running npm install in the KiCad_BOM_Wizard folder i get an error relating to electron. I overcome this by running "sudo npm install [email protected] --save --unsafe-perm=true --allow-root" which then allows npm install to run without error.