Convert HTML saved from MS Word: The Font 'xxx"' is not found. This font is not supported

Hi,

I'm trying the evaluation version for a specific case. We get HTML saved from Microsoft Word 2010 as input and try to convert that to PDF. Apparently the HTML from MS Word gives ApplicationExceptions ("The Font 'verdana\"' is not found. This font is not supported.") when converted. I added a very simple document that demonstrates the bug. The code I used for the proof of concept is below.

We really need to be able to convert HTML from MS Word. Other PDF converters have no trouble with this, but since we already use Aspose components and value the great support and documentation, we would rather buy Aspose.Pdf. I hope you can help with this.

Regards,

Waatze Goldewijk


static void Main(string[] args)
        {
        <span style="color:#2b91af;">Pdf</span> pdf = <span style="color:blue;">new</span> <span style="color:#2b91af;">Pdf</span>();
        <span style="color:#2b91af;">License</span> lic = <span style="color:blue;">new</span> <span style="color:#2b91af;">License</span>();
        lic.SetLicense(<span style="color:#a31515;">@"D:\projects\POC\Aspose PDF\Aspose.Pdf.lic"</span>);
        
        <span style="color:blue;">using</span> (<span style="color:blue;">var</span> stream = <span style="color:#2b91af;">File</span>.OpenRead(<span style="color:#a31515;">@"D:\projects\POC\Aspose PDF\PDF_poc\This is some sample text.htm"</span>))
        {
            <span style="color:blue;">var</span> streamReader = <span style="color:blue;">new</span> <span style="color:#2b91af;">StreamReader</span>(stream);
            pdf.Import(streamReader);
            stream.Close();
            streamReader.Close();
            pdf.Save(<span style="color:#a31515;">@"D:\projects\POC\Aspose PDF\PDF_poc\test.pdf"</span>);
        }
    }</pre></p>

Hi Waatze,

Thanks for using our products and sharing the sample source code and source document with us. I tested the scenario and able to notice the same problem. For rectification, I logged this problem with ID: PDFNEWNET-33790 in our Issue Tracking System. We will further look into the details of this issue and will keep you updated via this forum thread on the status of correction.

We apologize for your inconvenience.

Thanks & Regards,

The issues you have found earlier (filed as PDFNEWNET-33790) have been fixed in Aspose.Pdf for .NET 8.7.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.