Esempio n. 1
0
        static void Main(string[] args)
        {
            PDFParser pdfToText  = new PDFParser();
            iCal      iCalParser = new iCal();
            Parser    p          = new Parser();

            CalendarEvent[] events = p.Parse(pdfToText.GetString("bruno.pdf")).Where(i => i.Title == EventType.Standard).ToArray();
            byte[]          ics    = iCalParser.ICalSerializeToBytes(iCalParser.CreateICalendar(events), "hej");
            File.WriteAllBytes("output.txt", ics);
        }