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

Free Support Forum - aspose.com

Font changed

Hi,

After simple open/save routine font and shape with dotted line has changed.
Code that reproduces the issue:

public void asposeTest() throws Exception {
Diagram diagram = new Diagram("Test.vsdx");
diagram.save("TestTranslate.vsdx", SaveFileFormat.VSDX);
}


Thanks,
Zeljko

Hi Zeljko,


Thank you for contacting support. Please give us your source VSDX diagram (Test.vsdx) because it is not available in your attached zip archive. It’ll help us to replicate the problem on our side. Your response is awaited.

Hi,


Sorry for that. Here is the file.


Thanks,
Zeljko

Hi Zeljko,


Thank you for supplying the source Visio diagram. We have tested your sample Visio against the latest version 6.2.0 of Aspose.Diagram for Java API and figured out the problems as follows:

File Name: Test.vsdx
DIAGRAMJAVA-50308: Open and save routine of VSDX changes text into dummy characters
DIAGRAMJAVA-50309: Open and save routine of VSDX has changed the dotted line shape

Your post has also been linked to these tickets. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

Hi Zeljko,


Thank you for being patient. We have a good news for you that the issue IDs DIAGRAMJAVA-50308 and DIAGRAMJAVA-50309 have now been resolved. If there is no issue in the QA phase, then their fixes will be included in the next version of Aspose.Diagram for Java 6.3.0. We’ll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMJAVA-50308;DIAGRAMJAVA-50309) have been fixed in Aspose.Diagram for Java 6.3.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi,


There is similar issue again with this file. Please see screenshot for your reference.

Here’s the code I used:

Diagram diagram = new Diagram(“h13420_Figure 10.vsdx”);
diagram.save(“h13420_Figure 10-16.10.0.vsdx”, SaveFileFormat.VSDX);

I’m using Aspose.Diagram for Java 16.10.0.

Can you check this?

Thanks,
Zeljko

Hi Zeljko,


Thank you for contacting support. We have tested your Visio diagram against the latest version 16.10.0 of Aspose.Diagram for Java API and managed to replicate the problems of cross signs and dummy characters. We have logged tickets as below:

DIAGRAMJAVA-50427: Open and Save VSDX - the cross signs appear in place various shapes
DIAGRAMJAVA-50428: Open and save VSDX - the text of the shape turns into dummy characters

Your post has also been linked to these tickets. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

Hi Zeljko,


Thank you for being patient. We have a good news for you that the ticket ID DIAGRAMJAVA-50428 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version 16.11.0 of Aspose.Diagram for Java API. We’ll inform you via this forum thread as soon as the new release is published.

Hi Zeljko,


Thank you for being patient. We have a good news for you that the ticket ID DIAGRAMJAVA-50427 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version 16.11.0 of Aspose.Diagram for Java API. We’ll inform you via this forum thread as soon as the new release is published.

Hi Zeljko,


Thank you for being patient. In reference to the ticket ID’s DIAGRAMJAVA-50427 and DIAGRAMJAVA-50428, please download and use the latest Hotfix version: Aspose.Diagram for Java 16.10.1. Please also let us know how that goes on your side.

The issues you have found earlier (filed as DIAGRAMJAVA-50427;DIAGRAMJAVA-50428) have been fixed in Aspose.Diagram for Java 16.11.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi,


I’m using Aspose.Diagram for Java 16.11.0 and still have issues with this file. In the attached screenshot 183secondPage.PNG, you can see how text changed to symbols (highlighted part). In the 183firstPage.PNG, additional text appeared above “EMC VNXe” and if you apply the code below to shape “10 GbE IP Network” on the first page, you’ll get the same symbols as on the second page.

Here’s the code so you can replicate the issue on the second page of the file:

String path = “h13420_Figure 10.vsdx”;

Diagram diagram = new Diagram(path);

ShapeCollection shapes = diagram.getPages().get(1).getShapes();

Shape shape = shapes.get(42);

FormatTxtCollection value = shape.getText().getValue();
value.clear();

Char defaultChar = shape.getChars().get(0);
shape.getChars().clear();

shape.getChars().add(defaultChar);

value.add(new Pp(0));
value.add(new Tp(0));
value.add(new Cp(0));
value.add(new Txt(“1”));

Char newChar = new Char();
newChar.setAsianFont(new IntValue(2, defaultChar.getAsianFont().getUfe().getUnit()));
newChar.setColor(defaultChar.getColor());
newChar.setFont(new IntValue(3, defaultChar.getFont().getUfe().getUnit()));
newChar.setColorTrans(new DoubleValue(0.0, defaultChar.getColorTrans().getUfe().getUnit()));
newChar.setComplexScriptFont(new IntValue(0, defaultChar.getComplexScriptFont().getUfe().getUnit()));
newChar.setComplexScriptSize(new DoubleValue(-1.0, defaultChar.getComplexScriptSize().getUfe().getUnit()));
newChar.setDoubleStrikethrough(new BoolValue(1, defaultChar.getDoubleStrikethrough().getUfe().getUnit()));
newChar.setDblUnderline(new BoolValue(1, defaultChar.getDblUnderline().getUfe().getUnit()));
newChar.setFontScale(new DoubleValue(1.0, defaultChar.getFontScale().getUfe().getUnit()));
newChar.setLangID(new IntValue(2052, defaultChar.getLangID().getUfe().getUnit()));
newChar.setOverline(new BoolValue(1, defaultChar.getOverline().getUfe().getUnit()));
newChar.setPos(new Pos(0));
newChar.setStrikethru(new BoolValue(1, defaultChar.getStrikethru().getUfe().getUnit()));
newChar.setCase(new Case(0));
newChar.setSize(new DoubleValue(0.1381352899069435, defaultChar.getSize().getUfe().getUnit()));
newChar.setIX(shape.getChars().getCount());
shape.getChars().add(newChar);

value.add(new Cp(1));
value.add(new Txt(“0”));

Char newChar1 = new Char();
newChar1.setAsianFont(new IntValue(2, defaultChar.getAsianFont().getUfe().getUnit()));
newChar1.setColor(defaultChar.getColor());
newChar1.setFont(new IntValue(3, defaultChar.getFont().getUfe().getUnit()));
newChar1.setColorTrans(new DoubleValue(0.0, defaultChar.getColorTrans().getUfe().getUnit()));
newChar1.setComplexScriptFont(new IntValue(0, defaultChar.getComplexScriptFont().getUfe().getUnit()));
newChar1.setComplexScriptSize(new DoubleValue(-1.0, defaultChar.getComplexScriptSize().getUfe().getUnit()));
newChar1.setDoubleStrikethrough(new BoolValue(1, defaultChar.getDoubleStrikethrough().getUfe().getUnit()));
newChar1.setDblUnderline(new BoolValue(1, defaultChar.getDblUnderline().getUfe().getUnit()));
newChar1.setFontScale(new DoubleValue(1.0, defaultChar.getFontScale().getUfe().getUnit()));
newChar1.setLangID(new IntValue(1033, defaultChar.getLangID().getUfe().getUnit()));
newChar1.setOverline(new BoolValue(1, defaultChar.getOverline().getUfe().getUnit()));
newChar1.setPos(new Pos(0));
newChar1.setStrikethru(new BoolValue(1, defaultChar.getStrikethru().getUfe().getUnit()));
newChar1.setCase(new Case(0));
newChar1.setSize(new DoubleValue(0.1381352899069435, defaultChar.getSize().getUfe().getUnit()));
newChar1.setIX(shape.getChars().getCount());
shape.getChars().add(newChar1);

value.add(new Cp(2));
value.add(new Txt(" “));

Char newChar2 = new Char();
newChar2.setAsianFont(new IntValue(0, defaultChar.getAsianFont().getUfe().getUnit()));
newChar2.setColor(defaultChar.getColor());
newChar2.setFont(new IntValue(3, defaultChar.getFont().getUfe().getUnit()));
newChar2.setColorTrans(new DoubleValue(0.0, defaultChar.getColorTrans().getUfe().getUnit()));
newChar2.setComplexScriptFont(new IntValue(0, defaultChar.getComplexScriptFont().getUfe().getUnit()));
newChar2.setComplexScriptSize(new DoubleValue(-1.0, defaultChar.getComplexScriptSize().getUfe().getUnit()));
newChar2.setDoubleStrikethrough(new BoolValue(1, defaultChar.getDoubleStrikethrough().getUfe().getUnit()));
newChar2.setDblUnderline(new BoolValue(1, defaultChar.getDblUnderline().getUfe().getUnit()));
newChar2.setFontScale(new DoubleValue(1.0, defaultChar.getFontScale().getUfe().getUnit()));
newChar2.setLangID(new IntValue(1033, defaultChar.getLangID().getUfe().getUnit()));
newChar2.setOverline(new BoolValue(1, defaultChar.getOverline().getUfe().getUnit()));
newChar2.setPos(new Pos(0));
newChar2.setStrikethru(new BoolValue(1, defaultChar.getStrikethru().getUfe().getUnit()));
newChar2.setCase(new Case(0));
newChar2.setSize(new DoubleValue(0.1381352899069435, defaultChar.getSize().getUfe().getUnit()));
newChar2.setIX(shape.getChars().getCount());
shape.getChars().add(newChar2);

value.add(new Cp(3));
value.add(new Txt(“GbE IP Network”));
value.add(new Txt(”"));
value.add(new Txt(ControlChar.LINE_FEED));

diagram.save(“h13420_Figure 10-16.11.0.vsdx”, SaveFileFormat.VSDX);

Can you check this?

Thanks,
Zeljko

Hi Zeljko,


Thank you for the details.
Zeljko:
if you apply the code below to shape “10 GbE IP Network” on the first page, you’ll get the same symbols as on the second page.
We could not replicate this use case. Please check and provide its source code. We’ll investigate and reply you appropriately.

We managed to replicate the other problems as below:

DIAGRAMJAVA-50448: Open and save routine of a VSDX includes an additional text
DIAGRAMJAVA-50449: A shape text is being converted to the dummy characters

Your post has also been linked to these tickets. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience.

Hi Imran,


Sorry about that. Here’s the code to reproduce the issue on the first page:

String path = “h13420_Figure 10.vsdx”;

Diagram diagram = new Diagram(path);

ShapeCollection shapes = diagram.getPages().get(0).getShapes();
Shape shape = shapes.get(44);
FormatTxtCollection value = shape.getText().getValue();
value.clear();

Char defaultChar = shape.getChars().get(0);
shape.getChars().clear();

shape.getChars().add(defaultChar);

value.add(new Pp(0));
value.add(new Tp(0));
value.add(new Cp(0));
value.add(new Txt(“1”));

Char newChar = new Char();
newChar.setAsianFont(new IntValue(2, defaultChar.getAsianFont().getUfe().getUnit()));
newChar.setColor(defaultChar.getColor());
newChar.setFont(new IntValue(3, defaultChar.getFont().getUfe().getUnit()));
newChar.setColorTrans(new DoubleValue(0.0, defaultChar.getColorTrans().getUfe().getUnit()));
newChar.setComplexScriptFont(new IntValue(0, defaultChar.getComplexScriptFont().getUfe().getUnit()));
newChar.setComplexScriptSize(new DoubleValue(-1.0, defaultChar.getComplexScriptSize().getUfe().getUnit()));
newChar.setDoubleStrikethrough(new BoolValue(1, defaultChar.getDoubleStrikethrough().getUfe().getUnit()));
newChar.setDblUnderline(new BoolValue(1, defaultChar.getDblUnderline().getUfe().getUnit()));
newChar.setFontScale(new DoubleValue(1.0, defaultChar.getFontScale().getUfe().getUnit()));
newChar.setLangID(new IntValue(2052, defaultChar.getLangID().getUfe().getUnit()));
newChar.setOverline(new BoolValue(1, defaultChar.getOverline().getUfe().getUnit()));
newChar.setPos(new Pos(0));
newChar.setStrikethru(new BoolValue(1, defaultChar.getStrikethru().getUfe().getUnit()));
newChar.setCase(new Case(0));
newChar.setSize(new DoubleValue(0.1381352899069435, defaultChar.getSize().getUfe().getUnit()));
newChar.setIX(shape.getChars().getCount());
shape.getChars().add(newChar);

value.add(new Cp(1));
value.add(new Txt(“0”));

Char newChar1 = new Char();
newChar1.setAsianFont(new IntValue(2, defaultChar.getAsianFont().getUfe().getUnit()));
newChar1.setColor(defaultChar.getColor());
newChar1.setFont(new IntValue(3, defaultChar.getFont().getUfe().getUnit()));
newChar1.setColorTrans(new DoubleValue(0.0, defaultChar.getColorTrans().getUfe().getUnit()));
newChar1.setComplexScriptFont(new IntValue(0, defaultChar.getComplexScriptFont().getUfe().getUnit()));
newChar1.setComplexScriptSize(new DoubleValue(-1.0, defaultChar.getComplexScriptSize().getUfe().getUnit()));
newChar1.setDoubleStrikethrough(new BoolValue(1, defaultChar.getDoubleStrikethrough().getUfe().getUnit()));
newChar1.setDblUnderline(new BoolValue(1, defaultChar.getDblUnderline().getUfe().getUnit()));
newChar1.setFontScale(new DoubleValue(1.0, defaultChar.getFontScale().getUfe().getUnit()));
newChar1.setLangID(new IntValue(1033, defaultChar.getLangID().getUfe().getUnit()));
newChar1.setOverline(new BoolValue(1, defaultChar.getOverline().getUfe().getUnit()));
newChar1.setPos(new Pos(0));
newChar1.setStrikethru(new BoolValue(1, defaultChar.getStrikethru().getUfe().getUnit()));
newChar1.setCase(new Case(0));
newChar1.setSize(new DoubleValue(0.1381352899069435, defaultChar.getSize().getUfe().getUnit()));
newChar1.setIX(shape.getChars().getCount());
shape.getChars().add(newChar1);

value.add(new Cp(2));
value.add(new Txt(“GbE IP Network”));
value.add(new Txt(""));
value.add(new Txt(ControlChar.LINE_FEED));

diagram.save(“h13420_Figure 10-16.11.0.vsdx”, SaveFileFormat.VSDX);

Regards,
Zeljko

Hi Zeljko,


Thank you for the details. We managed to replicate the problem of dummy characters on the first page. It has been logged under ticket ID DIAGRAMJAVA-50450 in our bug tracking system. Your post has also been linked to this ticket. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

We have also a good news for you that the ticket IDs DIAGRAMJAVA-50448 and DIAGRAMJAVA-50449 have now been resolved. If there is no issue in the QA phase, then their fixes will be included in the next version 16.12.0 of Aspose.Diagram for Java API. We’ll inform you via this forum thread as soon as the new release is published.


The issues you have found earlier (filed as DIAGRAMJAVA-50448;DIAGRAMJAVA-50449) have been fixed in Aspose.Diagram for Java 16.12.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi Zeljko,


Thank you for being patient. We have a good news for you that the ticket ID DIAGRAMJAVA-50450 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version 17.1.0 of Aspose.Diagram for Java API. We’ll inform you via this forum thread as soon as the new release is published.

Hi Zeljko,


Thank you for being patient. In reference to the ticket ID DIAGRAMJAVA-50450, please download and use the latest Hotfix version: Aspose.Diagram for Java 16.12.1.0. Please also let us know how that goes on your side.

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.