Example #1
0
        public static void BuildSansCheatSheet()
        {
            string dir     = @"D:\Working\Chandam\Web\menu\";
            string title   = "సంస్కృత ఛందోరాజం";
            string caption = "ఛందం © తో పద్య సాహిత్యం మరింత రసమయం..!! [http://chandam.apphb.com] ";

            string s  = CheatSheet.BuildCheatSheet2(false, true, SortHelper.SortByCharLength(new List <Rule>(RuleHelper.GetSanRules())));
            string s2 = BuildHTML(title, s);
            string s3 = BuildHTML(title, s, false);

            File.WriteAllText(dir + @"SansChaMdOraajaM.html", s2, Encoding.UTF8);
            File.WriteAllText(@"SansChaMdOraajaM.html", s3, Encoding.UTF8);

            PDFOptions Options = PDFOptions.Report;

            Options.Caption  = caption;
            Options.Title    = title;
            Options.PageSize = PageSize.A1;
            new PDFUtil(Options).HTML2PDF(@"SansChaMdOraajaM.html", @"SansChaMdOraajaM.pdf");
        }
Example #2
0
        private void BuildCheatSheet(List <Rule> Rules, string file)
        {
            string s = CheatSheet.BuildCheatSheet2(false, false, SortHelper.SortByCharLength(Rules));

            File.WriteAllText(file, s, Encoding.UTF8);
        }