Is there any open source docx render available? - ms-word

I was wondering if there are any open source docx renderer available. Given a OOXML snippet, is there some way to create an image of it. Say I have the OOXML for a paragraph in Microsoft word document, can I get the rendered paragraph as an image?

Related

How to add and show bookmarks in word online?

There is a setting in word desktop version to show bookmarks as below:
File=>Options=>Advanced=>Show bookmarks
But I couldn't find a similar setting in word in office online version (office.com), is there a way to see bookmarks in word online?
I've posted this same question here as well:
I've got my answer, and it appears that since the online version of office only has a very limited functionality as compared to the full version installed on a PC or Mac, we can't add or see bookmarks in word online.
You can add a bookmarks in Google Docs in this format
bookmark://_lo0imys6fm4j
and copy the content to the Microsoft Word Online. It will work.
You can see bookmarks in word online by
View/Navigation/Headings
At first, for a while, the bookmarks pane only appears. Then it transforms into a pane with headers.
But you can view all bookmarks after
File/Save as/Download as PDF
By viewing the pdf version of your document.
To transform ordinary headers into bookmarks you can
Click "Styles"
Click "Apply Styles"
And instead "Book Title" style
use "Heading" style
Short answer is: use headings as bookmarks.
Highlight the text you want to use as a bookmark
Apply a heading style (you can create a new heading style based on existing/builtin heading styles and then customize). At this point the heading is effectively a bookmark
Highlight the text elsewhere in the document that you want to link to the heading/bookmark
Insert link using This Document:Headings to select the new heading/bookmark
Ignore the option for This Document:Bookmarks since it appears to be a feature gap

Libreoffice converting word to pdf issue

I am facing issue when converting microsoft word to PDF.
When I am converting word file to PDF with the help of libreoffice from command line command, there issue with the content in converted PDF file.
The background of the page in word resized and position of ellipse is changed.
Please find attached sample screen shot of word file(word.png) which I am trying to convert into PDF and PDF(pdf.png) in which I am facing issue.
Command which I am using,
libreoffice --headless --convert-to html WORDFILE.docx

Is it possible for a corrupted .doc file to be viewable as a .jpg of the first page of a Word document?

I received a document with a ".doc" file extension. It appeared as a random smattering of symbols/characters when opened in Word as is, or in a text editor as a .rtf or .txt file.
When the file extension was changed to ".jpg" and opened in an image viewer it appeared as a low resolution screen capture of the first page of a Word document. Is it possible for a corrupted Word document to exhibit this behavior? Or is this a clear example of a renamed image file being passed off as a corrupted .doc file?
Thanks in advance for your help.
EDIT: I have done some more investigation and Mac OS X Lion tells me that the file is actually a Windows bitmap image (.bmp).
It's likely that it has been renamed, Word interprets binary files as random characters and symbols. The only way I can think that a valid word document would exhibit this behavior is if a thumbnail is embedded in the Word document and the image viewer finds the headers and displays it. Either way it seems like you wont be able to use the contents.

How to embed a document within a docx file?

I'm trying to write a docx file which has embedded files within it. I have the "Open XML SDK" and used that to examine an existing docx file (which had a .DOC word file and an .MSG file embedded in it). I reflected the docx into C#, cut and pasted that into a project, ran it and, hey presto, I created an equivilent docx file.
However, the generated code has the embedded files as (hard-coded) streams, as are the images. So, I loaded my own resource bitmap image (the Word 2010 icon) and read it as a stream and now the generated docx file has my resource image in it. But it has lost the document title. It seems that when the original docx file was created, the images used have an icon, and the title of the document.
Is there a simple way to create an image like that, or do I have to construct it myself (ie. draw my resource icon into a bitmap and write the title to the bottom of the bitmap as well) ?

Visio 2007 to Word 2000, images being changed during printing process

I am currently sorting out some screenshots for some software documentation. I take a screenshot, paste it into visio 2007, do some alterations and add shapes etc and then copy it into word 2000.
It all looks fine until I go to print. On the printout each screenshot image from visio has the bottom 1/4 of the image cropped and put at the top. I've tried copy paste and saving and inserting the file but nothing seems to work.
Any ideas?
Have you tried using "Paste Special" in Word and pasting it in as a Metafile or Enhanced Metafile? Or perhaps as a bitmap.
By default, Word will paste the Visio drawing in as an embedded OLE object, which you can double click to edit in Visio.
You lose that edit ability if you paste it as a different format, but it may give you different print results.