Skip to main content
andrey_shel
Participant
January 6, 2017
Question

Web address with dash (-) in PDF generated by PDF-printer has gone wrong

  • January 6, 2017
  • 4 replies
  • 5298 views

If PDF file is created by PDF-printer from MS-word and has internet address with dash (  -  ) in this case the link is out of order. If in browser address line the dash is changed from keyboards it runs properly. Anybody knows how it fix?

This topic has been closed for replies.

4 replies

Participant
November 4, 2020

...looks like the issue is still existing and not limited to web adresses... 

 

I have a email address (abc@X-XXXX.de) added to the footer of my word file, the email address contains a '-' (minus) and if I copy&paste it to the mail program, I have no issue.
If I convert it to a PDF, copy&paste the address to a email, I get an DNS error after sending. The error message complain about a not allowed sign (U+2010, DNS domain xn--XXXXX-bg0c.de does not exist). BTW, the mail address is automatically recognized as email (mailto:) by the PDF (-> clickable). 

 

If I place the same email address to the normal text area (not the footer), I have no issue...
If I use the O365 build in 'Adobe PDF maker', I have no issue too... 

 

The issue is not limited to the mail program as this happens at different ones and at different PCs. 

 

I'm using Win10/O356 and Adobe Acrobat Pro DC 2020.012.20048. Happens with PDF compatibility to 1.6 and PDF A/1b:2005 (hadn't tried others...).

 

Any hints?

alexander_x123
Participant
January 26, 2020

I have the same problem.  In my case, the hyphen (dash, minus-sign) is the last character in the URL.   Here are more specifics about what's going on.

Contrary to what Machel Kazlow said, the hyper-link is active.  Clicking on the link does cause an attempt to open a page in the browser.  The page is not found.  Upon inspection of browser's address line, inspecting the URL which failed, the problem causing the URL to fail becomes clear.  During PDF creation, the hyphen (dash) is being interpreted as a line continuation, or escape of some sort.  The resultant URL no longer ends at the hyphen; additional text has been appended.  What happens during PDF creation is that the URL does not terminate at the final hyphen, and instead consumes all following white space in the document until it reaches a token (word) in the document, which it appends to the URL.  

This is happening when I convert a Microsoft Word document into a PDF.  I am working on a Mac.  I have the latest Word for Mac, which is Version 16.32, but I had the same problem with Word 2011 for Mac.  I am creating the links in two different ways in Word, via "Insert" in the main menu, and also via "Link" in the ribbon.  The link works fine within Word, but fails when the document is converted to PDF via Print -> pdf -> Save as PDF.  

I have tried every variation that  I can think of, always with the same result.  If I could, I would rename the URL so it does not end with a hyphen, but that's not an option for me.  When Google Drive creates a share-able link, the link text (the name) is made up of random characters; probably one out of 64 of these random link names ends in a hyphen.  This problem will affect more people as more people use Google Drive and embed such randomly named links into their documents.

Apparently this bug has been around for many years, but prior to Google Drive such URLs ending in hyphen were rare, so there are not many reports about the problem.  This will grow.

alexander_x123
Participant
January 26, 2020

Work-around for problem of Word to PDF conversion of link with hyphen (dash) at the end:

Instead of "print -> pdf -> save as pdf", I did the following:

  --  Save As 

  -- File format:  "pdf"

  -- (radio button) "Best for electronic distribution ..."

  -- [export]

 

andrey_shel
Participant
January 8, 2017

Hi Michael,
the link was copied from browser address line and pasted into MS word document. After that:
1. If I create PDF file with built-in Microsoft Office tool or any other alternative PDF printer (like bullzip, doPDF etc) everything runs OK.
2. If PDF file is created by Adobe PDF-printer (Adobe distiller)  the links with dash are broken.

MichaelKazlow
Legend
January 9, 2017

There is no link in the document since you did not use the link tool. What you have is an auto-recognized link. I cannot tell you why it doesn't work properly. What happens if you create the PDF from the Adobe ribbon Create PDF item. It uses different technology than distiller. You could use the link tool to ensure the link works properly.

MichaelKazlow
Legend
January 8, 2017

Is the link created from the link tool or is the URL being auto-recognized? There are many different dashes and hyphens if the link is auto recognized and is not a true hyphen (as opposed to a dash) that could be the problem.