0

webSupergood recently announced that with ABCpdf 11 they are now officially supporting Font-Awesome. Is there any example on how to use that?

As of today, the link at the feature list page only redirects to the Font Awesome page.

I would merely like to add a Font-Awesome icon to my document, no need to render any external page.

Vinicius Rocha
  • 4,023
  • 4
  • 29
  • 38

1 Answers1

0

Font Awesome is supported by the new ABCChrome HTML engine in ABCpdf 11 - and the default settings are the ABCChrome engine with JavaScript enabled. You can convert a URL (including a "file://" URI) using Doc.AddImageUrl, or an HTML string with Doc.AddImageHtml. And the Paged HTML Example applies for HTML that may take up more than one PDF page.

If there is any latency/delay in accessing web fonts, you can make ABCpdf wait e.g.

    doc.HtmlOptions.RepaintDelay = 2000;
    doc.HtmlOptions.RepaintTimeout = 5000; // default
    int htmlID = doc.AddImageUrl(theURL);
overprint
  • 31
  • 1
  • 4