title: Rotativa, ABCPdf and EO.Pdf don't work in Azure WEBSITES and I don't want to upgrade to Azure "Cloudapp"
body: <p>Given the circunstances (take them as a fact):</p>
  
  <p>1) Rotativa PDF (<a href="https://github.com/webgio/Rotativa" rel="nofollow">https://github.com/webgio/Rotativa</a>) uses an exe for creating PDFs, so it doesn't work on azure websites (no permission to execute that exe)</p>
  
  <p>2) ABCPdf has the same problem</p>
  
  <p>3) EO.Pdf has a similar problem (<em>"uses Windows GDI but Windows GDI is not supported by Windows Azure WebSite"</em>, <a href="http://www.essentialobjects.com/doc/4/install/deploy.aspx" rel="nofollow">http://www.essentialobjects.com/doc/4/install/deploy.aspx</a>)</p>
  
  <p>4) I don't want to have an Azure Cloudapp (which would allow to me to use Rotativa or ABCPdf). <strong>I'm fine with my Azure Website (except for the previous problems).</strong></p>
  
  <p>Is there an alternative solution? <br>
  <strong>Is there any other library for creating PDFs from HTML that can run on an Azure Website (not CloudService nor VM)?</strong></p>
  
  <p><br><br><br>
  <strong>Update nov-2014:</strong><br>
  I'm today using <strong>MvcRazorToPdf</strong>, it is great.</p>
  
  <p>Controller's code:</p>
  
  <pre><code>return new PdfActionResult(palletReception, (writer, document) =&gt;
  {
      document.SetPageSize(new Rectangle(792f, 612f));
      document.NewPage();
  })
  {
      FileDownloadName = "foo.pdf"
  };
  </code></pre>
  
  <p>View code:</p>
  
  <blockquote>
  <pre><code>A normal view with normal css.
  Must be accepted by iText XMLWorker
  
  Check this: http://demo.itextsupport.com/xmlworker/itextdoc/flatsite.html
  and this: http://demo.itextsupport.com/xmlworker/
  </code></pre>
  </blockquote>