What library does is get a list of html/xhtml files, convert them to xhtml, download all referenced images and crate an .epub archive.
So if you want to create a book from pdf, from msword or txt files you should convert the contents to a list of html files and then use the library on them.