Is it possible to transfer an enchantment?
You cannot transfer an enchantment from a tool onto a book in vanilla survival without cheats.
You can however combine two books (or any two items of the same type) and merge the enchantments with an anvil.
See here for more information on enchantments