Set Visio Page Orientation, Map Shape-ID Attribute in SVG, Enhance Image Brightness and Change a Visio Comment using Aspose.Diagram for Java 6.1.0

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Diagram for Java logoWe’re pleased to announce the availability of new version 6.1.0 of the Aspose.Diagram for Java API and let our community know about the changes. This release has four noteworthy upgrades to Aspose.Diagram for Java API. It allows developers to set the orientation of the Visio page, protect the shape-ID attribute in SVG, manage the best image quality by setting its brightness level and change comment on the Visio drawing page. Below, we list some major enhancements and other defect fixes. Let’s go into the details.

Apply Portrait or Landscape Orientation to Visio Page

Microsoft Office Visio allows users to rotate the page from portrait to landscape or landscape to portrait. Aspose.Diagram API gives an automatic access to accomplish the task and even developers can set the orientation same as on the printer. PrintPageOrientation class of the Aspose.Diagram API allows to do so. Previously, this feature was not working as expected. So, in the Aspose.Diagram API version 6.1.0 and later, developers would be able to set the page orientation. This help topic shows how developers can set the Visio page orientation: Set Orientation of the Visio Page

Visio to SVG Export Maps Shape-ID Attribute

Many of our clients use Aspose.Diagram API to convert a Visio drawing to SVG as it can be dynamic and interactive. The SVG is natively supported by most modern browsers, and is broadly accessible on mobile devices. Using the old API versions, there was no way to distinguish shapes by their IDs. We have mapped shape id attribute in SVG. Developers can use the recent version 6.1.0 or higher for this purpose. This help topic shows how developers convert Visio to SVG: How to Convert a Visio to SVG

Edit Brightness While Converting Visio Drawing to Image

Modifying an image’s brightness allows to change the general measure of light in an image. It controls the contrast between the light and dull areas of an image. Aspose.Diagram API offers ImageBrightness property in the ImageSaveOptions class to lead the best image quality. We have applied internal optimizations to enhance it. Its help topic is already available here: How to use Image Save Options

Change Comment on the Visio Page

We add comments in the Visio diagrams to give an additional and more detailed information. The Visio page level comment is one way of addressing the page part of the drawing. Aspose.Diagram API has support of adding a page level comment. Developers can also change the existing page level comments. This help topic shows how developers can edit a page level comment: Edit a Page-Level Comment in the Visio

Many other formatting imperfections, error messages of the Visio drawing structures and additional entry problems have been fixed. It also moves the misplaced entries to their proper location. Please check the newly added defect fixes and enhancements:

  • Fixed: VSD to PDF conversion, the word “text” is added in the shape’s text.

  • Fixed: Incorrect setting of connector text location.

  • Fixed: Warning of the missing attribute when opened the resultant VDX diagram.

  • Fixed: Shape.connectedShapes method does not detect some incoming shape ids.

  • Fixed: Output VDX – Duplicate of an element warning message.

  • Fixed: VSD to VDX export – the background text color of the shapes turns into black.

  • Fixed: VSD to VDX export – the arrows of the diagram are misplaced.

  • Fixed: VSD to VDX export – the text of the shapes goes outside the boundary.

Aspose.Diagram for Java Resources

The following resources will help you work with Aspose.Diagram for Java:

We hope you’ll enjoy this new release that saves time and efforts. The API is quite simple and developers can use it in application easily.