//Create a new PDF document PdfDocument doc = new PdfDocument(); //Add new PDF page PdfPage page = doc.Pages.Add(); //Create a new PDF text box field PdfTextBoxField tBox = new PdfTextBoxField(page, "text1"); //Set the location tBox.Bounds = new RectangleF(0, 0, 500, 40); tBox.Font = new PdfTrueTypeFont(new Font("Segoe UI", 12, FontStyle.Regular), true); //Set the multiline tBox.Multiline = true; //Set the text tBox.Text = "??? ????'?? ?'??? {he-IL};??? ?????? ???? {he-IL};???????? ???? {ar-SA};?????·???·???? {ja-JP};??????????? {ja-JP};???·?????·???·???? {ja-JP}"; //Enable the default appearance of the form doc.Form.SetDefaultAppearance(true); //Add the textbox field doc.Form.Fields.Add(tBox); //Save the document doc.Save("output.pdf"); //Close the document doc.Close(true); |