Actually, we are not calling the renderer directly. We traced the call back from XGraphics.DrawString. Given the snippet of code below if we try to draw the a string that contains "Hello & World" the pdf will contain "Hello". If we try "Hello + World" we get "Hello World". If we try "Hello World" we get "Hello World".
XGraphics gfx=XGraphics.FromPdfPage(doc.AddPage(new PdfPage()))
XStringFormat format = new XStringFormat();
format.Alignment=XStringAlignment.Center;
format.LineAlignment=XLineAlignment.Near;
gfx.DrawString(title1,
new XFont("Verdana",12,XFontStyle.Italic),
XBrushes.Black,
new XRect(TITLE_BOX_X,TITLE_BOX_Y,TITLE_BOX_WIDTH,TITLE_BOX_HEIGHT)
,format);
|