Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Install WKHTML to PDF


    NOTE: Some installs use a non standard path, so the INI may need to be update to this path

    Code Block
    #Install Fonts
    yum -y install -y xorg-x11-fonts-75dpi
    yum -y install -y xorg-x11-fonts-Type1  
    
    #Install wkhtmltopdf
    yum -y install wget tar
    
    #RHEL8
    wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm
    sudo rpm -Uvh wkhtmltox-0.12.6-1.centos8.x86_64.rpm
    ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
    
    #RHEL9
    wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox-0.12.6.1-2.almalinux9.x86_64.rpm
    sudo dnf localinstall -y wkhtmltox-0.12.6.1-2.almalinux9.x86_64.rpm
    ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
    
    #All versions: Test wkhtmltopdf
    wkhtmltopdf http://www.google.com.ph google.pdf

    Update

...

  1. the PCR-360 Configuration

...

  1.  to specify the path to the converter.

    // this is the default path - only change this if it is different
    constants.PDF_CONVERTER_PATH = "/usr/bin/wkhtmltopdf"


  2. Install Poppler Utilities

    Code Block
    yum -y install poppler-utils


  3. Install ASpell

    Code Block
    yum -y install aspell


  4. Install Sendmail and MailX Utility

    Code Block
    yum -y install sendmail mailx
    systemctl enable sendmail
    systemctl start sendmail