title: iText html2pdf change size of the output PDF
body: <p>How to change output PDF page size when converting it from HTML with <code>iText html2pdf</code> library?  Tried this code: </p>
  
  <pre><code>ConverterProperties properties = new ConverterProperties();
  MediaDeviceDescription description = MediaDeviceDescription.createDefault();
  description.setHeight(1024);
  description.setWidth(1024);
  properties.setMediaDeviceDescription(description);
  HtmlConverter.convertToPdf(new File(htmlSource), new File("outputFile.pdf"), properties);
  </code></pre>
  
  <p>but, looks like it does not work, my output page is still A4</p>