Set advanced properties when saving a document using Java to provide more precise control over the process.... for example, there is PdfSaveOptions for saving to PDF format...(e.g., DocSaveOptions , PdfSaveOptions ) and set its setPassword(String)...