We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Change font size in existing pdf

Hello,
Can anyone tell me how to change size and font of text in existing pdf . Or how to change font size and text of document to be loaded from latex.

Hi Ranjeeta,


Thanks for contacting support.

In order to accomplish your requirement, please try following the instructions specified over Replace Text in a PDF Document (you only need to update the size and font for searched text).

In case you encounter any issue, please share the input PDF file.

Hello Nayyer,
Thank you for reply.
I implemented the solution but it is time consuming.
Say I have 2000 fragments in a document, loop will iterate 2000 times and it takes so much time.
Could you please suggest any other solution for the same.

Thank you.

Hi Ranjeeta,


Thanks for contacting support.

In order to update the TextFragment formatting, you need to traverse through individual element and update its properties. However concerning to the large amount of time being elapsed while updating the document, we request you to please share the input PDF file and code snippet along with font files, so that we can test the scenario in our environment. We are sorry for this inconvenience.