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 네임스페이스에서 지원되지 않습니다. 따라서 이를 가능하게 하기 위해 Aspose.Pdf.Facades 네임스페이스의 FormattedText 클래스에 AddNewLineText()라는 또 다른 메서드를 추가했습니다.
기존 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.