Hello folks,
I am generating PDF file on click of button. The issue is the text output in the PDF converted a hyphen to a number symbol. For eg: "year-end" to "year#end"
This will only happen if I copy and paste text along with hyphen. Can someone suggest?
Discussion posts and replies are publicly visible
It could be that your hyphen character is actually an em dash, which is an extended Unicode character. I would guess that it isn't in the PDF font, so it is shown as a hash character instead.
Check if the it is any non-standard characters like em-dashes (—), en-dashes (–), or any other symbol that looks like a hyphen but isn’t (–, —, etc.). If there is any, replace with a regular hyphen (-)
(‐) This is the symbol that is converting to #.
The thing is client is copying the text from somewhere that includes this (‐) and it's long text. How we can solve in that case?
If I am manual type the text and putting a hyphen it's working fine because in manual typing we are using hyphen.