Hello Bartosz,
Thanks for considering Aspose.
I have tested the scenario using the code snippet and the Pdf file that you have shared and I am unable to reproduce the problem. I have tested it using Aspose.Pdf.Kit 3.3.0.0. The resultant Pdf after replacing text is in attachment, please take a look.
Please share some more information regarding your project.
FYI: This is Beta version of ReplaceText. The feature may not be supported well for some PDF files and we may be not able to fix it in short time.
Nayyer Shahbaz
Support Developer, Aspose Sialkot Team
About Us Contact UsKeep in touch! We're on
Twitter and
Facebook