adding pdf writer