#166 Fix PDF signature functionality