Creating a pdf is taking a long time: more than 15 minutes.