Viewing pdf contents in Sharepoint webpart

Seven0fNine
Seven0fNine used Ask the Experts™
on
Hi, I have so far have the ability to view the contents of a PDF using an HTML Form Web part and something like the following script:  <object><embed src="http://pdf/xxx.pdf in the Source Editor of the control.

Taking this a step further, is there a way to 'click' or 'hover' over an uploaded pdf  (in a Documents web part) and view its contents in a the HTML Form Web part?

For info: I am using SharePoint 2016 on-prem

Thank you in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Scott FellDeveloper & EE Moderator
Fellow 2018
Most Valuable Expert 2013

Commented:
I don't work in Sharepoint, but from what I understand you can use your own custom front end code.  There is a jquery  plug in that may do what you want  https://embedly.github.io/jquery-preview/demo/

Do you need help with modifying the webpart to make this work?
if you can write a hover over event then just open a popup with the content already you have.

https://www.w3schools.com/jquery/event_hover.asp
https://www.w3schools.com/jsref/event_onmouseover.asp
so under that function just create a window pop up and input the src URL as the input for what you have.
IF you are already able to read the content in some page, now link that page with the hover over or mouseover event frot he pdf link or file.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial