Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
But in Pdf its shown as. DEMO.indd:A1280#:79120
Copy link to clipboard
Copied
Can you share a sample document?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Not sure what would you like me to do with a PDF??
I need InDesign file...
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.