Hi!
Looks like a bug in PDFsharp.
I presume the user changed the Negative Number Symbol from "-" to "_". But this UI change should have no effect on the generated PDF files, but it does.
After "/K" a PdfInteger will be written, so I presume a change in PdfWriter will fix it:
Code:
public void Write(PdfInteger value)
{
WriteSeparator(CharCat.Character);
this.lastCat = CharCat.Character;
WriteRaw(value.Value.ToString(CultureInfo.InvariantCulture));
}
But there are many other "value.ToString()" that should be changed to "value.ToString(CultureInfo.InvariantCulture)" to make PDF generation independent of user settings.
We'll fix this with PDFsharp 1.32 (coming out this week or next week or so).