FreeTextAnnot alignment

Product: PDFNet Node

Product Version: 9.4.0

Please give a brief summary of your issue:
How to align free text annotation?

Please describe your issue and provide steps to reproduce it:
I’m trying to align center my free text annotation

const txtannot = await PDFNet.FreeTextAnnot.create(doc, new PDFNet.Rect(100, 100, 350, 500));
await textAnnot.setContents('test text');
await textAnnot.setFontSize(8);


Styling information on WebViewer can be set by using Rich text. You can see the post below for more information:

1 Like