Question: are pdfs of books illegal?
Answer: Short answer: No, it's usually not legal. Exceptions apply, but they are exceptions; one can assume it is illegal until proven otherwise. Long answer: this basically comes down to whether it's legal to create a copy of copyrighted material.