That actually is illegal in some circumstances, for example if the document is protected by copyright.