Answers.Body: <p>Download the compiled binaries for your system from <a href="http://wkhtmltopdf.org/downloads.html" rel="nofollow noreferrer">http://wkhtmltopdf.org/downloads.html</a> to your server and extract to somewhere convenient.  The files need to be readable by the account running the webserver.  Then go to Administer &gt;&gt; System Settings &gt;&gt; Misc and enter the path to the wkhtmltopdf.</p>
  <p>WARNING: wkhtmltopdf is no longer under active development and its latest tagged release of 0.12.6 from <a href="https://github.com/wkhtmltopdf/wkhtmltopdf/tree/0.12.6" rel="nofollow noreferrer">June 2020</a> is insecure and should not be used (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-35583" rel="nofollow noreferrer">https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-35583</a>).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-06T18:17:13.393Z
Answers.Text: Great - if you accept it as the answer (green tick) then it helps others with the same question.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-12T02:49:33.530Z
Answers.Text: So I'm trying to install wkhtmltopdf. Did this so far - wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
  tar xf wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz to /tmp
  sudo mv wkhtmltopdf/usr/local/bin/wkhtmltox/bin/wkhtmltopdf
  sudo chmod +x /usr/local/bin/wkhtmltox/bin/wkhtmltopdf
Answers.UserDisplayName: Joe McLaughlin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-12T02:50:49.847Z
Answers.Text: Does it matter that wkhtmltopdf is in /usr/local/bin/wkhtmltox/bin/wkhtmltopdf? Or must wkhtmltopdf be in /usr/local/bin?
  And - for Path to wkhtmltopdf executable at Administer -> System Settings -> Misc ((Undelete, PDFs, Limits, Logging, Captcha, etc.) - not sure exactly what to enter    
  
  Is it /var/www/[xxx]/[mysite]/sites... something? 
  
  Any help appreciated!
Answers.UserDisplayName: Joe McLaughlin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-12T11:11:03.463Z
Answers.Text: It can be anywhere, providing the id running your webserver can run it.  The 'path' under Administer > System Settings > Misc is just the OS path - eg /usr/local/bin/wkhtmltopdf
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-11T09:34:21.103Z
Answers.Text: Doesn't work in a Windows environment under 4.7.23 - CiviCRM claims C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe where the executable is stored does not exist or is invalid.
Answers.UserDisplayName: Stephen Palmstrom
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2016-04-04T20:52:13.360Z
Answers.LastActivityDate: 2024-10-10T15:01:24.780Z
Answers.LastEditDate: 2024-10-10T15:01:24.780Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>Check this out: <a href="https://civicrm.stackexchange.com/questions/852/could-civicrm-4-5-or-4-6-make-it-easier-to-generate-large-numbers-of-pdfs-at-onc">Could CiviCRM 4.5 or 4.6 make it easier to generate large numbers of PDFs at once?</a></p>
  
  <p>I came across that by googling wkhtmltopdf civicrm by the way ;)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-03T10:29:28.050Z
Answers.LastActivityDate: 2016-04-03T10:29:28.050Z
Answers.LastEditDate: 2017-04-13T12:53:13.207Z
Answers.UserDisplayName: JohnFF
Body: <p>How can i install wkhtmltopdf in civicrm and set the path to the exe. I am using Civicrm with Wordpress.
  Any help will be appreciated.</p>
  
Tags: <pdf>
Title: Installing and Setting wkhtmltopdf Path In Civicrm
ThreadText: # Installing and Setting wkhtmltopdf Path In Civicrm
  
  (Asked by: username_0 on 2016-04-02)
  
  How can i install wkhtmltopdf in civicrm and set the path to the exe. I am using Civicrm with Wordpress.
  Any help will be appreciated.
  
  **Tags:** pdf
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-04-04. Score: 4
  
  Download the compiled binaries for your system from <http://wkhtmltopdf.org/downloads.html> to your server and extract to somewhere convenient. The files need to be readable by the account running the webserver. Then go to Administer >> System Settings >> Misc and enter the path to the wkhtmltopdf.
  
  WARNING: wkhtmltopdf is no longer under active development and its latest tagged release of 0.12.6 from [June 2020](https://github.com/wkhtmltopdf/wkhtmltopdf/tree/0.12.6) is insecure and should not be used (<https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-35583>).
  
  > **Comments:**
  > **username_1**: Great - if you accept it as the answer (green tick) then it helps others with the same question.  
  > **username_2**: So I'm trying to install wkhtmltopdf. Did this so far - wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz tar xf wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz to /tmp sudo mv wkhtmltopdf/usr/local/bin/wkhtmltox/bin/wkhtmltopdf sudo chmod +x /usr/local/bin/wkhtmltox/bin/wkhtmltopdf  
  > **username_2**: Does it matter that wkhtmltopdf is in /usr/local/bin/wkhtmltox/bin/wkhtmltopdf? Or must wkhtmltopdf be in /usr/local/bin? And - for Path to wkhtmltopdf executable at Administer -> System Settings -> Misc ((Undelete, PDFs, Limits, Logging, Captcha, etc.) - not sure exactly what to enter      Is it /var/www/[xxx]/[mysite]/sites... something?   Any help appreciated!  
  > **username_1**: It can be anywhere, providing the id running your webserver can run it.  The 'path' under Administer > System Settings > Misc is just the OS path - eg /usr/local/bin/wkhtmltopdf  
  > **username_3**: Doesn't work in a Windows environment under 4.7.23 - CiviCRM claims C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe where the executable is stored does not exist or is invalid.  
  
  ---
  
  ### Answer by username_4 on 2016-04-03. Score: 2
  
  Check this out: [Could CiviCRM 4.5 or 4.6 make it easier to generate large numbers of PDFs at once?](https://civicrm.stackexchange.com/questions/852/could-civicrm-4-5-or-4-6-make-it-easier-to-generate-large-numbers-of-pdfs-at-onc)
  
  I came across that by googling wkhtmltopdf civicrm by the way ;)
  
  
  ---
  
  