You are here

README.txt in Commerce Billy 7

Commerce Billy PDF
******************
Enables PDF donwload of invoiced and canceled orders.

Installation DOMPDF
*******************

1. Download dompdf with Composer

  composer require dompdf/dompdf

  Make sure that Composer's autoload file is included somewhere (for example
  with Composer manager).

2. Add dompdf fonts to public dir:

dompdf needs write access to its font directory.
Copy "dompdf/lib/fonts" to your public files directory:
  public://fonts (example: sites/default/files/fonts)

To check if everything is at the right place, you should find
  public://fonts/Courier.afm (for example at
  sites/default/files/fonts/Courier.afm).

Installation WKHTMLTOPDF
***********************
As alternative PDF converater WKHTMLTOPDF can be used:

1. Set variable 'commerce_billy_pdf_converter' to 'wkhtmltopdf'

2. Install WOKHTMLTOPDF - PHP Wrapper
libraries[phpwkhtmltopdf][download][type] = "get"
libraries[phpwkhtmltopdf][download][url] = "https://github.com/mikehaertl/phpwkhtmltopdf/archive/2.0.1.tar.gz"
libraries[phpwkhtmltopdf][directory_name] = "phpwkhtmltopdf"
libraries[phpwkhtmltopdf][destination] = "libraries"

Administration
**************
Got to: Store > Configuration > Billy invoice settings > PDF settings
        (/admin/commerce/config/billy-invoice/pdf)


Troubles
********
- Invoice links returns "Error generating PDF invoice. Please contact the
  website administrator." :
    Check your watchdog which contains information about the exception. Usually
    fonts are not correctly installed.

Credits
*******
Matthias Hutterer (mh86)
Klaus Purer (klausi)

File

modules/commerce_billy_pdf/README.txt
View source
  1. Commerce Billy PDF
  2. ******************
  3. Enables PDF donwload of invoiced and canceled orders.
  4. Installation DOMPDF
  5. *******************
  6. 1. Download dompdf with Composer
  7. composer require dompdf/dompdf
  8. Make sure that Composer's autoload file is included somewhere (for example
  9. with Composer manager).
  10. 2. Add dompdf fonts to public dir:
  11. dompdf needs write access to its font directory.
  12. Copy "dompdf/lib/fonts" to your public files directory:
  13. public://fonts (example: sites/default/files/fonts)
  14. To check if everything is at the right place, you should find
  15. public://fonts/Courier.afm (for example at
  16. sites/default/files/fonts/Courier.afm).
  17. Installation WKHTMLTOPDF
  18. ***********************
  19. As alternative PDF converater WKHTMLTOPDF can be used:
  20. 1. Set variable 'commerce_billy_pdf_converter' to 'wkhtmltopdf'
  21. 2. Install WOKHTMLTOPDF - PHP Wrapper
  22. libraries[phpwkhtmltopdf][download][type] = "get"
  23. libraries[phpwkhtmltopdf][download][url] = "https://github.com/mikehaertl/phpwkhtmltopdf/archive/2.0.1.tar.gz"
  24. libraries[phpwkhtmltopdf][directory_name] = "phpwkhtmltopdf"
  25. libraries[phpwkhtmltopdf][destination] = "libraries"
  26. Administration
  27. **************
  28. Got to: Store > Configuration > Billy invoice settings > PDF settings
  29. (/admin/commerce/config/billy-invoice/pdf)
  30. Troubles
  31. ********
  32. - Invoice links returns "Error generating PDF invoice. Please contact the
  33. website administrator." :
  34. Check your watchdog which contains information about the exception. Usually
  35. fonts are not correctly installed.
  36. Credits
  37. *******
  38. Matthias Hutterer (mh86)
  39. Klaus Purer (klausi)