Patrick’s Bytes

Techie for the past 30 years…

Tech Insights 2011

image

This year’s Tech Insights conference will be bigger and we will try target attendees as well as speakers from outside of Malaysia.

image

Do check out the conference website for more info. http://www.techinsights.my

Presentation – Light Up SharePoint 2010 with Visual Studio 2010

Thanks for turning up at Microsoft Malaysia office and also online to check out my presentation yesterday. As promised let me upload my slide deck here first. Click on the folder icon below to my Sky Drive to download both PowerPoint deck.

I will upload the source code for my session – Professional Development with SharePoint 2010 later.

Removing password of PDF files inside SharePoint

An Adobe PDF can be protected from Printing and Copy-Paste by setting a password. For example shown below you can’t print (Print button greyed out) and copy (Copy option not seen in context menu). All these are restriction you can apply to your PDF using a password.

image

But if you have protected files inside SharePoint and you want to unprotected them, you have to first download them locally then remove the password using Acrobat Reader. After that you have to upload them again to the document library.

For that I have created a Custom Action that helps to automate this without downloading.

image

The Custom Action redirects you to a custom Application Page and asks for the password to the file.

image

Since most files in my SharePoint environment are version controller, my code does the check-in with comment as well.

image

I am making this little application available for download here. I will publish the source code later.