title: C# NReco HtmlToPdfConverter Page Width
body: <p>I am trying to create a PDF file from a HTML string, basically the HTML is a Table with several columns. The problem is that when I generate the PDF file I am not able to see all the columns.</p>
  
  <p>I have tried several options but so far no luck:</p>
  
  <pre><code>var generator = new NReco.PdfGenerator.HtmlToPdfConverter();
  generator.CustomWkHtmlPageArgs = "--enable-smart-shrinking";
  generator.CustomWkHtmlArgs = "--page-width value";
  generator.PageWidth = Value;
  </code></pre>
  
  <p>Also all the HTML elements like body and table have width=100%</p>
  
  <p>How can I make the HTML to fit in one page?</p>
  
  <p>This is the HTML:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
     &lt;body &gt;            
     &lt;table border="1" width="100%"&gt;
        &lt;tr&gt;
           &lt;th &gt;Heat Id&lt;/th&gt;
           &lt;th &gt;Heat Order Id&lt;/th&gt;
           &lt;th &gt;MSP&lt;/th&gt;
           &lt;th &gt;Grade&lt;/th&gt;
           &lt;th &gt;Recipe&lt;/th&gt;
           &lt;th &gt;Shift&lt;/th&gt;
           &lt;th &gt;Crew&lt;/th&gt;
           &lt;th &gt;Start Date&lt;/th&gt;
           &lt;th &gt;End Date&lt;/th&gt;
           &lt;th &gt;Tap Date&lt;/th&gt;
           &lt;th &gt;Tap Wt. (Tons)&lt;/th&gt;
           &lt;th &gt;Scale Tap Wt. (Tons)&lt;/th&gt;
           &lt;th &gt;Cast Heat Wt.&lt;/th&gt;
           &lt;th &gt;Cast Slab Wt.&lt;/th&gt;
           &lt;th &gt;Charge Wt. (Tons)&lt;/th&gt;
           &lt;th &gt;Pseudo 1 Bucket&lt;/th&gt;
           &lt;th &gt;Scrap Wt. (Tons)&lt;/th&gt;
           &lt;th &gt;Scrap Flux Wt. (Tons)&lt;/th&gt;
           &lt;th &gt;Alloys Wt. (Lbs)&lt;/th&gt;
           &lt;th &gt;Tap Flux Wt. (Lbs)&lt;/th&gt;
           &lt;th &gt;MWH&lt;/th&gt;
           &lt;th &gt;Avg MW&lt;/th&gt;
           &lt;th &gt;KWH / Charge Ton&lt;/th&gt;
           &lt;th &gt;Tap To Tap Time A &amp; B Furnace (min)&lt;/th&gt;
           &lt;th &gt;Tap To Tap Time Single Furnace (min)&lt;/th&gt;
           &lt;th &gt;Power On Time (min)&lt;/th&gt;
           &lt;th &gt;Power On %&lt;/th&gt;
           &lt;th &gt;Delay Time (min)&lt;/th&gt;
           &lt;th &gt;Tons / Hr&lt;/th&gt;
           &lt;th &gt;Total O2&lt;/th&gt;
           &lt;th &gt;Total O2 SS&lt;/th&gt;
           &lt;th &gt;Total Gas&lt;/th&gt;
           &lt;th &gt;Total C&lt;/th&gt;
           &lt;th &gt;Tap Temp&lt;/th&gt;
           &lt;th &gt;Tap C&lt;/th&gt;
           &lt;th &gt;Tap O2&lt;/th&gt;
           &lt;th &gt;Ladle ID&lt;/th&gt;
           &lt;th &gt;Comments&lt;/th&gt;
           &lt;th &gt;Auto Preheat On Time (min)&lt;/th&gt;
           &lt;th &gt;Auto Preheat Energy (MWH)&lt;/th&gt;
           &lt;th &gt;Heating/Lancing Energy (MWH)&lt;/th&gt;
        &lt;/tr&gt;                  
     &lt;/table&gt;               
     &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>