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)