public override void ToPdf(PdfWriter writer, Stream os)
{
if (color != null && !color.Equals(BaseColor.BLACK)) {
Put(PdfName.C, new PdfArray(new float[]{color.R/255f,color.G/255f,color.B/255f}));
}
int flag = 0;
if ((style & Font.BOLD) != 0)
flag |= 2;
if ((style & Font.ITALIC) != 0)
flag |= 1;
if (flag != 0)
Put(PdfName.F, new PdfNumber(flag));
if (parent != null) {
Put(PdfName.PARENT, parent.IndirectReference);
}
if (destination != null && destination.HasPage()) {
Put(PdfName.DEST, destination);
}
if (action != null)
Put(PdfName.A, action);
if (count != 0) {
Put(PdfName.COUNT, new PdfNumber(count));
}
base.ToPdf(writer, os);
}