Q: I wonder if it is possible to change a Text Stroke Width. I mean I want to create :
1 - an autline of text with several different outline width
2 - a filled text but to make it a little bolder by changing its stroke width
A: Yes this is possible. To enable text stroke use element.GetGState().SetTextRenderMode (GState.TextRenderingMode.e_fill_stroke_text)
Also set the stroke color & color space and SetLineWidth to define the stroke width. For example:
GState gstate = element.GetGState();
gstate.SetTextRenderMode(GState.TextRenderingMode.e_fill_stroke_text);
// fill
gstate.SetStrokeColorSpace(ColorSpace.CreateDeviceRGB());
gstate.SetStrokeColor(new ColorPt(1, 0, 0)); // red
// stroke
gstate.SetFillColorSpace(ColorSpace.CreateDeviceCMYK());
gstate.SetFillColor(new ColorPt(1, 0, 0, 0)); // cyan
gstate.SetLineWidth(20);
writer.WritePlacedElement(element);