@sabkan
Thanks for the template vsdx file.
Please open the print preview of the generated vsdx file. You can see that the generated footer is centered. Please refer to the screenshot of the latest version 24.3 for the generated footer. centerfooter.PNG (13.8 KB)
@sabkan
I have tested your scenario/case using our latest version : Aspose.Diagram for Java v24.3 . It works fine and as expected.
Could you please share your current code that you are using. We will check and assist you accordingly.
Please refer to the following code and find attached the output pdf file for your reference. Outfile.pdf (119.5 KB)
// add page number at the right corner of header
diagram.getHeaderFooter().setHeaderRight("&p");
// set text at the center
diagram.getHeaderFooter().setHeaderCenter("Center of the header");
// set text at the left side
diagram.getHeaderFooter().setHeaderLeft("Left of the header");
// add text at the right corner of footer
diagram.getHeaderFooter().setFooterRight("Right of the footer");
// set text at the center
diagram.getHeaderFooter().setFooterCenter("Center of the footer");
// set text at the left side
diagram.getHeaderFooter().setFooterLeft("Left of the footer");
// set text font properties
diagram.getHeaderFooter().getHeaderFooterFont().setItalic(BOOL.TRUE);
diagram.getHeaderFooter().getHeaderFooterFont().setUnderline(BOOL.FALSE);
PS. we cannot evaluate issues with older version. Neither we can include fixes to older APIs set. The fixes are based on latest version/APIs set only.
Thanks.
if (!inputDir.exists()) {
System.out.println("Input directory is not valid");
} else {
Diagram diagram;
diagram = new Diagram(fileDir + File.separator + fname);
Date date = new Date();
diagram.getHeaderFooter().setFooterCenter(footerText + formattedDate + footerText1);
// to have to change to VSDX,VSD,VSS formats
diagram.save(fileDir + fname, SaveFileFormat.PDF);
@sabkan
Thanks for the screenshots.
We reproduced the problems you mentioned when using trial version.
Please set license or please set a temporary license.
We are sorry for the inconvenience.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): DIAGRAMJAVA-51194
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@sabkan
Yes,Please refer to the following code and find attached the output file for your reference using license.
Please check the two files, one of which is the output file with a license set, which is normal and without a watermark.
The issues you have found earlier (filed as DIAGRAMJAVA-51194) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou
@sabkan
It is great that you were able to resolve this issue on your end. In case you have further inquiries or may need any help in future, please let us know by posting a new thread in Aspose.Diagram’ forum.
Thanks.