Soffice options to convert from doc to pdf

Hi, is it available any soffice option to force the creation of bookmark from Headings while converting from doc to pdf ? From tests done bookmarks are not always created in the PDF even if the the doc there are Headings.
Thanks

If the Heading is not a heading but just formatted text to look like a heading then it will not be included in the Outline. Look in the Sidebar, in Navigator, to see what are really headings. You could use the Find and Replace, Format button, to find text that looks like headings but aren’t.

This recently commented on answer might be of interest, The Navigator does not show any headings (The "Headings" node is grayed out) [SOLVED!] - #5 by ajlittoz