This pdf has 3 levels of titles, I will only care the first 2 levels.
The particular feature of this pdf is that the first 2 levels of titles have the same font style and size, so we have to add additional regex condition to differentiate them.
Below is how I did it using "generate bookmark from page text"
- There is a bug, although I checed "title case". The first level is not "title case", the letters are all uppercase
Besides the bug I mentioned, I also have a suggestion. You know you can't generate a perfect bookmark as you like in a single step, you have to try several times to make things right. Evermap's autobookmark tool has a handy option called "insert bookmarks replace existing bookmarks". While in Editor, I have to select all previous wrong bookmark and deleted them first, then generate new. This is kind of inconvenience.