pdfsig: fix use after free
It can happen that destroying the pdf tries to log, which needs globalParams, so destroy globalParams last
Fixes issue #733 (closed)
It can happen that destroying the pdf tries to log, which needs globalParams, so destroy globalParams last
Fixes issue #733 (closed)