SharePoint 2013 PDF Preview List Item using Office Web Apps

Found this useful script from: http://www.wictorwilen.se
http://www.wictorwilen.se/sharepoint-2013-enabling-pdf-previews-in-document-libraries-with-office-web-apps-2013

Copy this Code to a file called preview.js:

function WictorsPdfPreviews() {
    SP.SOD.executeOrDelayUntilScriptLoaded(function () {
        filePreviewManager.previewers.extensionToPreviewerMap.pdf = [embeddedWACPreview, WACImagePreview]
        embeddedWACPreview.dimensions.pdf= { width: 379, height: 252}
    }, "filepreview.js");
    notifyScriptsLoadedAndExecuteWaitingJobs("wictor.pdfpreviews/previews.js");
}
WictorsPdfPreviews();

Upload this script as a js file to your script library.
Modify your MasterPage and add this line in the head:

<SharePoint:ScriptLink ID="ScriptLink9" language="javascript" name="~sitecollection/SiteAssets/scripts/pdfpreview/previews.js" runat="server" LoadAfterUI="false" />

The result now operates the same as a Word document preview:

Advertisements

SharePoint display DOCX XLSX Thumbnails in Library

Just found this useful unknown feature for uploading and displaying DOCX or XLSX image cover thumbnails in a SharePoint 2010 Asset Library.

This works using SharePoint 2010 and a default Team Site template on a non-Publishing site, straight out of the box.

For Word and Excel 2010 and higher, when a Document is Saved As, there is a Save Thumbnail checkbox.

docx_SaveAs_Thumb

 

Select Rich Media Asset as Content Type; Video Content Type also works.

RichMediaAsset

 

allassets

afterUploadDocx

So far I have tried DOCX, XSLX, PPTX files.

PDF files do not display at this stage.

My next challenge is to get the Rich Media Content Type into an existing Document Library.

I’ve done some research and couldn’t find any other posts relating to this.
If anyone know of any, post them in the comments section.

 

Thanks for reading.

Skype Lync 2013 Presence Indicator Web Part

This post is to embed a users Skype for Business (Lync 2013) presence indicator in a Content Editor Web Part for SharePoint 2010.

From reading this post:

http://geekswithblogs.net/jacobladams/archive/2011/05/03/use-hmtl-and-javascript-to-display-presence-controls-in-sharepoint.aspx

The code works exactly for SharePoint 2010, though I’ve added a Sype button and when clicked opens the Chat window in Skype.

sype button

 

 

 

  • Replace the paths below with your SharePoint path.
  • Replace my name with another email address or SIP Address.
  • Download the the Skype image below and upload it to the same folder as the code below.
<script type="text/javascript" src="/sites/SP2010/_layouts/1033/init.js"></script>
<script type="text/javascript" src="/sites/SP2010/_layouts/1033/core.js"></script>
<style type="text/css">
img.presenceIndicator {
border-style: None;
height: 12px;
width: 12px;
border-width: 0px;
vertical-align: middle;
}
</style>
<div>
<img id="uniqueID" onload="IMNRC('brett.anderson@example.com',getElementById('uniqueID'))" showofflinepawn="1" src="/sites/SP2010/_layouts/images/blank.gif" class="presenceIndicator" />
<a href="sips:brett.anderson@example.com">Brett Anderson</a>
<div>
<a href="sips:brett.anderson@example.com">
<img width="86" height="32" role="Button" style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; VERTICAL-ALIGN: -41px; BORDER-BOTTOM: 0px; MARGIN: 10px; BORDER-LEFT: 0px" alt="Skype chat, instant message" src="/sites/SP2010/scripts/Sypebutton/chatbutton_32px.png"></a>
</div></pre>
<pre></div></pre>
<pre>

 

chatbutton_32px
Image button to upload to SharePoint server.

SharePoint 2013 Composed Looks displays no items

I came across this while browsing my Azure SharePoint 2013 Site Collection.  Which I thought was strange considering my On-Prem SharePoint 2013 Site Collection displays the default templates.

Composed Looks - All Items

A quick Google Search, I came across this: http://social.technet.microsoft.com/Forums/sharepoint/en-US/16461c60-4831-44bd-af11-1f6d99e44ab6/composed-looks-change-the-look-themes-are-missing-when-creating-site-from-saved-template?forum=sharepointgeneral

So the quickest and easiest way to get the templates into Composed Looks, is to create a sub-site and take a loot at the Composed Looks from that Sub-site.

On a sub-site I created all of the default template settings are shown as thus:

Ashampoo_Snap_2014.09.10_21h48m19s_002_

 

Useful Tip: This must be done from Internet Explorer (I used IE10), this will not work from Chrome.  I didn’t test it in Firefox.

 

 

Any questions or comments, post below.