title: Rotativa HTML to PDF on ASP.NET MVC: how to create PDF as a landscape?
body: <p>I'm using Rotativa resources to create PDF files from my HTML page on an MVC ASP.NET project. Here is my code:</p>
  
  <p>Controller:</p>
  
  <pre><code>public class HomeController : Controller
  {
      public ActionResult Index()
      {
          return View();
      }
  
      public ActionResult ExportPDF()
      {
          return new ActionAsPdf("Index")
          {
              FileName = Server.MapPath("~/Content/Relato.pdf")
          };
      }
  }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>&lt;a href="@Url.Action("ExportPDF","Home")" class="hidden-print" ﻿&gt;EXPORT PDF&lt;/a&gt;
  </code></pre>
  
  <p>The PDF documents being created are in portrait layout. How could I set them into landscape layout?</p>
  
  <p>Cheers!</p>