On 14.02.2025 11:30, Stefan wrote:
Here is my use case:
I need to get the information on the original type (string or hex) as found in
the PDF document in a java app, since I need to display the original value in
case it was hex.
Why? Since the hex value is really an id, that can not be made into a string, the
conversion leads to unreadable results like "‘ÕÊ…²X%").
So I absolutely understand that this will increase the memory footprint, but
without it there is no chance for me solving my requirement.
Do you want to display it in your own application?
I also see my original reply was wrong, we do have the forceHexForm
flag. However from what I see it is always false. We could set it to
true here:
public COSString(byte[] bytes)
{
this(bytes, false);
}
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org