I’m using Openfire to organize chat between employees in my company, and I’m using plugin “Monitoring Service” by Jive Software to resolve contentious situations.
I discovered the non-english (russian in my situation) characters aren’t exported to PDF at all, but in webpage it displays correctly.
i’m sorry…
i don’t know java at all, english also is not my best-known language
you have to change souce and build plugin to get russian pdf.
on my freebsd it is:
/usr/ports/net-im/openfire/work/openfire_src/src/plugins/monitoring/src/java/org /jivesoftware/openfire/archive/ConversationUtils.java
add two imports: import com.lowagie.text.pdf.BaseFont;
import java.io.IOException;
add throws to definition of methods:
public ByteArrayOutputStream getConversationPDF(Conversation conversation) throws DocumentException, IOException {
private ByteArrayOutputStream buildPDFContent(Conversation conversation,Map<String, Font> colorMap) throws DocumentException, IOException {
change font definitions in both those methods
add this line as first to both methods: BaseFont bf = BaseFont.createFont("/path/to/unicode-font.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
and replace all “FontFactory.getFont(FontFactory.HELVETICA” to “new Font(bf” (10 entries)
just build plugins: #cd /usr/ports/net-im/openfire/work/openfire_src/build #ant plugins
if build is successfull, you can delete original plugin in admin console and upload your plugin from
/usr/ports/net-im/openfire/work/openfire_src/work/plugins