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

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

private ApplyTextAdjust ( float tj ) : void
tj float
Результат void
        private void ApplyTextAdjust(float tj)
        {
            float adjustBy = -tj/1000f * Gs().fontSize * Gs().horizontalScaling;

            textMatrix = new Matrix(adjustBy, 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::ApplyTextAdjust