title: InvalidPDFException when viewing the Chinese content PDF using Primeface DefaultStreamedContent
body: <p>Using <strong>Primefaces 6.0</strong> and 
  <strong>JAVA 1.8</strong></p>
  
  <p>Using below code to view the PDF document using <code>DefaultStreamedContent</code>.</p>
  
  <pre><code>&lt;pe:documentViewer locale="en"  height="600" value="#{documentMBean.pdfFile}" id="pdfDocViewer" &gt;
  </code></pre>
  
  <p>Below code to get the Stream as pdfFile.</p>
  
  <pre><code>byte[] documentData = null;
  setPdfFile(new DefaultStreamedContent());
  documentData =//Getting the byte array from DB
  getPdfFile().setStream(new ByteArrayInputStream(documentData)); 
  getPdfFile().setContentType("application/pdf"); 
  getPdfFile().setContentEncoding("UTF-8");
  </code></pre>
  
  <p>When I upload and store a PDF file which contents Chineese charactes getting below exception in PDF Viewer.</p>
  
  <blockquote>
    <p>PDF.js v1.0.21 (build: f954cde) Message: InvalidPDFException</p>
  </blockquote>
  
  <p><em>Note: Plain text PDF which contents English characters working fine and able to view the PDF.</em></p>
  
  <p>I have tried to set different character-encoding such as UTF-8,UTF-16</p>
  
  <p>Please assist me how to resolve above exception. Where I can find PDF.js for further analysis ?</p>