We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to modify the information of generated pdf file by aspose.word for java

image.jpg (157.6 KB)

@Shimo You can disable exporting generator name by setting the appropriate property in PdfSaveOptions.

Hi,I can not find any method name by ‘getExportGeneratorName/setExportGeneratorName’ in
aspose- word 21.7 for java! Why?
image.jpg (40.0 KB)

@Shimo This property was introduced in 21.8.0 version of Aspose.Words. Please try using the newer version.

hi,the method named by ‘getExportGeneratorName/setExportGeneratorName’ doesn’t work.image.jpg (38.7 KB)
My code is :slight_smile:

ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.setExportGeneratorName(false);
nodes.save(outputStream, SaveFormat.PDF);

@Shimo You should pass save option into the save method:

ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.setExportGeneratorName(false);
nodes.save(outputStream, pdfSaveOptions)

sorry,my fault

Thank you ,it works!
But how to remove the information when we convert excel or ppt to pdf!

@Shimo Regarding Aspose.Cells and Aspose.Slides, you should ask in the appropriate support forums.

A post was split to a new topic: Modify the information of generated PDF using Aspose.Words