public void Process() { string basename = _context.Basename; Pipeline pipeline = _context.GetPipeline(); pipeline.Input($"{_context.InputFilePrefix}.pdf") .Output($"{_context.OutputFilePrefix}-stage3-retrieve.pdf") .Global <BasicFirstPageStats>() .StageProcess(RetrieveBlocks); _context.AddOutput("stage3", $"{_context.OutputFilePrefix}-stage3-retrieve.pdf"); }
public void Process() { var pipelineText = _context.GetPipelineText <TextSegment>(); var resultPipeline = pipelineText .ConvertText <CreateTreeSegments, TextSegment>(true) .ShowPdf <ShowTitleSegment>($"{_context.OutputFilePrefix}-titles.pdf") .Log <AnalyzeSegmentTitles>($"{_context.OutputFilePrefix}-analyze-segment-titles.txt") .Log <AnalyzeTreeStructure2>($"{_context.OutputFilePrefix}-tree.txt"); _context.SetPipelineText <TextSegment>(resultPipeline); _context.AddOutput("tree", $"{_context.OutputFilePrefix}-tree.txt"); }
public void Process() { var pipelineText = _context.GetPipelineText <TextSegment>(); var conteudo = pipelineText .ConvertText <TransformConteudo2, Conteudo>() .ToList(); var createArticle = new TransformArtigo(); var artigos = createArticle.Create(conteudo); createArticle.CreateXML(artigos, $"{_context.OutputFolder}/{_context.Basename}/artigos", _context.Basename); _context.AddOutput("artigosGN", $"{_context.OutputFolder}/{_context.Basename}/artigos/{_context.Basename}-artigo{{0}}.xml"); }