I'm using function DocAutoBookmarksA from the API DLL.
It has problems with some of the font sizes.
Such call will fail:
DocAutoBookmarksA(hDocument, 1, "Arial,20,400,0,0", 1);
The target file is converted from the Microsoft Word or Notepad and contains paragraphs in Arial 20 (regular) (for Notepad all entire the document is printed using this font).
If I use font Arial 18 then DocAutoBookmarksA(hDocument, 1, "Arial,18,400,0,0", 1) successfully generates bookmarks.
A little research shows that following font sizes work:
12,18,24.
The following don't work:
19,20,21,22,23
Other sizes have not been tested.

Input PDF converted (using Amyuni driver) from the .doc file which contains text lines in ALL font sizes. Sizes listed above were never detected (for the Arial font at least, other fonts have not been tested).
Could you, please, suggest any workaround for this problem (or provide a fix)? I cannot use only "supported" fonts in the input documents...
Thanks.