# SHOW PDF - ODT - ODS - ODP (Open Source Documents) in UMG Widgets with Web Browser

**URL:** <https://forums.unrealengine.com/t/show-pdf-odt-ods-odp-open-source-documents-in-umg-widgets-with-web-browser/139698>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [March 11, 2020, 5:46pm UTC](https://forums.unrealengine.com/t/show-pdf-odt-ods-odp-open-source-documents-in-umg-widgets-with-web-browser/139698 "2020-03-11T17:46:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eray\_ozr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Post date:** [March 11, 2020, 5:46pm UTC](https://forums.unrealengine.com/t/show-pdf-odt-ods-odp-open-source-documents-in-umg-widgets-with-web-browser/139698/1 "2020-03-11T17:46:17Z")

</div>

Runtime PDF read and write plugin.

> [@UE5 Runtime PDF Writer with LibHaru](https://forums.unrealengine.com/t/ue5-runtime-pdf-process-pdf-reader-viewer-and-writer-plugins/881974/2):
>
> Hello! Thank you very much for sharing this plugin. Would it be possible to make it work with UE Ver. 5.0.3? I would like to try it out, and possibly use it for a current project but I am on ver 5.0.3 and it looked like it couldn’t properly recognize the plugin, so that would be appreciated. Regardless thank you for sharing your work and putting the time to make this! Kashk.Master

///  
**OLD POST**  
_I find a javascript which works perfectly with UE4 Native Web Browsers. Maybe you can look it._

_Quick Instruction:_  
_- Download “Viewer JS” [ViewerJS Get ViewerJS](https://viewerjs.org/getit/)_  
_- Install Wamp (you can use another server)_  
_- Create a folder in “www” with a name which you desire (mine is PDF\_Viewer)_  
_- copy “ViewerJS” folder and its contents from zip to created folder in www_  
_- Create another folder in PDF\_Viewer (or what you call your first created folder) (mine is PDFs)_  
_- start wamp_  
_- Point UE4 Web Browser Widget to “localhost/PDF\_Viewer/ViewerJS/#…/PDFs/file.pdf”_

_NOTE:_  
_With this JS, you can show “.pdf / .odt / .ods / .odp” files_

_ODT = Open source version of .docx. Word can export_  
_ODS = Open source version of .xlsx. Excel can export_  
_ODP = Open source version of .pptx. Power Point can export._

_this JS does not require scr script html tags. But URL must contain “#…” after “ViewerJS” point. This syntax will load js and go to your document._  
_if you use it with “a href=”#" you need to write just URL with #…_

_License of this JS is Apache 2.0_

_Load time takes some seconds depends on your document._

---

<div class="post-metadata">

**Author:** ![FrankiePibbs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frankiepibbs/32/918637_2.png) [@FrankiePibbs](https://forums.unrealengine.com/u/FrankiePibbs)\
**Post date:** [March 30, 2020, 9:11am UTC](https://forums.unrealengine.com/t/show-pdf-odt-ods-odp-open-source-documents-in-umg-widgets-with-web-browser/139698/2 "2020-03-30T09:11:27Z")

</div>

Nice procedure, you can always recompile from source CEF:

[https://www.linkedin.com/posts/fcapp…212951552-nrOm](https://www.linkedin.com/posts/fcappilli_bim-revit-unrealengine-activity-6544581299212951552-nrOm)

but this is faster!

 ![CatturaPDF.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/6/f699971c9040237f5b555a7af363d3232f3f6290.jpeg)

Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_82e26e15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_82e26e15](https://forums.unrealengine.com/u/anonymous_user_82e26e15)\
**Post date:** [March 1, 2021, 3:27pm UTC](https://forums.unrealengine.com/t/show-pdf-odt-ods-odp-open-source-documents-in-umg-widgets-with-web-browser/139698/3 "2021-03-01T15:27:44Z")

</div>

Hi, I’m only just starting to get my head round UE, but this looks like it has potential for us. We’re looking to find a way to give some campus estates managers a digital model of their buildings, but one big query was how they’d access PDF drawings of their site from the UE application.

Could you please explain where I’d have to do the installing? Am I right in thinking that our client would potentially have to set up a web server to access something like this? In which case, we’d aim to install both the UE application and WAMP on it?

---

<div class="post-metadata">

**Author:** ![eray\_ozr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Post date:** [March 10, 2021, 8:28pm UTC](https://forums.unrealengine.com/t/show-pdf-odt-ods-odp-open-source-documents-in-umg-widgets-with-web-browser/139698/4 "2021-03-10T20:28:02Z")

</div>

> [@anonymous\_user\_82e26e15](#):
>
> Hi, I’m only just starting to get my head round UE, but this looks like it has potential for us. We’re looking to find a way to give some campus estates managers a digital model of their buildings, but one big query was how they’d access PDF drawings of their site from the UE application.
> 
> Could you please explain where I’d have to do the installing? Am I right in thinking that our client would potentially have to set up a web server to access something like this? In which case, we’d aim to install both the UE application and WAMP on it?

If you want to access PDFs from multiple computers, you should use external web server. You dont need to install wamp or any other web environment to every client pc. That WAMP method is a suggestion for one PC scenario.

1- Install your favourite web environment (Apache, Nginx or IIS) to your external server.  
2- Copy PDF.JS or Viewer JS to web server’s root. For example wwwroot  
3- Copy your PDFs to necessary folders.

If you want to use UE4 to create an interface, you can use “append” to bend URL string with your desire.

For example  
Launc URL  
Append:  
A: [http://192.168.X.X:80/](http://192.168.X.X:80/)  
B: PDF.JS/web/index.html?file=/PDF.JS/pdfs/  
C: string variabe

If user clicks a widget, set string variable like something.pdf  
And connect it to click event.

You can find sample PDF JS and Viewer JS server installations in my GitHub. Also you can use Github Pages for server environment, too.

> **[ffreality - Repositories](https://github.com/ffreality?tab=repositories)**
>
> Frozen Forest is an industry 4.0 startup which uses game engines and reality technologies to create digital twins of your products and processes. - ffreality
