[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • Last Modified:

SharePoint 2010 with Content Editor and PDF File

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
Howard Bash
Asked:
Howard Bash
1 Solution
 
colly92002Commented:
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
 
Howard BashSenior Software EngineerAuthor Commented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now