Skip to main content
Participant
July 27, 2017
Question

Rename OCG Group - Javascript

  • July 27, 2017
  • 1 reply
  • 483 views

Hello,

First, sorry for my english, i'm french...

I actually use a script to rename layers with getOCGs().

The problem is for groups of layers, I have a group by page, as you can see on the picture, but it's not really a layer so it doesn't appear in the result of getOCGs().

How could i rename those groups ?

Thanks a lot...

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 27, 2017

I don't think you can do it using a script.

NaivylsAuthor
Participant
July 27, 2017

Ok, thanks. I hope somebody has another answer,

Is it possible to simulate pressing a keyboard key in acrobat javascript ? It's maybe a solution for my problem...

try67
Community Expert
Community Expert
July 27, 2017

naivyls  wrote

Is it possible to simulate pressing a keyboard key in acrobat javascript ?

That's not possible, either, I'm afraid.