Copy link to clipboard
Copied
I have been at this for quite a few years and tried since ColdFusion 2016 to get PDFg working on Redhat Linux. I finally got it working and would like to share my steps in hopes of helping someone else:
Installed Coldfusion 2021 at /opt/ColdFusion
Download Linux Version of Add on Services
#SOLR_JVM="/opt/ColdFusion/addonservices/jre"
SOLR_JVM="/usr/java/latest"
Remove /opt/Coldfusion/addonservices/jre
3. Download fonts required for linux install
wget http://cgit.freedesktop.org/xorg/font/ibm-type1/snapshot/font-ibm-type1-1.0.3.tar.gz
tar -zxvf font-ibm-type1-1.0.3.tar.gz
cd font-ibm-type1-1.0.3
mv * /usr/share/fonts
4. yum -y install glibc.i686 zlib.i686 libX11.i686 ia32-libs expat.i686 freetype.i686 nss-softokn.i686 libxcb.i686 libXau.i686 libXext.i686 libSM.i686 libXrandr.i686 libXrender.i686 libXinerama.i686
(ia32-libs fails but doesn’t seem to effect working)
5. yum install xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps -y for Redhat version of X Window
Edit /etc/ssh/sshd_config to turn X11 Forwarding to ON from off
Service sshd restart
6. Restart cfjetty for good measure
cd /opt/ColdFusion/addonservices
./cfjetty restart
7. Go into CF Administrator and add cfhtmltopdf module and you should have the localhost there pointing to port 8993. Make sure you can stop and start it.
8. Restart Coldfusion in order to pick it up
Optional:
Add msttcorefonts msttcore-fonts-2.0-3.noarch to get better fonts
Then import them into CF by Server Settings-> Font Management then browse in /usr/share/fonts/msttcore to import them. Use the Font Family in your style tag.
Copy link to clipboard
Copied
Nice of you to share.