Skip to main content
Inspiring
June 10, 2021
質問

Installing ColdFusion Add-On Services PDFg for Linux - Success

  • June 10, 2021
  • 返信数 1.
  • 861 ビュー

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

 

  1. Install defaults(admin, solr, and pdfg) but change java path to /usr/java/latest(where I have java installed for ColdFusion).  Choose install directory of /opt/ColdFusion/addonservices
  2. In /opt/ColdFusion/addonservices/cfjetty change java path because it apparently didn't care what you said during install(I've created a bug report):

     #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.

 

    このトピックへの返信は締め切られました。

    返信数 1

    BKBK
    Community Expert
    Community Expert
    June 13, 2021

    Nice of you to share.