Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF output not readable on Mac #14

Open
awmt102 opened this issue Jul 9, 2019 · 2 comments
Open

PDF output not readable on Mac #14

awmt102 opened this issue Jul 9, 2019 · 2 comments

Comments

@awmt102
Copy link

awmt102 commented Jul 9, 2019

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

@HashDefineElectronics
Copy link
Owner

Hiya @awmt102

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

@awmt102
Copy link
Author

awmt102 commented Jul 10, 2019

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 electron@1.8.8 --save --unsafe-perm=true --allow-root" which then allows npm install to run without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants