Skip to content

PDF generations

Steps to add support for pdf-file generation

  1. Download and install the recommended html to pdf conversion tool:
    • WkHtmlToPdf from this
    • Choose right package, depending on your operating system.
  2. Check process start settings, for example VirtoCommerce.OrdersModule.Tests.ProcessHelperIntegrationTests:
    • WorkingDirectory
    • Arguments
  3. Starting of the conversion tool process:

    • like that:
        "c:\Program Files\wkhtmltopdf\bin\wkhtmltopdf" --dpi 300 --page-size A4 --encoding "utf-8" --viewport-size "1920x1080" input.html output.pdf   
    • for details, look at manual
    • Working with the Azure
    • coming soon..

Last update: June 9, 2020