Solved

SharePoint 2010 with Content Editor and PDF File

Posted on 2015-01-27
2
312 Views
Last Modified: 2015-01-28
I am trying to add two web parts to a page:
Content Editor with the html to display a PDF file from a document library
InfoPath Web Part to Update a related list when the user opens the page and clicks submit.

Problem 1: The PDF File doesn't open. Stuck saying "Initializing".   I will include the snippet I used.
Problem 2:  How to get the file name of the PDF file off of the Content Editor html fragment and use that as a parameter for updating the SharePoint List when the user does a submit from the InfoPath Form with the pages InfoPath web part.

The snippet for the PDF file follow:
<object>
        <embed src="/SiteAssets/PM2_manual.pdf" height="850" width="850"  type="application/pdf"></embed>
</object>
0
Comment
Question by:Howard Bash
2 Comments
 
LVL 15

Accepted Solution

by:
colly92002 earned 500 total points
ID: 40575399
Try using a javascript renederer such as http://pdfobject.com/
That is pretty old and possibly not modern standards compliant, so alternatively use one of the many jquery versions:
http://www.jqueryrain.com/2012/09/best-jquery-pdf-viewer-plugin-examples/
0
 
LVL 1

Author Comment

by:Howard Bash
ID: 40575437
Any thoughts about how to get the filename of the PDF file from the containing web part within the info path web part?

Thanks (that 's "part 2" of the question).
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now