Skip to main content
Participant
November 8, 2022
Answered

JSX Script for export text layer from Adobe InDesign into .pdf as text layer

  • November 8, 2022
  • 2 replies
  • 726 views

Adobe Each image in Adobe InDesign has a link or full path in Links, then the name is also in Layers. I'm interested in how to export a .pdf so that this data will be displayed in a text layer in a .pdf afterwards? This layer can also be a text layer with the name of the image directly on the image, it is not disturbing at all, it would be even better, of course, to set the Opacity to 0% otherwise. It's that I need to give the data to an external application to read it. Thanks for any advice on how to do this, because I find it hard to believe that something like this isn't already supported.

 

This topic has been closed for replies.
Correct answer Loic.Aigon

Yes, great. Thank you. It's working now. Problem was that I did not generate Static Caption. Can I also specify that text layer must be within range of image, not above below or at the side? This will be great then.


Just use the shift option below the align to field:

 

2 replies

m1b
Community Expert
Community Expert
November 8, 2022

Hi @letakij62669837, maybe you could ask on the Acrobat forum? I'm wondering if, in Acrobat, this information is preserved already. Or maybe the linked file's XMP data is accessible from the pdf? They might know in that forum.

Otherwise, as @Loic.Aigon suggests, live caption seems like a good candidate, and just use a paragraph or object style to make it "invisible".

- Mark

Loic.Aigon
Legend
November 8, 2022

@m1b Interesting idea to process the request in the PDF. However, I just had a quick look and I am not sure that image's metadata is part of the output PDF.  As you said, maybe other folks in the Acrobat forum can have a solution to deal with this in Acrobat.

Participant
November 8, 2022

I tried already with live caption which is good. But problem is that I want just the final DIR name of full path, for example. I don't need c:/something/underfile/dir/image.jpg but I just need to extract name of image, so image.jpg in text layer.

Loic.Aigon
Legend
November 8, 2022

Caption settings allow you to use the file name as you want, where is the trouble?

 

Participant
November 8, 2022

Yes, great. Thank you. It's working now. Problem was that I did not generate Static Caption. Can I also specify that text layer must be within range of image, not above below or at the side? This will be great then.