The calls "new Textbuilder" and "new TextFragment" take a long time

Hello,

the two calls “new TextBuilder(…)” and “new TextFragment()” take us several seconds.

Am I doing something wrong or is there another error?

Here is a small example (V24.9):

Document asposePDFDoc = new Document(“D:\temp\Test-Brief.pdf”)
Page pdfPage = asposePDFDoc.pages[0]
TextBuilder textBuilder = new TextBuilder(pdfPage)
Font font = loadFont(“Arial”)
Color color = new Color().fromArgb(71, 79, 86)

TextFragment textFrag = new TextFragment()
textFrag.text = “Test”
textFrag.setPosition(new Position(100, 400))
textFrag.getTextState().setFont(font)
textFrag.getTextState().setFontSize(7)
textFrag.getTextState().setForegroundColor(color)
textBuilder.appendText(textFrag)

Test-Brief.pdf (15.3 KB)

Here an example PDF

@c.dunsche
This code takes about a second in my environment.
Which is about the same as for an empty document (although the attached document has a lot of additional, undisplayed elements 2.png (51.6 KB)).
I wrote it - I’ll wait for the opinion of the development team and write to you later.

@c.dunsche
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-58502

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.