public static void ProcessPdf([QueueTrigger("tasks")] Model.Pdf pdf, TraceWriter log) { string document = pdf.Name; log.Info($"Processing file: {document}"); PdfTextReader.ExamplesAzure.FollowText(g_fileSystem, document); }
public static void ProcessPdfJson([QueueTrigger("tasks")] Model.Pdf pdf, TraceWriter log) { string document = pdf.Name; string inputfolder = $"{INPUT_PATH}{pdf.Path}"; string outputfolder = $"{OUTPUT_PATH}artigos/{pdf.Path}"; string outputfolderJson = $"{OUTPUT_PATH}artigosJson/{pdf.Path}"; log.Info($"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}: Processing file: {document}, inputfolder={inputfolder}, outputfolder={outputfolder}"); //PdfTextReader.ExamplesAzure.RunParserPDF(g_fileSystem, document, inputfolder, outputfolder); PdfTextReader.ExamplesAzure.RunCreateArtigosJson(g_fileSystem, document, inputfolder, "nul://", outputfolderJson); }
public File Create(Pdf pdf) { var file = new File() { Name = pdf.Name, Path = pdf.Path }; Files.Add(file); return(file); }