Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using ConsoleApp1.HTML;
- using ConsoleApp1.PDF;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string fileName = @"c:\temp\test.pdf";
- string[] userNames = { "Bob", "Cindy", "Fred", "Ted", "Sarah", "Frezt", "Jody", "Yopu", "Bob", "Cindy", "Fred", "Ted", "Sarah", "Frezt", "Jody", "Yopu" };
- HTMLManager htmlManager = new HTMLManager();
- string html = htmlManager.CreateHTML(@"F:\Users\getth\source\repos\ConsoleApp1\ConsoleApp1\HTML\PDFTemplate.htm", userNames);
- Console.WriteLine("Composed HTML:" + "\n" + html);
- Console.ReadLine();
- PDFManager pdfm = new PDFManager();
- pdfm.CreatePDF(fileName, html);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement