create pdf from lotus notes document
public static boolean createPDF(String docPath, String pdfPath) { try { // start Lotus Notes NotesThread.sinitThread(); System.out.println("Connecting to " + SERVER); Session session = NotesFactory.createSession(SERVER, "My Notes ID file"); System.out.println("Opening database"); Database db = session.getDatabase(null, DATABASE); if (db == null) { System.out.println("Database not found!"); return false; } // open the document System.out.println("Determining document view"); Document doc = db.createDocument(); doc.openByUrl(docPath); System.out.println("Generating PDF"); doc.renderToRTItem(pdfPath); // save the document doc.save(); doc.close(); System.out.println("Done!"); return true; } catch (NotesException e) { e.printStackTrace();