I want to update the LastSavedBy header property of a small sample DXF file and used the following Java code and version 23.10 of the Aspose CAD Java library:
CadImage cadImage = (CadImage)Image.load(inputDir + testFileInputDxf);
SummaryInfoData summary = cadImage.getHeader().getSummaryInfo();
System.out.println(summary.getLastSavedBy()); // THIS RETURNS 'Admin' as expected
cadImage.getHeader().getSummaryInfo().setLastSavedBy("User");
System.out.println(summary.getLastSavedBy()); // THIS RETURNS 'user' as expected
cadImage.save(outputDir + testFileOutputDxf, dxfOptions); // THIS RETURNS NO ERRORS
However, opening the saved DXF file I do not see the change, e.g. the LastSavedBy property is still set to Admin. I get the same result for STP files.
Am I using the wrong approach? Please provide feedback on the best way to accomplish header updates.