Question: I want to convert Notes Richtext into PDF in a server program (preferably Java). Is there any sample code how to do that. Converting to HTML/MIME isn't an option since the conversion process is too lossy.

Answer: 
I did some tests with DXL, some XSLT code and XSL:FO, via FOP. It produced some PDF output. Project abandoned due to lack of funding (read: no customer).

The basics, in a recent document: <http://www.ibm.com/developerworks/xml/library/x-xslfo/>
You'll need to find some third-party software to help, as this isn't possible out of the box. Here's one that looks promising: [SWING Software's Lotus Notes Export to PDF](http://www.swingsoftware.com/pdf-converter/overview?gclid=CMnvuZ6xia8CFUXc4AodyGCa_Q)