public void LogPdf(IPipelineDebug pipeline, TextStructure data)
        {
            if (data.TextAlignment == TextAlignment.CENTER)
            {
                pipeline.ShowLine(data.Lines, Color.Red);
            }

            if (data.TextAlignment == TextAlignment.RIGHT)
            {
                pipeline.ShowLine(data.Lines, Color.Blue);
            }
        }
Exemplo n.º 2
0
        IEnumerable <TT> PipelineTextLogPdf <TL>(IPipelineDebug pipelineDebug, IEnumerable <TT> stream)
            where TL : ILogStructurePdf <TT>, new()
        {
            TL logger = _factory.CreateInstance <TL>();

            logger.StartLogPdf(pipelineDebug);

            foreach (var data in stream)
            {
                logger.LogPdf(pipelineDebug, data);

                yield return(data);
            }

            logger.EndLogPdf(pipelineDebug);
        }
Exemplo n.º 3
0
        public void LogPdf(IPipelineDebug pipeline, TextSegment data)
        {
            var titles = data.OriginalTitle;

            if (titles.Length == 0)
            {
                return;
            }

            for (int i = 0; i < titles.Length - 1; i++)
            {
                var lines = titles[i].Lines;
                pipeline.ShowLine(lines, Color.Orange);
                pipeline.ShowText($"H{i+1}", lines[0], Color.Orange);
            }

            var lastTitleLines = titles[titles.Length - 1].Lines;

            pipeline.ShowLine(lastTitleLines, Color.Green);
            pipeline.ShowText(_id.ToString(), lastTitleLines[0], Color.Green);

            _id++;
        }
Exemplo n.º 4
0
 public PipelineText <TT> ShowPdf <TL>(IPipelineDebug pipelineDebug)
     where TL : ILogStructurePdf <TT>, new()
 {
     return(CreateNewPipelineTextForLogging(PipelineTextLogPdf <TL>(pipelineDebug, this.CurrentStream)));
 }
 public void StartLogPdf(IPipelineDebug pipeline)
 {
 }
 public void EndLogPdf(IPipelineDebug pipeline)
 {
 }