Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
\n
و <br>
ولكن هذه الأنواع من الأحرف غير مدعومة من قبل مساحة أسماء Aspose.Pdf.Facades. لذلك، لجعل ذلك ممكنًا، أضفنا طريقة أخرى تسمى AddNewLineText() في فئة FormattedText من مساحة أسماء Aspose.Pdf.Facades.
يرجى الرجوع إلى كتلة التعليمات البرمجية التالية لإضافة علامة مائية متعددة الأسطر في ملف PDF موجود.
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void AddTextStampToPdf()
{
// Instantiate a stamp object
var logoStamp = new Aspose.Pdf.Facades.Stamp();
// Instantiate an object of FormattedText class
var formatText = new Aspose.Pdf.Facades.FormattedText("Hello World!",
System.Drawing.Color.FromArgb(180, 0, 0),
Aspose.Pdf.Facades.FontStyle.TimesItalic,
Aspose.Pdf.Facades.EncodingType.Winansi, false, 50);
// Add another line for Stamp
formatText.AddNewLineText("Good Luck");
// BindLogo to PDF
logoStamp.BindLogo(formatText);
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.