How to specify font locations for PDF2SVG

Q:
How does PDF2SVG determine where fonts are located? On windows is it just c:\windows\fonts?

A:
The latest version of PDF2SVG now supports the option to pass in a xml file that specifies font substitutions. An example xml file is attached.

`
pdf2svg.exe --config config.xml in.pdf -o outdir

`

See the following documentation for how this file works.
http://www.pdftron.com/pdfnet/docs/PDFNetC/d9/d87/classpdftron_1_1_p_d_f_net.html#ab207296de9f0bef798345d52d272e7df

And here is an example xml file (or see attached).

`

<?xml version="1.0" encoding="utf-8" ?>

`

Can this config file be utilized from API as well (PDFNet, API for conversion of PDF to SVG).

Regards,
Shamit

From the PDFNet SDK API, you can use PDFNet::AddFontSubst:

http://www.pdftron.com/pdfnet/PDFNet/html/Overload_pdftron_PDFNet_AddFontSubst.htm