Skip to content

Commit fdab0d0

Browse files
committed
989885-ug: Updated proper code.
1 parent a27d445 commit fdab0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Document-Processing/PDF/PDF-Library/NET/Working-with-Text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ PdfPage page = document.Pages.Add();
402402
//Create PDF graphics for the page.
403403
PdfGraphics graphics = page.Graphics;
404404
//Provide the path of the local *.ttf file
405-
PdfFont font = new PdfTrueTypeFont(new Font("Arial.ttf", 14));
405+
PdfFont font = new PdfTrueTypeFont("Arial.ttf", 14);
406406
//Draw the text.
407407
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0));
408408

0 commit comments

Comments
 (0)