CF 2021 Update 5 and JDK 11.0.17 Fails using the <cfdocument permissions attribute
After installing Update 5 for CF2021 and updating the JDK from 11.0.14 to 11.0.17
<cfdocument no longers works if the encryption attribute is specified.
We've tried document-2021.0.05.330109.jar (two versions, one from the update 1,831kb, and one sent to us from CF Support: 4,233kb)
i.e.
<cfdocument
filename = "MyFile.pdf"
format = "PDF"
fontembed = "yes"
mimetype = "text/html"
encryption="128-bit"
permissions = "AllowPrinting,AllowCopy">
My Content
</cfdocument>
Fails with no error message.
Removing
encryption="128-bit"
permissions = "AllowPrinting,AllowCopy"
works, although the pdf can then be edited.
Good:
<cfdocument
filename = "MyFile.pdf"
format = "PDF"
fontembed = "yes"
mimetype = "text/html" >
My Content
</cfdocument>
