Font Color Problem

I am currently having a problem when stamping PDF documents with colored text. As you can see from the code snippet below, I have the text being formatted into red text, but it still displays the stamp as black. Any idea what is going wrong here?

//create PDF
PdfFileEditor pdfEditor = new PdfFileEditor();
MemoryStream newPDF = new MemoryStream();
Pdf pdf = new Pdf();
pdf.Save(newPDF);
newPDF.Seek(0, SeekOrigin.Begin);

//Begin Setting up watermark text
PdfFileStamp stamper = new PdfFileStamp(newPDF, newPDF);
FormattedText watermarkContent = new FormattedText("Hello World2 ", System.Drawing.Color.Red, System.Drawing.Color.White);
Stamp watermarkStamp = new Stamp();
watermarkStamp.BindLogo(watermarkContent);
watermarkStamp.IsBackground = false;
stamper.AddStamp(watermarkStamp);
stamper.Close();

//writing to file
FileStream fileStreamForm = new FileStream(@“c:\testPDF.pdf”, FileMode.OpenOrCreate, FileAccess.Write);
fileStreamForm.Write(newPDF.ToArray(), 0, newPDF.ToArray().Length);
fileStreamForm.Close();
fileStreamForm.Dispose();


Hi Lewis,

I have reproduced this issue at my end and logged it as PDFKITNET-25434 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,