added some debugging code to pdf copy in showFinal