setBookmarksOutlineLevel() method deprecated

Hi,
we have discovered that the PDFSaveOptions method ‘setBookmarksOutlineLevel()’ has been deprecated, but we couldn’t find info on which method should be used instead to replace it.
Any help ?
Many thanks in advance.

@renato.mauro,

Thanks for your inquiry. Please use OutlineOptions.DefaultBookmarksOutlineLevel property instead of PdfSaveOptions.BookmarksOutlineLevel as shown below.

PdfSaveOptions options = new PdfSaveOptions();
options.getOutlineOptions().setDefaultBookmarksOutlineLevel(1);