Decide by changing the JavaScript locale language as this is a bug. Decryption Primfaces will not find pt-BR, pt-PT:
<pe:documentViewer value="#{document}" locale="pt" height="800"/> <script type="text/javascript"> var src = document.getElementsByTagName("iframe")[0].src.replace('#locale=pt','#locale=pt-BR'); document.getElementsByTagName("iframe")[0].setAttribute('src', src); </script>
source share