Hello,
I tried your sample code in C# "Adding Text Stamp in the PDF File":
//open document
Document pdfDocument = new Document("input.pdf");
//create text stamp
TextStamp textStamp = new TextStamp("Sample Stamp Polish Chars ęąśłóńźżć");
//set whether stamp is background
textStamp.Background = true;
//set origin
textStamp.XIndent = 100;
textStamp.YIndent = 100;
//set text properties
textStamp.TextState.Font = FontRepository.FindFont("Helvetica");
textStamp.TextState.FontSize = 14.0F;
textStamp.TextState.FontStyle = FontStyles.Italic;
textStamp.TextState.ForegroundColor = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.Aqua);
//add stamp to particular page
pdfDocument.Pages[1].AddStamp(textStamp);
//save output document
pdfDocument.Save("output.pdf");
but with this differrence that I chose Helvetica font (core PDF font) and used Polish Characters in TextStamp. When I use Polish Characters in combination with Helvetica font the feature FontStyles.Italic dosen't work.
How to use Polish Characters or where can I change encoding?