Adding pdf writer