# Display Microsoft Word in a Perspective

**URL:** <https://forum.inductiveautomation.com/t/display-microsoft-word-in-a-perspective/78582>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 30, 2023, 8:16pm UTC](https://forum.inductiveautomation.com/t/display-microsoft-word-in-a-perspective/78582 "2023-08-30T20:16:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Spicuzzi](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@Jeff\_Spicuzzi](https://forum.inductiveautomation.com/u/Jeff_Spicuzzi)\
**Post date:** [August 30, 2023, 8:16pm UTC](https://forum.inductiveautomation.com/t/display-microsoft-word-in-a-perspective/78582/1 "2023-08-30T20:16:31Z")

</div>

I am using WebDev along with Video Viewer and PDF Viewer. Is it possible to display Microsoft Word documents using WebDev in a similar manner?

Jeff

---

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [April 29, 2024, 3:24am UTC](https://forum.inductiveautomation.com/t/display-microsoft-word-in-a-perspective/78582/2 "2024-04-29T03:24:55Z")

</div>

I now have this as a requirement, is it possible to view word doc in perspective?

---

<div class="post-metadata">

**Author:** ![li\_guo](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@li\_guo](https://forum.inductiveautomation.com/u/li_guo)\
**Post date:** [July 18, 2024, 1:50pm UTC](https://forum.inductiveautomation.com/t/display-microsoft-word-in-a-perspective/78582/3 "2024-07-18T13:50:12Z")

</div>

I have the same requirement, but can't find solution yet. I can use python scripts docx\_to\_pdf.py to convert the .docx to .pdf, and the pdfView in ignition can display the .pdf, but I can't execute the external python scripts yet.

import subprocess

docx\_path = "/path/to/server/input.docx"  
pdf\_path = "/path/to/server/output.pdf"

subprocess.run(["python", "docx\_to\_pdf.py", docx\_path, pdf\_path])

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [July 18, 2024, 2:02pm UTC](https://forum.inductiveautomation.com/t/display-microsoft-word-in-a-perspective/78582/4 "2024-07-18T14:02:25Z")

</div>

There's [a StackOverflow question](https://stackoverflow.com/questions/27957766/how-do-i-render-a-word-document-doc-docx-in-the-browser-using-javascript) with solutions that might be adapted to use with Ignition.

Most of them involve either converting to PDF server-side or using an external service, such as  
the [Office Online's web viewer](https://www.microsoft.com/en-us/microsoft-365/blog/2013/04/10/office-web-viewer-view-office-documents-in-a-browser/) (and [here's an example](https://jsfiddle.net/gcuzq343/)), to render the doc in an [Inline Frame](https://docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-inline-frame).
