-1

I have a batch of pdf files (most of them are dissertations) in a directory. Some of them have bookmarks in the pdf which helps me to jump to topics easily. Now, I want to bookmark the rest of them.

It is there any script that can help me to tag or identify the book marked files from the others.

The closest I came was to use CoherentPDF which can pick bookmarks from each file.

cpdf -list-bookmarks myfile.pdf

For example lists the bookmarks in a single file. But, I could't get this to work for a batch of files (combining it with grep) for example.

Is there any way to do it?

Dellu
  • 139
  • 1
  • 11
  • 1
    Strange, why doesn't this question satisfy the guidelines? I am not asking for a recommendation here. I am simply asking how to design a script to pick files that have embedded bookmarks. – Dellu Jul 28 '21 at 17:00

1 Answers1

1

A simple script iterating over files in a directory may be all you need

for f in /Your/Directory/Path/*.pdf; 
do cpdf -list-bookmarks $f; 
done
Teejay Bruno
  • 1,716
  • 1
  • 4
  • 11