Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
11

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

Participant ,
Nov 18, 2023 Nov 18, 2023

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

DEMO.PNG

 

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.

TOPICS
Scripting
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 19, 2023 Nov 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:

RobertTkaczyk_0-1700402202603.png

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 19, 2023 Nov 19, 2023
  1. I ve created HyperlinkTextDestination named as A1280# in InDesign

     

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

DEMO.PNG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 19, 2023 Nov 19, 2023

Can you share a sample document? 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 19, 2023 Nov 19, 2023

Anchor2.PNG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2023 Nov 20, 2023

Not sure what would you like me to do with a PDF?? 

 

I need InDesign file... 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 20, 2023 Nov 20, 2023

I ve created HyperlinkTextDestination named as A1# in InDesign

 

But in Pdf its shown as. DEMO.indd:A1#:79478

 

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.

Anchor2.PNG
 
IMG_20231120_173103.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2023 Nov 20, 2023

Like @Peter Kahrel said - InDesign is doing it in background ... but it should be possible to fix those names using JavaScript in Acrobat directly.

 

It's even possible to "inject" PDF with JavaScript - attached is a sample PDF I've produced some time ago - generated 100% automatically from a database.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2023 Nov 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 27, 2023 Nov 27, 2023
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines