iTextSharp.text.pdf.parser.PdfContentStreamProcessor.SetTextFont.Invoke C# (CSharp) Метод

Invoke() публичный Метод

public Invoke ( PdfContentStreamProcessor processor, PdfLiteral oper, List operands ) : void
processor PdfContentStreamProcessor
oper iTextSharp.text.pdf.PdfLiteral
operands List
Результат void
            public void Invoke(PdfContentStreamProcessor processor, PdfLiteral oper, List<PdfObject> operands)
            {
                PdfName fontResourceName = (PdfName)operands[0];
                float size = ((PdfNumber)operands[1]).FloatValue;

                PdfDictionary fontsDictionary = processor.resources.GetAsDict(PdfName.FONT);
                CMapAwareDocumentFont font;
                PdfObject fontObject = fontsDictionary.Get(fontResourceName);
                if (fontObject is PdfDictionary)
                    font = processor.GetFont((PdfDictionary)fontObject);
                else
                    font = processor.GetFont((PRIndirectReference)fontObject);

                processor.Gs().font = font;
                processor.Gs().fontSize = size;
            }
PdfContentStreamProcessor.SetTextFont