-
Creating discussion instead of an issue because I'm sure this is me misunderstanding something. I'm attempting to color text on an input field and there are extra characters being added at the beginning. I'm doing the following:
I got this sample code from @Hopding sample here. It works, as in my text is inserted into the field and it is colored red, but there are a couple extra characters. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Here is a runnable project that will reproduce the issue.
If you use VS Code you can open and run with debugger. |
Beta Was this translation helpful? Give feedback.
-
So the issue seems to be in the
|
Beta Was this translation helpful? Give feedback.
So the issue seems to be in the
PDFHexString.fromText()
method. It pads the start of the text and this is the source of the problem... I implemented a simple toHex function and all works as expected. Is there an issue with the PDFHexString.fromText() method that needs to be filed as a bug or am I using this method for the wrong purpose?