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

DisplayPdfString() приватный Метод

private DisplayPdfString ( PdfString str ) : void
str PdfString
Результат void
        private void DisplayPdfString(PdfString str)
        {
            String unicode = Decode(str);

            TextRenderInfo renderInfo = new TextRenderInfo(unicode, Gs(), textMatrix, markedContentStack);

            renderListener.RenderText(renderInfo);

            textMatrix = new Matrix(renderInfo.GetUnscaledWidth(), 0).Multiply(textMatrix);
        }

Usage Example

            public void Invoke(PdfContentStreamProcessor processor, PdfLiteral oper, List <PdfObject> operands)
            {
                PdfArray array = (PdfArray)operands[0];
                float    tj    = 0;

                foreach (PdfObject entryObj in array.ArrayList)
                {
                    if (entryObj is PdfString)
                    {
                        processor.DisplayPdfString((PdfString)entryObj);
                        tj = 0;
                    }
                    else
                    {
                        tj = ((PdfNumber)entryObj).FloatValue;
                        processor.ApplyTextAdjust(tj);
                    }
                }
            }
All Usage Examples Of iTextSharp.text.pdf.parser.PdfContentStreamProcessor::DisplayPdfString