All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
If you had violated the rights of some of the book authors, then you must seek their forgiveness or reconcile with them to pardon you, if possible.
Otherwise, you have to pay the value of the benefits that you made them miss and the harm that befell them. This should be estimated by the experts.
If you are not able to convey that right to the owners of the books, then you can give it in charity on their behalf.
For more benefit, please refer to Fatwa 179263.
For more benefit on violating copyrights, please refer to Fatawa 361939, 384226, 306484 and 83969.
Allah knows best.