title: Writing pdf content to java.io.Writer
body: <p>We have a pdf file with text and images which we need to write on <code>java.io.Writer</code> as a requirement. </p>
  
  <p>We were able to read the pdf in a <code>byte[]</code> but the <code>java.io.Writer</code> requires a <code>char[]</code> to be passed. This is resulting in file getting corrupted and we are not able to open the pdf file.</p>
  
  <p>Please suggest any workarounds though which this can be achieved.</p>
  
  <p>Let me know if more information is required.</p>