meri (broken_gizmo) wrote,

Ask LazyWeb: InDesign Experts Edition: Complex hyperlinks and exporting to PDF.

Originally published at earth-shattering kaboom.. You can comment here or there.

Greetings, all!

I know that there might be one or two other InDesign experts out there reading this, and I figured that, instead of polling individually and perhaps missing other closet experts, I’d post here.

I’m working on a multi-hundred page document that is ultimately destined for PDF (not .epub, not .mobi, but PDF) publication. It contains several hundred internal and external hyperlinks. The internal hyperlinks are all handled, thanks to the wonder of bookmarks. And 99+% of the hyperlinks are handled, except for a few that match a very distinct pattern. Those few little hyperlinks are causing me a world-class headache.

The problem is the way the hyperlinks are structured. They aren’t your standard links with just alphanumerics, dashes, and dots. Instead, they’re complex links that contain multiple variables destined to be parsed by a script, and therefore contain question marks (?) and ampersands (&). When exporting the document to PDF, InDesign is completely stripping the aforementioned question marks and ampersands from the URLs. This, as you can imagine, is not working so well.

Here’s what I’ve tried so far, with no luck:

  • Escaping the special characters with a backslash
  • Doubling the special characters
  • Quoting the entire URL with double quotes
  • Quoting the entire URL with single quotes

Is my client (and hopefully not my project) just doomed, or is there a magic trick around this that I’ve missed? Is the answer really going to be that InDesign can’t handle a URL style that’s been around for eons, and that my client just needs to suck it up and simplify the URLs? (For the really curious, the URLs are used for click tracking. Of course.)

Help me, oh great and powerful interwebs.

( InDesign CS6 (version 8.0.1) , Mac OSX 10.8.3.)

Tags: design, indesign, lazyweb, technology

  • craftvent 2016!

    Originally published at $ cd ~meri. You can comment here or there. TL;DR: meri receives a knitting advent calendar in the mail,…

  • [TiML] We have met the enemy.

    Originally published at $ cd ~meri. You can comment here or there. TL;DR: In which I once again discover that I have not, in fact,…

  • “Left to my own devices” == “brain run amok.”

    Originally published at $ cd ~meri. You can comment here or there. “Sure!” says my brain. “The edging you’ve worked out…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded