Rename OCG Group - Javascript

New Here ,
Jul 27, 2017

Copy link to clipboard

Copied

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

Layers group.png

How could i rename those groups ?

Thanks a lot...

TOPICS
Acrobat SDK and JavaScript, Windows

Views

78

Likes

Translate

Translate

Report

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

Rename OCG Group - Javascript

New Here ,
Jul 27, 2017

Copy link to clipboard

Copied

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

Layers group.png

How could i rename those groups ?

Thanks a lot...

TOPICS
Acrobat SDK and JavaScript, Windows

Views

79

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 27, 2017 0
Most Valuable Participant ,
Jul 27, 2017

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 27, 2017 0
New Here ,
Jul 27, 2017

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 27, 2017 0
Most Valuable Participant ,
Jul 27, 2017

Copy link to clipboard

Copied

naivyls  wrote

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

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 27, 2017 0
Naivyls LATEST
New Here ,
Jul 27, 2017

Copy link to clipboard

Copied

try67  a écrit

Naivyls   wrote

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

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

I'm afraid too !!!!

Thank's for your answers !

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 27, 2017 0