Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var localFileName = otherUser + "_" + timeStamp + ".pdf"
- PdfWriter.getInstance(document, FileOutputStream(path
- + File.separator
- + localFileName))
- document.open()
- for (message in messages) {
- var source = if (message.isSource!!) "Source" else "Translated"
- document.add (Paragraph(message.time + " " + message.language + "( " + source + " )" + ":" + message.message + "n"))
- )
- }
- document.close()
Add Comment
Please, Sign In to add comment