title: DomPDF - addInfo (base64_encode) and setEncryption
body: <p>I am having an issue with DomPDF and base64_encode with setEncryption function.</p>
  
  <p>This is a sample of my code.</p>
  
  <pre><code>    // Render the HTML as PDF
      $dompdf-&gt;render();
  
      //Encode title into base64 and add it to PDF Meta
      $title_64 = base64_encode( $title );
      $dompdf-&gt;getCanvas()-&gt;get_cpdf()-&gt;addInfo( 'Subject' , $title_64 );
  
      //Locking pdf to allow printing only
      $dompdf-&gt;getCanvas()-&gt;get_cpdf()-&gt;setEncryption( '' , '' , array( 'print' ) );
  
      // Output the generated PDF to Browser
      $dompdf-&gt;stream( $post-&gt;post_name . ".pdf" , array( "Attachment" =&gt; TRUE ) );
  </code></pre>
  
  <p>So pretty much what is happening once PDF is downloaded all meta data is missing. </p>
  
  <p>As soon I remove <code>base64_encode</code> function that is wrapping <code>$title</code> Meta data is back.</p>
  
  <p>Also if I keep <code>base64_encode</code> but I remove </p>
  
  <p><code>$dompdf-&gt;getCanvas()-&gt;get_cpdf()-&gt;setEncryption( '' , '' , array( 'print' ) );</code> </p>
  
  <p>Everything seems to be working but I am able to modify PDF which I don't want.</p>
  
  <p>As my end result I should be able only to print PDF which is what i have now + all Meta data to be </p>
  
  <p><code>base64_encoded</code></p>
  
  <p>Did anyone encounter similar issue ?</p>