title: Pechkin - Html to pdf converter - In Console application
body: <p>Can I use <a href="https://github.com/gmanny/Pechkin" rel="nofollow">https://github.com/gmanny/Pechkin</a> this to generate pdf files in console application?</p>
  
  <p>it works fine on wincows form application , although.</p>
  
  <p>Any code sample for console app will help.</p>
  
  <p>and can any 1 explain BeginInvoke , used in this sample </p>
  
  <pre><code> private void OnScPhase(SimplePechkin converter, int phasenumber, string phasedescription)
      {
          if (InvokeRequired)
          {
              BeginInvoke((Action)(() =&gt; { Text = ("New Phase " + phasenumber + ": " + phasedescription); }));
          }
          else
          {
              Text = ("New Phase " + phasenumber + ": " + phasedescription);
          }
      }
  </code></pre>