Links from Excel to a specific PDF page #3

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Elastik
User
Posts: 30
Joined: Tue Feb 15, 2022 1:01 pm

Links from Excel to a specific PDF page #3

Post by Elastik »

Hi to all,

In my previous post, I was asking how to create a link in an Excel cell that opens a specific page in a PDF...and you helped me achieve that. Thank you again.

Now I’m dealing with another problem on the same topic. I have a PDF file whose name contains the # character, and PDF-XChange Editor refuses to open it. I’m assuming the issue is caused by the # in the file name, because # is also used in Excel hyperlinks as a special symbol for applying multiple/ampersand identifiers (section 3. Fragment Identifiers).

Is there a way to overcame the problem without changing file name with other characater hack?

I hope my explanation is clear.

PS: The Editor supports fragments [url]https://www.rfc-editor.org/rfc/rfc8118.html#page-3[/url]
User avatar
Sean - PDF-XChange
Site Admin
Posts: 611
Joined: Wed Sep 14, 2016 5:42 pm

Re: Links from Excel to a specific PDF page #3

Post by Sean - PDF-XChange »

Hi Elastik,

I'm afraid there is no obvious way to resolve that issue - the simplest workaround is simply to rename the PDF.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
User avatar
rakunavi
User
Posts: 1993
Joined: Sat Sep 11, 2021 5:04 am

Re: Links from Excel to a specific PDF page #3

Post by rakunavi »

Hello Elastik,

How about replacing any # characters in the filename with %23 using percent-encoding, then specifying it as the hyperlink address in Excel?

  • Wikipedia: Percent-encoding
    https://en.wikipedia.org/wiki/Percent-encoding
For example, if the filename is sample#999.pdf, you can specify it as follows.

  • pxce:file:///C:/Users/user/Documents/sample%23999.pdf#page=3
    pxce:file:///C:/Users/user/Documents/sample%23999.pdf#nameddest=page_3
Best regards,
rakunavi
Top needs for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FullScrnMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Sean - PDF-XChange
Site Admin
Posts: 611
Joined: Wed Sep 14, 2016 5:42 pm

Re: Links from Excel to a specific PDF page #3

Post by Sean - PDF-XChange »

Hi Rakunavi,

Thanks for the suggestion - let's see if that works.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623