Add extra_params in pdf generation