pdf Sharp Font Caching thread safe?
PDFsharp is a .NET library for creating and modifying PDF documents.
Brought to you by:
pdfsharp,
stefan_lange
Great Library.
I am using PDF Sharp to produce a report, via a dll called from a web application.
The following line of code:
XFont fTitle = new XFont("Verdana", 20, XFontStyle.Bold); Caused an exception in PDFSharp.Fonts.TrueType.FontDescriptorStock.CreateDescriptor(XFont font)
Detail: Hash Table Insert method failed as key "Veranda(Bold)" already added.
Is this due to two people creating a report at the same time and this code segment not being thread safe? I have inspected the source and I can not see another explaination.
Any advice would be appreciated.
Thanks
Rob.