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

How to sort bookmarks alphabetically?

Participant ,
Mar 29, 2025 Mar 29, 2025

Is it still not possible to sort bookmarks alphabetically?

 

Thanks

TOPICS
Create PDFs , Edit and convert PDFs , PDF
317
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
1 ACCEPTED SOLUTION
Community Expert ,
Apr 01, 2025 Apr 01, 2025

Hi,

Try this script I wrote some years ago from the console window:

function triSignets(signet) {
	if (signet.children!=null) {
		signet.open=true;
		var leSignet=signet.children;
		lesSignets=[];
		for (var i=0; i<leSignet.length; i++) lesSignets.push(leSignet[i].name);
		lesSignets=lesSignets.sort(function(a,b){return a.localeCompare(b)});
		for (var i=0; i<lesSignets.length; i++) {
			for (j=0; j<leSignet.length; j++) {
				if (lesSignets[i]==leSignet[j].name) {
					signet.insertChild(leSignet[j],i);
					break;
				}
			}
		}
		if (leSignet!=null) {
			for (var i=0; i<leSignet.length; i++) triSignets(leSignet[i]);
		}
	}
}
triSignets(this.bookmarkRoot);

@+

View solution in original post

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 ,
Mar 29, 2025 Mar 29, 2025

It can be done using a script, like this (paid-for) tool I've developed:

https://www.try67.com/tool/acrobat-sort-bookmarks
Please note, though, that the tool does NOT sort the pages the bookmarks point to, only the bookmarks themselves.

If you want the pages to be sorted as well I could adjust it for you so that it does it, so contact me privately to discuss it further.

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
New Here ,
Mar 29, 2025 Mar 29, 2025

It’s surprising this isn’t a built-in option yet. A manual workaround might be sorting them in a folder and reordering as needed.

 

[Spam link removed]

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 ,
Apr 01, 2025 Apr 01, 2025

Hi,

Try this script I wrote some years ago from the console window:

function triSignets(signet) {
	if (signet.children!=null) {
		signet.open=true;
		var leSignet=signet.children;
		lesSignets=[];
		for (var i=0; i<leSignet.length; i++) lesSignets.push(leSignet[i].name);
		lesSignets=lesSignets.sort(function(a,b){return a.localeCompare(b)});
		for (var i=0; i<lesSignets.length; i++) {
			for (j=0; j<leSignet.length; j++) {
				if (lesSignets[i]==leSignet[j].name) {
					signet.insertChild(leSignet[j],i);
					break;
				}
			}
		}
		if (leSignet!=null) {
			for (var i=0; i<leSignet.length; i++) triSignets(leSignet[i]);
		}
	}
}
triSignets(this.bookmarkRoot);

@+

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 ,
Apr 27, 2025 Apr 27, 2025

Thanks very much,

I might need a bit of help using this? Is this a terminal function, or is there a console within Acrobat where code can be used?

Henry

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 ,
Apr 27, 2025 Apr 27, 2025

I initiated a console window in Acrobat, but I am not sure how to run this script from the console window? When I try to paste the script into the scripts window, nothing happens?

Sorry, not my strong point

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 ,
Apr 27, 2025 Apr 27, 2025

Hi,

You have to select all the script in the console window then press the ENTER key (from the numerical panel).

Capture d’écran 2025-04-27 à 20.35.02.pngexpand image

@+

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 ,
Apr 28, 2025 Apr 28, 2025
LATEST

How to use the Console: https://acrobatusers.com/tutorials/javascript_console/


Acrobate du PDF, InDesigner et Photoshoptographe
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