public static void Run()
        {
            //ExStart: ConvertPUBtoPDF
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Data();

            string fileName = dataDir + "halloween-flyer.pub";

            var parser = PubFactory.CreateParser(fileName);

            var doc = parser.Parse();

            PubFactory.CreatePdfConvertor().ConvertToPdf(doc, dataDir + "result_out.pdf");
            //ExEnd: ConvertPUBtoPDF
        }
        public static void Run()
        {
            //ExStart: EditMetaData
            string dataDir = RunExamples.GetDataDir_Data();

            string pubFile = dataDir + "document.pub";

            IPubParser parser   = PubFactory.CreateParser(pubFile);
            Document   document = parser.Parse();

            document.DocumentSummaryInfo.SetCategory("category");
            document.DocumentSummaryInfo.SetCompany("company");
            document.DocumentSummaryInfo.SetLanguage("language");

            document.SummaryInfo.SetComments("comments");
            document.SummaryInfo.SetKeywords("keywords");
            document.SummaryInfo.SetLastAuthor("last author");
            document.SummaryInfo.SetTitle("title");
            document.SummaryInfo.SetSubject("subject");
            //ExEnd: EditMetaData
        }