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

Free Support Forum - aspose.com

Incorrect backgrounds on certain shapes when saving as PDF (Diagrams Java 19.10)

I’ve noticed that certain shapes, formatted with a few different themes, don’t render correctly when I convert to PDF.

  1. Open a new, blank document in Visio.
  2. In the Design menu, pick the “Office” theme
  3. From the “More Shapes” menu, pick More Shapes > Flowchart > Basic Flowchart Shapes, then drag “Database” onto the page.
  4. Save
  5. Open using Aspose.Diagram library for Java and save as PDF
  • The background color of the Database shape doesn’t match the background color in the original document.

I went through about a dozen of the default themes in Visio and found that a good percentage of them reproduced the issue:

  • daybreak
  • whisp
  • slice
  • bubble
  • organic

I’ve attached an example file as well.

Thank you!


We are checking this and will get back to you shortly.


We have logged an issue as DIAGRAMJAVA-50673 in our issue tracking system for further investigation. We will check issue details and keep you posted with the status of its rectification. Please be patient and spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMJAVA-50673) have been fixed in Aspose.Diagram for Java 19.12.