How to print/render hidden text in output PDF using Java

Hi,

is it possible to change options for ‘print hidden text’ beforce saving a word document as pdf.
In MS Word you can modify options: 2020-01-27_15h55_44.png. How to set this flag within this code:
com.aspose.words.Document doc = ((WordSourceFile)this.inFile).getSourceDocument();
com.aspose.words.PdfSaveOptions options = new com.aspose.words.PdfSaveOptions();
options.setCompliance(com.aspose.words.PdfCompliance.PDF_15);
doc.save(this.outFile.getAbsolutePath(), options);

Thanks,
Jan

@optimal_dev

Please use LayoutOptions.ShowHiddenText property as shown below to get the desired output. You can use this property to get or set indication of whether hidden text in the document is rendered.

Document doc = new Document(MyDir + "input.docx");
doc.getLayoutOptions().setShowHiddenText(true);
doc.save(MyDir + "Document.LayoutOptions.pdf");