Debian Etch

Make sure your /etc/apt/sources.list has the contrib section enabled.

deb http://ftp.debian.org/debian/ etch main contrib
deb http://security.debian.org/ etch/updates main contrib

Install PrinceXML prerequisites and package:

apt-get install msttcorefonts cabextract
wget http://www.princexml.com/download/prince_6.0r6-1_i386.deb
dpkg -i prince_6.0r6-1_i386.deb

Install additional fonts for Chinese, Japanese, Korean (CJK)

apt-get install ttf-arphic-bsmi00lp ttf-arphic-bkai00mp ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ttf-arphic-ukai ttf-arphic-uming ttf-kochi-gothic ttf-kochi-mincho

Configure MindTouch to use PrinceXML

Edit your mindtouch.deki.startup.xml and add the following configuration element

<princexml-path>/usr/bin/prince</princexml-path>

 

Restart dekihost for changes to take effect.

CentOS 5, RHEL5

- Install PrinceXML static binary tarball:

wget http://www.princexml.com/download/prince-6.0r6-linux.tar.gz
tar xfzv prince-6.0r6-linux.tar.gz 
cd prince-6.0r6-linux
./install.sh

- Install the TrueType core fonts

NOTE: MindTouch 8.08 PDF export doesn't function properly if the TrueType fonts are not installed (see bug report for more info).  As a temporary workaround, you can edit the following file:

/var/www/dekiwiki/skins/common/prince.content.css

and add the following lines:

@font-face {
        font-family: sans-serif;
        src: url("/skins/fonts/gentium-basic/GenBkBasR.ttf");
}
@font-face {
        font-family: serif;
        src: url("/skins/fonts/gentium-basic/GenBkBasR.ttf");
}
@font-face {
        font-family: monospace;
        src: url("/skins/fonts/gentium-basic/GenBkBasR.ttf");
}

- Configure MindTouch to use PrinceXML

Edit your mindtouch.deki.startup.xml and add the following configuration element

<princexml-path>/usr/local/bin/prince</princexml-path>

Restart dekihost for changes to take effect.

Windows Server 2003, Source Install

For the few people who installed source on Windows Server 2003, you may need to point to the prince.exe file. Edit mindtouch.deki.startup.xml and add this:

<princexml-path>C:\Program Files\Prince\Engine\bin\prince.exe</princexml-path>

Restart dekihost for changes to take effect.

Tag page (Edit tags)

Files 1

FileSizeDateAttached by 
 configurePrince.sh
shell script for Deki VM to automate the installation of princexml
1614 bytes17:34, 22 Sep 2008peteeActions
Viewing 4 of 4 comments: view all
Can you use PrinceXML on older versions such as 8.05.2b or only on 8.08?
Posted 14:31, 18 Aug 2008
Only on 8.08 and above.
Posted 12:15, 5 Sep 2008
On Windows define the path to the exe in the Engine directory, e.g. <princexml-path>C:\Program Files\Prince\Engine\bin\prince.exe</princexml-path>. This worked for me. edited 04:53, 8 Sep 2008
Posted 19:01, 6 Sep 2008
(FYI) Prince 6.0 rev 7 was released in September.
If you have something unresolved problem check it out ! :)

http://www.princexml.com/releases/
Posted 01:12, 5 Oct 2008
Viewing 4 of 4 comments: view all
You must login to post a comment.