Koozali.org: home of the SME Server

html2pdf on SME

Offline curdegn

  • *
  • 26
  • +0/-0
html2pdf on SME
« on: August 04, 2008, 10:27:00 PM »
Dear All,

What is the proper SME-way to add "html2pdf"?

Many thanks and regards
(new at SME, coming from Debian..)

Offline groyk

  • *
  • 138
  • +0/-0
Re: html2pdf on SME
« Reply #1 on: August 05, 2008, 07:21:21 AM »
Hi

Take a look at www.fpdf.org

This is a great class for creating pdf files from php. There it addons that can make HTML to PDF

Offline curdegn

  • *
  • 26
  • +0/-0
Re: html2pdf on SME
« Reply #2 on: August 05, 2008, 07:12:38 PM »
Hi groyk,

I took a look at fpdf, seams to be a nice PHP class to use in my PHP applications. Many thanks for that link.

Concerning "html2pdf", the reason I need that one is because I am installing OpenTimetool http://www.opentimetool.de/2+M52087573ab0.html on the SME (requires "html2pdf").

Regards
Curdegn

Offline curdegn

  • *
  • 26
  • +0/-0
Re: html2pdf on SME
« Reply #3 on: August 10, 2008, 10:03:24 AM »
Hi,

"html2pdf" is just a bash script using the known "htmldoc" command line tool.
So my question is how to get the  htmldoc-package on the SME server?
Installing the RPMs (htmldoc and fltk) from Centos4.0 did not work. Well  the installation with yum went fine, but the htmldoc command does not work because of "undefined symbol: __cxa_pure_virtual" .
Any suggestions?

Many thanks and regards
Curdegn

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: html2pdf on SME
« Reply #4 on: August 10, 2008, 06:36:20 PM »
"html2pdf" is just a bash script using the known "htmldoc" command line tool.
So my question is how to get the  htmldoc-package on the SME server?
Installing the RPMs (htmldoc and fltk) from Centos4.0 did not work.
AFAIK it is not in CentOS repo, but in ATrpms.

Well  the installation with yum went fine, but the htmldoc command does not work because of "undefined symbol: __cxa_pure_virtual" .
Any suggestions?
Which version did you install and how did you install?

After quickly starting yum to install is from ATrpms it drags in a lot of packages which includes Xorg and even alsa (soundcard drivers for a htmldoc package?!). It seems that htmldoc needs a window manager (Xorg) which is not supplied in SME Server and should not be installed as this might pose a security risk.
« Last Edit: August 10, 2008, 06:42:23 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline curdegn

  • *
  • 26
  • +0/-0
Re: html2pdf on SME
« Reply #5 on: August 15, 2008, 11:44:18 PM »
I used the following RPM packages:
- htmldoc-1.8.27-1.el4.rf.i386.rpm
- fltk-1.1.6-1.2.el4.rf.i386.rpm (required by htmldoc)

Quote
After quickly starting yum to install is from ATrpms it drags in a lot of packages which includes Xorg and even alsa...
This seems quite strange. I tried the same, uninstalled above mentioned RPMs and installed "htmldoc-1.8.27-4.99.el3.at.i386.rpm" from ATrpms (http://atrpms.net/dist/el3/htmldoc/). Yum did not ask for any other dependency and installed if without any issues.

So far all seems to be alright.
Many thanks
Curdegn

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: html2pdf on SME
« Reply #6 on: August 16, 2008, 10:29:18 AM »
This seems quite strange. I tried the same, uninstalled above mentioned RPMs and installed "htmldoc-1.8.27-4.99.el3.at.i386.rpm" from ATrpms (http://atrpms.net/dist/el3/htmldoc/). Yum did not ask for any other dependency and installed if without any issues.
You should use el4 packages as SME Server is based on Centos 4. which in turn is based on RHEL 4. Did you issue this on a clean install or on a customized server?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)