Solved

SharePoint 2010 with Content Editor and PDF File

Posted on 2015-01-27
2
306 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:hbash
2 Comments
 
LVL 15

Accepted Solution

by:
colly92002 earned 500 total points
Comment Utility
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:hbash
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
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…
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…

763 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

8 Experts available now in Live!

Get 1:1 Help Now