You can read directly pdf in cef, by recompiling source code for cef part.
I don’t have experience with specific plugin creation, but I used that procedure last year and works well.
or you can setup a small web server with pdfjs or js reader and setup that in web browser
First option is better of course.
It would be nice to create a small plugin with pdf reader (maybe starting from cef, like blui).
I found my old video on LinkedIn:
https://www.linkedin.com/posts/fcapp…212951552-nrOm
—EDIT—
Alternatively you can setup as said in this topic [Credits to user eray_ozr ]:
https://forums.unrealengine.com/deve…th-web-browser
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
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.