Convert Word Equations and MathType into SVG

Hi,


We have a MS-Word document with Math equations and MathType objects embedded into it. We are trying to convert only these objects to SVG.

We have tried to convert this using -

com.aspose.words.Document doc = new com.aspose.words.Document(“formulae .docx”);
doc.save(“formulae.svg”, SaveFormat.SVG)

This worked fine, but it converts entire document into SVG.

we want only specifc range or object to be converted into SVG. is there any API available to meet this requirement? like http://www.aspose.com/docs/display/wordsnet/Rendering+a+Shape+Image


Thanks
H

1 Like

Hi Himanshu,


Thanks for your inquiry. You can extract some portion of Word document into a temporary new document and save it to SVG. Please refer to the following article:
http://www.aspose.com/docs/display/wordsjava/How+to++Extract+Selected+Content+Between+Nodes+in+a+Document

I hope, this helps.

Best regards,

Thanks for the repose…

The link that you have provided creates new document from given selection.
When we convert SVG from that document, the SVG contains page border etc. can’t we have SVG only specific to given selection but not for entire new document
Hi Himanshu,

Thanks for your inquiry. We have logged your requirement in our issue tracking system as WORDSNET-11774. Our product team will further look into the details of this requirement and we will keep you updated on the status of this issue. We apologize for any inconvenience.

Best regards,
Hi Himanshu,

Thanks for being patient. After an initial analysis, we think it is not difficult to add something like ShapeRenderer to OfficeMath node and allow user to save OfficeMath to image or Svg. But converting "any node" to Svg is more complex task because it requires building layout of these nodes. Aspose.Words cannot layout specific node in document separately, because node layout depend on where it is located. Exceptions are Shape and OfficeMath nodes. If you will be satisfied with the ability to convert Shape and OfficeMath nodes only to SVG , then we can implement this in one of future releases. Please confirm if it will be enough for you to be able to convert only Shape and OfficeMath nodes to image and Svg?

Best regards,
1 Like

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


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

A post was split to a new topic: Export OfficeMath as SVG in HTML