예제 #1
0
파일: Program.cs 프로젝트: karak/Geovanni
        private static void WritePdf(IEnumerable <string> aozoraText, string output, Layout layout)
        {
            ILatinWordMetric latinMetric = new PdfLatinWordMetric(fontSetting.LatinFont, layout.FontSize);
            var engine  = new LayoutEngine(layout, latinMetric);
            var printer = new PdfPrinter(output, layout, fontSetting);

            using (printer)
            {
                engine.SendTo(aozoraText, printer);
            }
        }