Prevent black border around Free Text annotation in exported PDFs

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version

Detailed description of issue
I am implementing the Free Text annotation in our app’s PDF Viewer. Our app allows the downloading of marked up PDFs, and upon viewing the downloaded PDF containing a Free Text annotation, Adobe Reader (and Bluebeam) are rendering a black border around it.

How do I prevent this black border from rendering completely?

image (3)

Expected behaviour
image (2)

Does your issue happen with every document, or just one?
Every document

Code snippet
Here’s the outputted XML string:

“<freetext xmlns="\” page="0" rect="224,469,394.69499999999994,502" flags="print" name="1b410cfc-435d-a59c-2e58-f467b2c037a5" title="Chris Rauch" subject="Free Text" date="D:20240409142645-07’00’" width="0" creationdate="D:20240409115425-07’00’" TextColor="#E44234" FontSize="12">\n <trn-custom-data bytes="{"trn-auto-size-type":"auto","trn-wrapped-text-lines":"[\"please take a look at this and \",\"provide comments if necessary. \"]"}"/>\n \n \n \n \n \n

\n <span style="color:#ff0000">please take a look at this and provide comments if necessary.\n \n

\n \n \n \n \n \n please take a look at this and provide comments if necessary.\n <apref-replace objnum="null" gennum="null" file-name="null" transparent-background="null" x="224" y="502"/>\n 0 0 0 rg /Helvetica 12 Tf\n font: Helvetica 12pt; text-align: left; color: #E44234\n <apref-replace xmlns="\“>\n ”

Hello Crauch,

You can try setting the StrokeThickness property of the annotations to 0.

annotation.StrokeThickness = 0;

Best Regards,