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

Free Support Forum - aspose.com

Graphs created in Microsoft Word via Drawing Tools not rendered properly in PDF

We observe the following problem with Aspose Words 15.11.0.0:



In our Word template (see first attachment) there are two graphs created via Drawing Tools, but both are not rendered properly by Aspose Words 15.11.0.0 into the PDF format, see second attachment: for the first graph, only one arraow is shown instead of the tree structure, for the second graph the left scale bends into the wrong direction and the text in the weights is gone.



Is this a known problem?



Thank you for your support.

Hi Helge,


Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for .NET 15.12.0 and have not found the shared issue. Please use Aspose.Words for .NET 15.12.0. We have attached the output Pdf with this post for your kind reference.

Please let us know if you have any more queries.

Hi Tahir,

thank you for your reply and the attached PDF.

Unfortunately, this would not solve the problem entirely: We also got the same result as you are getting now with Version 15.12.0 with the earlier Version 15.5.0.0 (then we tried with 15.11.0.0).

While this result is much closer to the original, there are still differences:
(1) In the first graph, please note that the grey boxes for Level 1 B and Level 2 B are not properly aligned at their bottom: in the original, these boxes are aligned at their bottom. Also, the box for Level 3 A does not align with the box for Level 3 B at the bottom, as is the case in the original and intended.
(2) In the second graph, please not that the texts in the “weight” boxes (“Foo” and “Bar”) are shown horizontal in the PDF, while in the original doc these texts are aligned with the boxes. Also, on the left side, the bar of the scale is “fatter”, while on the right side the scale bar is too thin – hence on the right side the weights are hanging in the air. This is quite different in the original.

So while I agree that the results with 15.12.0 are much closer to the original, there are still significant deviations which would be a show stopper to use it in this way. The observation of these differences already with version 15.5.0.0 was actually our reason to try with version 15.11.0.0, but with much worse results as reported.

Please have another look and let us know your conclusions.

Thank you very much, best regards,
Chris (on behalf of hessen)

Hi Tahir,

thank you for your reply and the attached PDF.

Unfortunately, this would not solve the problem entirely: We also got the same result as you are getting now with Version 15.12.0 with the earlier Version 15.5.0.0 (then we tried with 15.11.0.0).

While this result is much closer to the original, there are still differences:
(1) In the first graph, please note that the grey boxes for Level 1 B and Level 2 B are not properly aligned at their bottom: in the original, these boxes are aligned at their bottom. Also, the box for Level 3 A does not align with the box for Level 3 B at the bottom, as is the case in the original and intended.
(2) In the second graph, please not that the texts in the “weight” boxes (“Foo” and “Bar”) are shown horizontal in the PDF, while in the original doc these texts are aligned with the boxes. Also, on the left side, the bar of the scale is “fatter”, while on the right side the scale bar is too thin – hence on the right side the weights are hanging in the air. This is quite different in the original.

So while I agree that the results with 15.12.0 are much closer to the original, there are still significant deviations which would be a show stopper to use it in this way. The observation of these differences already with version 15.5.0.0 was actually our reason to try with version 15.11.0.0, but with much worse results as reported. Please have another look and let us know your conclusions.

Thank you very much, best regards,
Chris (on behalf of hessen)

…sorry, somehow the line breaks didn’t make it into the post…

Hi Helge,


Thanks for your inquiry. We have again tested the scenario and have noticed that the shapes at first page are not visible and shapes at second page do not render correctly. Please check the attached output Pdf for detail. If we save the input Docx to Doc first and then save it to Pdf, the output is better. See the following code example.

Document doc = new Document(MyDir + “BugReport_20160119b.docx”);<o:p></o:p>

doc.Save(MyDir + "Out.doc");

doc.Save(MyDir + "Out.pdf");



For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-12993. We have also logged the following issues in our issue tracking system. You will be notified via this forum thread once these issues are resolved. We apologize for your inconvenience.
hessen:
1) In the first graph, please note that the grey boxes for Level 1 B and Level 2 B are not properly aligned at their bottom: in the original, these boxes are aligned at their bottom.
The issue ID is WORDSNET-12994.
hessen:
2) Also, the box for Level 3 A does not align with the box for Level 3 B at the bottom, as is the case in the original and intended.
The issue ID is WORDSNET-12995.
hessen:
3) In the second graph, please not that the texts in the "weight" boxes ("Foo" and "Bar") are shown horizontal in the PDF, while in the original doc these texts are aligned with the boxes.
The issue ID is WORDSNET-12996.
hessen:
4) on the left side, the bar of the scale is "fatter", while on the right side the scale bar is too thin -- hence on the right side the weights are hanging in the air.
Could you please share some more detail about this issue? We will investigate the issue on our side and provide you more information.

Hi Tahir,

thank you for your reply.

Regarding 4): I refered to the output as created by Aspose version 15.12.0, as you attached to your first reply (same result with 15.5.0.0). Your attachment now looks more like the result with 15.11.0.0.

I propose the following to see the difference I meant in 4): please print out the Word source document (first attachment of my first post) and the pdf Output with either Version 15.12.0 or with 15.5.0.0. Then, hold both printouts on top of each other against a bright light, trying to get the graphs overlapping.

Then it should be easy to see that in the pdf output the scale bars look different than in the Input source, and that in the pdf output on the right side the weight boxes are hanging in the air, i.e. there is a gap between each box and the scale bar – while in the source Word document the weight boxes are in contact with the scale bar.

Can you see it this way?

Best regards,
Chris (on behalf of hessen)

Hi Chris,


Thanks for sharing the detail. We have logged this problem in our issue tracking system as WORDSNET-13002. You will be notified via this forum thread once your issues are resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-12993;WORDSNET-12994;WORDSNET-12995;WORDSNET-12996;WORDSNET-13002) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as WORDSNET-13042) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.