It is illegal to copy a library book unless it is not available at a reasonable price. For instance, if the material is out of print and the available used copies are sold at unfair prices.