Skip to main content
manjit.1486
October 15, 2024
Question

The text output in the PDF converted a hyphen to a number symbol.

  • October 15, 2024
  • 3 replies
  • 0 views

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?

3 replies

October 16, 2024

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.

somasundaram.d
October 17, 2024

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 (-)

manjit.1486
October 17, 2024

() 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.