Fix #1999 "PDF: don't store XForms document in cache"

- PDF output doesn't support user interaction
- this change prevents adding unneeded entries to the document cache