Esempio n. 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            pdfDocument myDoc  = new pdfDocument("TUTORIAL", "ME");
            pdfPage     myPage = myDoc.addPage();

            myPage.addText("Hello,World!", 200, 450, myDoc.getFontReference(predefinedFont.csHelvetica), 20);
            myDoc.addTrueTypeFont(@"verdana.ttf", "verdana");
            myPage.addText("Привет, мир!", 200, 250, myDoc.getFontReference("verdana"), 20);
            myDoc.createPDF(@"test.pdf");
            myPage = null;
            myDoc  = null;
        }