Reputation: 57
Here I have 2 PDF's where we have Hyphen used in the text of the document at the end of the fourth line of the PDF (see below.)
Where we have a text de - (cember)
in the next line.
In both the PDF's the '-' has been tagged as Hyphen Span. But while using the JAWS to read both the files, in one file it is reading as December
and another PDF file as De dash cember
.
PDF that reads december as de -(dash) cember
PDF that which reads december as december
I wish to confirm if it is related to a content stream.
Upvotes: 1
Views: 211
Reputation: 57
To read this text de - (cember)
as december, we need to make hyphen -
as soft hyphen by setting the actual text as the Unicode of the soft hyphen \u00AD
.
structureElement.setActualText("\u00AD");
Upvotes: 2