public static void main(String[] args) throws Exception {
DocViewer.initialize();
OfficeConverter converter = new OfficeConverter();
try {
converter.convert("/home/icode/Desktop/b.txt", "/home/icode/Desktop/b.pdf");
} catch (IOException e) {
e.printStackTrace();
}
DocViewer.destroy();