예제 #1
0
        public void Log(string id, Stream input, Artigo data)
        {
            MemoryStream memstream = new MemoryStream();

            _procParser.XMLWriter(data, memstream);

            memstream.Seek(0, SeekOrigin.Begin);
            var reader = new StreamReader(memstream);

            string pdfname = _filename.Filename;
            string article = reader.ReadToEnd();
            string edition = _filename?.InfoStats?.Header?.JornalEdicao ?? "";
            string result  = _convert.Convert(pdfname, id, article, edition);

            using (var writer = new StreamWriter(input))
            {
                writer.Write(result);
            }
        }
예제 #2
0
        public static string ConvertGN(string pdf, string article, string content)
        {
            var gn = new Converter2GN();

            return(gn.Convert(pdf, article, content));
        }