title: How to add dynamic header to generated PDF document
body: <p>Im using <a href="https://github.com/tuespetre/TuesPechkin" rel="nofollow noreferrer">TuesPechkin</a> to ceate Pdfs from dynamic Html.
  The body is easy as it can take a Html string, the header &amp; footer however only take Urls.
  I have them stored locally atm as html, I can bring them in to the document, but without any dynamic content.</p>
  <p>Is there a way to use Razor or similar to bring a value in like this -</p>
  <pre><code>var document = new HtmlToPdfDocument
  {
      GlobalSettings = new GlobalSettings(),
      Objects = 
      {
          new ObjectSettings 
          { 
              HtmlText = &quot;&lt;p&gt;Some Html&lt;/p&gt;&quot;,
              Footer = new FooterSetting { PageUrl = &quot;file://C:/file.cshtml?Name=name&quot; }
          }
      }
  };
  </code></pre>
  <p>Html looking something like</p>
  <pre><code>&lt;html&gt;
      &lt;p&gt;Name: @Request[&quot;name&quot;]&lt;/p&gt;
  &lt;/html&gt;
  </code></pre>
  <p>The project is just a class library so I believe it's missing some aspects needed to run razor?</p>
  <p>Thanks in advance for any input.</p>