spren9er / gfm-pdf

Atom package for converting GFM (GitHub Flavored Markdown) documents to PDF using wkhtmltopdf
http://atom.io/packages/gfm-pdf
MIT License
6 stars 4 forks source link

PDF not generated on OS X #1

Open Crocmagnon opened 9 years ago

Crocmagnon commented 9 years ago

When compiling markdown in atom, HTML is generated but no PDF (output is set as either PDF or HTML+PDF) Though when using wkhtmltopdf (see below) in CLI, it works well.

wkhtmltopdf myfile.md myfile.pdf
spren9er commented 9 years ago

Did you set the correct path to your wkhtmltopdf binary in gfm-pdf settings? It should look like this

/my/path/wkhtmltopdf
Crocmagnon commented 9 years ago

I did a which wkhtmltopdf which showed :

/usr/local/bin/wkhtmltopdf

It seems to be the default value, but I also tried to hard set it in the settings. No luck.

It shows no error complaining it can't find the executable though.

Crocmagnon commented 9 years ago

Maybe this could be useful : I installed wkhtmltopdf with brew cask install wkhtmltopdf.

It works flawlessly using Terminal to generate the PDF from the HTML that gfm-pdfoutputs.

spren9er commented 9 years ago

Unfortunately I cannot reproduce the problem on my system. I'm running OS X, too. Maybe it has something to do with permissions:

http://superuser.com/questions/517953/how-do-i-download-wkhtmltopdf-on-a-mac-os-x#930118

Crocmagnon commented 9 years ago

I tried your suggestion with no luck, still only the html is generated and no complain from atom/gfm-pdf. Isn't there some debug information I could provide ?