No announcement yet.

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

  • Filter
  • Time
  • Show
Clear All
new posts

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

    I find a javascript which works perfectly with UE4 Native Web Browsers. Maybe you can look it.

    Quick Instruction:
    - Download "Viewer JS"
    - 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"

    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.
    Last edited by eray_ozr; 03-11-2020, 03:35 PM.

    Nice procedure, you can always recompile from source CEF:

    but this is faster!

    Click image for larger version

Name:	CatturaPDF.jpg
Views:	205
Size:	195.2 KB
ID:	1738863

    Thanks for sharing!
    Last edited by FrankiePibbs; 03-30-2020, 06:17 AM.