Esempio n. 1
0
        public Pdf(BasicStudent student, IConverter converter)
        {
            Title     = $"{student.FirstName} {student.MiddleName} {student.LastName} Academic Records";
            Converter = converter;
            htmlData  = TemplateGenerator.GetHTMLString(student);

            setDocumentSettings();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Pdf mydoc = new Pdf("CSUN Student Report", TemplateGenerator.GetHTMLString());

//            var result = mydoc.SaveToFile("testfile.pdf");

            string output = mydoc.SaveToBase64String();

            Console.WriteLine(output);
        }