January 2012

Microsoft Office Document to PDF convert

OfficeToPDF is a command line utility that converts Microsoft Office 2007 and 2010 documents from their native format into PDF using Office’s in-built PDF export features.

OfficeToPDF is useful (and unique) if you want to automatically create PDF files on a server-wide basis and free individual users from an extra step of using the “Save as…” command on their Office files.

software needs to be installed on Server:
.NET Framework 4
Office 2010 or Office 2007

If you are using Office 2007, you will also need:
Visual Studio 2010 Tools for Office Runtime [Download]
2007 Microsoft Office Add-in: Microsoft Save as PDF or XPS [Download]

Supported File Types:
Word (.doc, .dot, .docx, .dotx, .docm, .dotm)
Excel (.xls, .xlsx, .xlsm)
Powerpoint (.ppt, .pptx, .pptm)
Visio (.vsd)
Publisher (.pub)

Download Office 2 PDF
How to execute on command line?

C:\prakash>officetopdf.exe test.docx test.pdf

PDF to Image

First of all you have download “GhostScript” from Here Installed it.

C#.net Code as below

1) Create a new console application in Visual Studio 2010.

2) Copy the below code into your application

public static void PdfToJpg(string ghostScriptPath,string input, string output)
//String ars = "-dNOPAUSE -sDEVICE=jpeg -r300 -o" + output + "-%d.jpg " + input;
 String ars = "-dNOPAUSE -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r150*150 -o" + output + "-%d.png " + input; //all image generate with full clarity and same pixel size (1275*1650)
Process proc = new Process();
proc.StartInfo.FileName = ghostScriptPath;
proc.StartInfo.Arguments = ars;
proc.StartInfo.CreateNoWindow = true;
       proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
ghostScriptPath: Refers to the full path of the exe file
input: Refers to the full path of the pdf file to covert.
Output: Refers to the full path of the image file name.
For eg.,
static void Main(string[] args)
string ghostScriptPath = @"D:\Program Files\gs\gs9.01\bin\gswin32.exe";
string inputFileName = @"C:\test.pdf";
string outputFileName = @"E:\New\test";
PdfToJpg(ghostScriptPath, inputFileName, outputFileName);
·       3)  Set the output type of your console application to “Windows Application”.
That’s it.

HTML5 Video Player

Flash has always been the standard for displaying video online, yet with the arrival of HTML5 web developers have got more excellent possibilities to easily streamline video content. HTML5 new specifications for a video is for sure one of the most talked aspects in the range of many new notable HTML5 features developed for more dynamic web applications and interfaces. Though support for HTML5 is still evolving, a video element has clear benefits for the users who can now get browser-native video players without any third-party plugins at all.

Check below link that listed 10 HTML5 video player.

compare video player and find which match with you requirement

I suggested “HMTL5Media” is better, I tested it for iOS, and Android tablet its working fine.

Download source code from