Skip to main content
Known Participant
November 19, 2023
Question

exporting PDF from InDesign.. Name of Text Anchor (in Pdf, its called as Named Destination) has chan

  • November 19, 2023
  • 2 replies
  • 1962 views

While exporting PDF from InDesign.. Name of Text Anchor (in Pdf, its called as Named Destination) has changed.

 

for e.g. I defined Text Anchor as A1280# in InDesign

 

But in Pdf its shown as. DEMO.indd:A1280#:79120

 

First is the indd file name : defined Anchor name : (some random number)

 

I just want to know is there any logic behind this random number.? .. can I prevent this from happening?

 

I'm asking as I am creating links in PDF using JavaScript which referred to this Destinations to jump.(which have standard naming conventions like A1#, A2#, A3#...., )

 

Please find the attached screenshot.

This topic has been closed for replies.

2 replies

Community Expert
November 20, 2023

Text anchors are always exported the way you see them, that's the way it (apparently) is. When I create a new document and insert a text anchor A1#, it is shown in the exported PDF as xyz.indd:A1#:1, where 1 is a number. It's unlikely to be random (too short), what it really is I don't know.

 

But anyway, the answewr to your question is that InDesign adds a number to the text anchor's name. There's nothing you can do to prevent that. If you want to get rid of that number you'll have to do that in Acrobat

Hetal5C4CAuthor
Known Participant
November 28, 2023

Thanks @Peter Kahrel .. even I thought the same that I have to do something in pdf.

 

For that I already asked in forum.

 

++±+++++++

Is there any way to get all the named destination s and can rename it using javascript.?.. as for me, text Anchor naming standard s are same.

While exporting pdf it appended InDesign file name and some random number along with original text Anchor name that I have to remove..

 

Could you please guide with it.

https://community.adobe.com/t5/acrobat-discussions/how-to-jump-to-the-named-destination/m-p/14243883#M439455

Robert at ID-Tasker
Legend
November 19, 2023

Can you share your example document?

 

In Scripting there are:

- HyperlinkPageDestination

- HyperlinkExternalPageDestination

- HyperlinkTextDestination

- HyperlinkURLDestination

 

and each one have Name property.

 

The only document I have gives me something like that:

There are lines with ":" - but without 3rd random number...

 

Hetal5C4CAuthor
Known Participant
November 19, 2023
  1. I ve created HyperlinkTextDestination named as A1280# in InDesign

     

    But in Pdf its shown as. DEMO.indd:A1280#:79120

Robert at ID-Tasker
Legend
November 19, 2023

Can you share a sample document?