title: Generate PDF with base64 encode string
body: <p>I am using an API which provides me base64 encoded content. It is mentioned that we can download the PDF file by saving the content to a .pdf file.</p>
  <p>In the API documentation, it's clearly mentioned</p>
  <blockquote>
  <p>A PDF that contains the contents of the invoice. You encode the
  content with a Base64 string to create a Base64-encoded .pdf file.</p>
  <p>You can query this field to download the invoice PDF for a specific
  invoice. After you query it, you can save the string to a .pdf file,
  then view the file in any PDF reader.</p>
  </blockquote>
  <p>I am using TCPDF to write the content in PDF file. But it generates a blank PDF file.</p>
  <blockquote>
  <p>$PDF = new PDF('Test Title', 'Test Subject');</p>
  <p>$PDF-&gt;GetTCPDF()-&gt;write(0, 0, '', '',
  base64_decode($this-&gt;Get(self::Body)), 0, 1, 0, true, '', true);</p>
  <p>$PDF-&gt;Download();</p>
  </blockquote>
  <p>Am I doing anything wrong?</p>