hotfix for PDF printing race condition.
PDF printing race condition fix
Merge branch 'hotfix/pdf'