replacing pdf library