BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hello all,
I am trying to extract shapes or other non bitmap objects from a word document but I cannot find anywhere how to render the shape object to an image/bitmap. Do you know how to achieve this?
Similarly how to convert other non-standard objects to image?
Thanks
Attachment: Screenshot_2_1186c92f.zip
Hi Gabor,
At present, the Syncfusion Word library (DocIO) does not have a direct API to
convert the shapes (Shape, Textbox, GroupShapes) in the Word document to image.
But we have API to convert the chart in a Word document to image. Please refer
the below UG documentation link to know about this,
https://help.syncfusion.com/file-formats/docio/working-with-charts#convert-chart-to-image
In your statement, you have mentioned like “other non bitmap objects” and “other
non-standard objects”. Can you please provide us more information about your
statement. Which element in the Word document actually you want to convert to image.
If possible, please share the input Word document which contains the elements
which you want to convert to image and listed out the elements.
Also, please share the purpose or end requirement of this conversion. Thereby,
we will analyze any feasible way to achieve your end requirement and provide
you appropriate solution at the earliest.
Regards,
Suriya Balamurugan.
Thanks for your suggestion but it is not what I need.
The use case that I wanted to cover is:
The platform is Windows/WinForms only.
To convert DOC/DOCX to a reduced set of HTML / custom WIKI format, and to keep as much content as possible from the original document. To keep as much text as possible and to add anything else as jpg/png.
In other words to extract/convert to images all types of un supported elements like: OLE, Embedded documents along with shapes (lines, complex shapes, groups), custom symbols or other characters, ink, text art and so on.
If only there was a possibility to at least convert / extract the shape object to SVG, then I can render it with other libs - that will not be the rendering result used in word but at least should be something.
We are evaluating this library as an alternative to a solution that is already working. But this is a serious limitation so far.
Attached a testfile that I used and I have looked all over the documentation (really good btw) to see compatibility matrixes (link)
Thanks in advance.
Attachment: Word_features_test__2_64704cff.zip
Gabor, we will analyze
about your requirement and update further details on 9th February
2023.
Thanks a lot for your help to forward this to the feature forum.
I will follow it there.
here are the links for anybody interested.
Gabor, please find
the below details,
Regarding DOC/DOCX to HTML conversion:
By converting the DOC/DOCX documents to HTML using DocIO library,
you can import all the basic elements such as paragraph, table, picture, icon,
symbols, OLE objects into HTML document. Hope, it will be useful to import all
the text into HTML document in fastest way.
Please refer the supported and un-supported items from here.
Regarding converting Word document elements as image:
Element |
Details |
Picture (Icon, Screenshot) |
Kindly use the below attached sample to convert Picture, OLE, and Chart elements to image using DocIO library, |
OLE Object |
|
Chart |
|
Textbox |
As we mentioned earlier, Syncfusion Word library (DocIO) does not have any public APIs to convert the shapes (Shape, Textbox, Lines, Group Shapes, Math Equations) in the Word document to image. However, we have considered your requirement and added this feature request in our database. Please track the status of this feature request from
following link, |
Shape |
|
Line |
|
Group Shape |
|
Math Equations |
|
SmartArt |
This feature is already included in our feature request database and here’s the link to the feature report page, https://www.syncfusion.com/feedback/3063/smartart-support-in-word-to-pdf-and-image-conversion |
WordArt |
This feature is already included in our feature request database and here’s the link to the feature report page, https://www.syncfusion.com/feedback/3115/support-for-wordart-in-word-to-pdf-conversion |
Ink |
We have considered your requirement and added this feature request in our database. https://www.syncfusion.com/feedback/40968/support-for-ink-in-docx-format-document |
At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know once these features are implemented.