≡ Menu

pdf generator

Error while loading shared libraries: libXrender.so.1 on Linux

I am trying to use wkhtmltopdf command to create and convert html pages to a pdf. However, I am running into errors though as follows when try to use wkhtmltopdf via a shell or Python script:
     Creating foo.pdf …
     ~/bin/wkhtmltox/bin/wkhtmltopdf: error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory
     Error: foo.pdf not found.

How do I fix this problem with out installing the xserver on my Ubuntu or Debian server?
[click to continue…]

Bash String Comparison: Find Out IF a Variable Contains a Substring

How do I determine whether a variable called spath=”/srv/www/cyberciti.biz/https” contains a substring called “cyberciti.biz”?
[click to continue…]