Ejemplo n.º 1
0
        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);
            }
        }