title: itext html to pdf without embedding fonts
body: <p>I'm following this guide in <a href="https://developers.itextpdf.com/content/itext-7-converting-html-pdf-pdfhtml/chapter-6-using-fonts-pdfhtml" rel="nofollow noreferrer">Chapter 6</a> of <a href="https://developers.itextpdf.com/content/itext-7-converting-html-pdf-pdfhtml" rel="nofollow noreferrer">iText 7: Converting HTML to PDF with pdfHTML</a> on adding extra fonts:</p>
  
  <pre><code>public static final String FONT = "src/main/resources/fonts/cardo/Cardo-Regular.ttf";
  public void createPdf(String src, String font, String dest) throws IOException {
      ConverterProperties properties = new ConverterProperties();
      FontProvider fontProvider = new DefaultFontProvider(false, false, false);
      FontProgram fontProgram = FontProgramFactory.createFont(font);
      fontProvider.addFont(fontProgram, "Winansi");
      properties.setFontProvider(fontProvider);
      HtmlConverter.convertToPdf(new File(src), new File(dest), properties);
  }
  </code></pre>
  
  <p>While it's working as expected and embedding subsets of the fonts being used, I'm wondering if there is a way for the resulting PDF document to <strong>not</strong> embed the fonts at all. This is possible when creating <code>BaseFont</code> instances and setting the <code>embedded</code> property to <code>false</code> and using them to build various PDF building blocks. What I'm looking for is this same behavior when using the  <code>HtmlConverter.convertToPdf()</code>.</p>