Changing the PDF Logo does not seem to work when using wkhtmltopdf

(3 posts) (2 voices)
  1. I'm using myDBR 3.5 on Windows with IIS. PHP version 5.3.

    I've these lines to default.php
    $mydbr_defaults['export']['pdf']['logo'] = '....jpg'; // where filename.jpg is a image in user/images
    $mydbr_defaults['export']['wkhtmltopdf']['command'] = 'C:\wkhtmltopdf\wkhtmltopdf';

    The image at the top of PDFs is altered if wkhtmltopdf is disabled. But the default logo appears at the top of wkhtmltopdf rendered pages.

    I'd rather use wkhtmltopdf as the formatting is much better on wkhtmltopdf, but I do need to alter the logo. Is there solution for using both.


  2. myDBR Team, Key Master

    The wkhtmltopdf header is generated by the user/export_header_pdf.php-file. You can change the $logo-variable to change the logo used in the PDF-export.

    myDBR Team

  3. Thanks very much!


You must log in to post.