the book is licensed under CC by-nc-nd, and repacking in another format for distribution shouldn't be considered a derivative.
https://creativecommons.org/licenses/by-nc-nd/4.0/
You are free to:
Share — copy and redistribute the material in any medium or format
/IANAL