0

Drupal 7.59 / Civi 4.7.27

I use Views extensively, and would like to add https://www.drupal.org/project/views_data_export_pdf module.

As per the Module documentation, a prerequisite is the installation of wkhtmltopdf Library (https://wkhtmltopdf.org/), which should result in the following structure :

  • sites/all/libraries/phpwkhtmltopdf

  • sites/all/libraries/phpwkhtmltopdf/scr

  • sites/all/libraries/phpwkhtmltopdf/scr/Pdf.php

But I don't find those files in the wkhtmltox-0.12.4_linux-generic-amd64.tar.xz dowload, especially no Pdf.php

I am not a programmer, and thus not familiar with Libraries installation : any help would be welcome

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

5
  • 1
    Hi Jacques - since this is not a civicrm question i would suggest you ask it in drupal.stackexchange.com
    – petednz - fuzion
    Commented Apr 29, 2018 at 19:24
  • Hi Pete, yes of course, but it was just in case someone here would know Commented Apr 30, 2018 at 9:05
  • fyi we often just use the Print module for PDF buttons on Views displays
    – petednz - fuzion
    Commented Apr 30, 2018 at 11:17
  • Thank you Pete : I just installed drupal.org/project/printfriendly : but I can't have the button on a View Page (I have it only on Pages (without Views) and Webforms) : what did I miss ? Commented Apr 30, 2018 at 14:09
  • i meant drupal.org/project/print - it works for Views
    – petednz - fuzion
    Commented Apr 30, 2018 at 19:38

1 Answer 1

0

As Pete says, not really a Civi question ... but since it is here:

I think there is a typo in the installation instructions at https://www.drupal.org/project/views_data_export_pdf

The first step reads:

Place WkHtmlToPdf library under ...

but should be:

Place phpwkhtmltopdf library under ...

phpwkhtmltopdf provides the php files you listed, not WkHtmlToPdf

Note also that 'scr' in the file list should be 'src'

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.