Copying textbooks is explicitly legal in India as part of case law, as "fair dealing". This was decided in 2016 and involved Oxford University Press and Cambridge University press, so the opponents were pretty powerful overall.
https://www.thehindu.com/news/cities/Delhi/University-copyin...
Wiki article because the hindu is paywalled: https://en.wikipedia.org/wiki/University_of_Oxford_v._Ramesh...