Document toolboxDocument toolbox

(2022.1) Install Third Party Software used by PCR-360

  1. Install WKHTML to PDF

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

    #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 the PCR-360 Configuration 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

    yum -y install poppler-utils
  3. Install ASpell

    yum -y install aspell
  4. Install Sendmail and MailX Utility

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