Dompdf Problem in CentOS


dompdf is an useful plugin to create html to pdf file. It works fine in windows environment but it creates some problem for some version of CentOS operating system. For example, it doesn’t show any error in the browser. To fix this problem, try the following:

  1. open terminal window/shell command window.
  2. run the command:- yum install php-xml
  3. run another command:- yum install php-mbstring

The above two commands setup two important packages which is mandatory for using dompdf plugins. There is a possibility that these two packages were already installed in your OS. No matter than. If everything goes okay, then I think your dompdf plugin will now work fine.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.