Hi Steve,
Thanks for using our products.
I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-34608. We
will investigate this issue in details and will keep you updated on the status
of a correction.
We
apologize for your inconvenience.
PS, As per my observations, the output file is 756KB when I have used the following code snippet.
[C#]
//open document<o:p></o:p>
Document pdfDocument = new Document("c:/pdftest/input.pdf");
//create text stamp
TextStamp textStamp = new TextStamp("Sample Stamp");
//set whether stamp is background
textStamp.Background = true;
//set origin
textStamp.XIndent = 100;
textStamp.YIndent = 100;
//rotate stamp
textStamp.Rotate = Rotation.on90;
//set text properties
textStamp.TextState.Font = Aspose.Pdf.Text.FontRepository.FindFont("Arial");
textStamp.TextState.FontSize = 14.0F;
textStamp.TextState.FontStyle = Aspose.Pdf.Text.FontStyles.Bold;
textStamp.TextState.FontStyle = Aspose.Pdf.Text.FontStyles.Italic;
textStamp.TextState.ForegroundColor =
System.Drawing.Color.Aqua;
//add stamp to particular page
pdfDocument.Pages[1].AddStamp(textStamp);
//save output document
pdfDocument.Save("c:/pdftest/Stampped_output.pdf");