Hi,
Hi Djordje,
Hi Imran,
Hi Djordje,
Hi,
Hi Djordje,
Hi Djordje,
ch1.getFontScale().getUfe().setF(“”);
return ch1;
Hi,
Hi Djordje,
Hi,
can You please check this issue once again, I used aspose.diagram 5.2.0 with same .vdx file and test changed as You recommended me and I again reproduced issue.
public void test() throws Exception {
String path = “org/gs4tr/filters3/msoffice/visio/Image10.vdx”; //$NON-NLS-1$
InputStream testStream = loadTestResource(path);
Diagram diagram = new Diagram(testStream);
// License licDiagram = new License();
// licDiagram.setLicense(“C:\Aspose.Total.Java.lic”);
// Diagram diagram = new Diagram(
// “/home/emisia/Desktop/visioShape.vdx”);
for (Page page : (Iterable) diagram.getPages())
for (com.aspose.diagram.Shape shape : (Iterable) page
.getShapes()) {
if (shape.getChars().getCount()!=0) {
Char ch = shape.getChars().get(0);
Char ch1 = new Char();
ch1 = createChar(ch);
shape.getChars().clear();
shape.getText().getValue().clear();
GetShapeText(shape, ch1);
}
}
diagram.save("/Image3-5.2.vdx", SaveFileFormat.VDX);
}
void GetShapeText(Shape shape, Char ch) {
shape.getChars().add(ch);
shape.getText().getValue().add(new Cp(0));
shape.getText().getValue().add(new Txt(“Text1”));
Char ch1 = createChar(ch);
ch1.setIX(1);
Char ch2 = createChar(ch);
shape.getChars().add(ch1);
ch2.setIX(2);
shape.getChars().add(ch2);
shape.getText().getValue().add(new Cp(1));
shape.getText().getValue().add(new Txt(" “));
shape.getText().getValue().add(new Cp(2));
shape.getText().getValue().add(new Txt(“Text2”));
}
private Char createChar(Char ch) {
Char ch1 = new Char();
ch1.setAsianFont(ch.getAsianFont());
ch1.setCase(ch.getCase());
ch1.setColor(ch.getColor());
ch1.setColorTrans(ch.getColorTrans());
ch1.setComplexScriptFont(ch.getComplexScriptFont());
ch1.setComplexScriptSize(ch.getComplexScriptSize());
ch1.setDblUnderline(ch.getDblUnderline());
ch1.setDel(ch.getDel());
ch1.setDoubleStrikethrough(ch.getDoubleStrikethrough());
ch1.setFont(ch.getFont());
[//ch1.setFontScale](https://ch1.setfontscale/)(ch.getFontScale());
ch1.setHighlight(ch.getHighlight());
ch1.setLangID(ch.getLangID());
ch1.setLetterspace(ch.getLetterspace());
ch1.setLocale(ch.getLocale());
ch1.setLocalizeFont(ch.getLocalizeFont());
ch1.setOverline(ch.getOverline());
ch1.setPerpendicular(ch.getPerpendicular());
ch1.setPos(ch.getPos());
ch1.setRTLText(ch.getRTLText());
ch1.setSize(ch.getSize());
ch1.setStrikethru(ch.getStrikethru());
ch1.setStyle(ch.getStyle());
ch1.setUseVertical(ch.getUseVertical());
ch1.setFontScale(ch.getFontScale());
ch1.getFontScale().getUfe().setF(”");
return ch1;
}
I attached saved file.
Just one more thing, before I got notifications on my email when You answer me, but for last to months I don’t get it and I would like to get it in future if is possible.
Thanks
Best regards
Hi Djordje,
djordje:Just one more thing, before I got notifications on my email when You answer me, but for last to months I don’t get it and I would like to get it in future if is possible.
Hi Imran,
Hi Djordje,
Hi Imran,
Hi Djordje,
Thank you for the inquiry. Please also set the size and font properties and also discard their formula values inside the createCharacter method of your sample code. After these modifications, we could notice the both text items (“Text1” & “Text2”) in the each shape of the diagram.
[Java]
ch1.setUseVertical(ch.getUseVertical());
ch1.setFontScale(ch.getFontScale());
ch1.getFontScale().getUfe().setF("");
ch1.setSize(ch.getSize());
ch1.getSize().getUfe().setF("");
ch1.setFont(ch.getFont());
ch1.getFont().getUfe().setF("");
return ch1;
djordje:
I use Microsoft Visio Premium 2010, which version do You use?
We have checked against the listed builds below and the output Visio diagram looks perfect to us:
Microsoft Visio Professional 2010
Version: 14.0.7015.1000
Microsoft Visio Professional 2013
Version: 15.0.4569.1506
Microsoft Visio Viewer 2010
Version: 14.0.4763.1000
We have attached our output Visio file for your reference. Please open it in your environment and see how it goes on your side.
We’re looking forward to help you.
Hi,
ch1.setFont(ch.getFont());
ch1.getFont().getUfe().setF("");
Hi Djordje,
ch1.getFontScale().getUfe().setF("");
return ch1;