PdfDocument myPdfDocument=new PdfDocument(PdfDocumentFormat.Letter_8_5x11_Horizontal); Font FontBold=new Font("Courier New",9,FontStyle.Bold); PdfTextArea reportTest = new PdfTextArea(FontBold, Color.Black, new PdfArea(myPdfDocument, 50, 20, 750, 50), ContentAlignment.MiddleCenter, "testing Currency is ¥0.00 "); PdfPage newPdfPage=myPdfDocument.NewPage(); newPdfPage.Add(reportTest); newPdfPage.SaveToDocument(); myPdfDocument.SaveToFile("Example3.pdf");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)