KiCad_BOM_Wizard icon indicating copy to clipboard operation
KiCad_BOM_Wizard copied to clipboard

PDF output not readable on Mac

Open awmt102 opened this issue 6 years ago • 2 comments

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).

awmt102 avatar Jul 09 '19 19:07 awmt102

Hiya @awmt102

Would you mind posting a copy of your config file. I'm hoping to replicated the issue. :D

HashDefineElectronics avatar Jul 10 '19 10:07 HashDefineElectronics

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.

awmt102 avatar Jul 10 '19 19:07 awmt102