title: itext pdfHtml: set margins
body: <p>I am using HTMLConverter to convert html to PDF and trying to set some margins. </p>
  
  <p>Existing code:</p>
  
  <pre><code>    ConverterProperties props = new ConverterProperties();
      props.setBaseUri("src/main/resources/xslt");
  
      PdfDocument pdf = new PdfDocument(new PdfWriter(new FileOutputStream(dest)));
      pdf.setDefaultPageSize(new PageSize(612F, 792F));
  
      HtmlConverter.convertToPdf( html, pdf,    props);
  </code></pre>
  
  <p>Can someone please advice on how to add margins? I used Document class to setMargin but not sure how does that make into the HTMLConverter's convertToPdf method.</p>