Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: curdegn on August 04, 2008, 10:27:00 PM

Title: html2pdf on SME
Post by: curdegn 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..)
Title: Re: html2pdf on SME
Post by: groyk 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
Title: Re: html2pdf on SME
Post by: curdegn 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 (http://www.opentimetool.de/2+M52087573ab0.html) on the SME (requires "html2pdf").

Regards
Curdegn
Title: Re: html2pdf on SME
Post by: curdegn 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
Title: Re: html2pdf on SME
Post by: cactus 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.
Title: Re: html2pdf on SME
Post by: curdegn 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/ (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
Title: Re: html2pdf on SME
Post by: cactus 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/ (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?