SSARHERPS / SSAR-species-database

SSAR North American Common Names Database
http://ssarherps.org/cndb/
GNU General Public License v3.0
2 stars 0 forks source link

Enable PDF download #89

Open mkoo opened 7 years ago

mkoo commented 7 years ago

Download the nicely formatted HTML version as a PDF!

tigerhawkvok commented 7 years ago

Are we able to get SSH access? The commands are running fine on my machine:

philip@ATHENA:~/Github/SSAR-species-database/pdf$ ./64/bin/wkhtmltopdf ./pdf-gen/1476753468.75-to-gen.html pdf-gen/ssar-common-names-pdf-1476753468.75.pdf 2>&1
Loading pages (1/6)
QSslSocket: cannot resolve SSLv3_client_method               ] 10%
QSslSocket: cannot resolve SSLv3_server_method
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
philip@ATHENA:~/Github/SSAR-species-database/pdf$

But failing remotely:

{"html_bits_written":1021790,"OS_Architecture":"64","file":"pdf-gen/ssar-common-names-pdf-1476753468.75.pdf","response":{},"return":139,"status":false,"error":"NO_SHELL_RESPONSE","cmd":"./64/bin/wkhtmltopdf ./pdf-gen/1476753468.75-to-gen.html pdf-gen/ssar-common-names-pdf-1476753468.75.pdf 2>&1","execution_time":0.0271797180176,"completed":1476753468.76,"requested_action":null}

Sample output that the program wkhtmltopdf will render:

ssar-common-names-pdf-1476753468.75.pdf

tigerhawkvok commented 7 years ago

Needs to be migrated to a different hosting solution to have SSH access to debug above issue