Hello,
I wrote a tutorial explaining how to convert a .doc in a pdf file. I didn't use third party, but Microsoft Office must be installed.
If you can generate a doc, or any sort of "office" file, it can be converted to pdf.
The code I used to convertion is:
private void ConvertWord2PDF(string inputFile, string outputPath)
{
try
{
if (outputPath.Equals("") || !File.Exists(inputFile))
{
throw new Exception("Either file does not exist or invalid output path");
}
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
Document wordDocument = new Document();
object objInputFile = inputFile;
object missParam = Type.Missing;
wordDocument = wordApp.Documents.Open(ref objInputFile, ref missParam, ref missParam, ref missParam,
ref missParam, ref missParam, ref missParam, ref missParam, ref missParam, ref missParam,
ref missParam, ref missParam, ref missParam, ref missParam, ref missParam, ref missParam);
if (wordDocument != null)
{
wordDocument.ExportAsFixedFormat(outputPath, WdExportFormat.wdExportFormatPDF, false,
WdExportOptimizeFor.wdExportOptimizeForOnScreen, WdExportRange.wdExportAllDocument,
0, 0, WdExportItem.wdExportDocumentContent, true, true,
WdExportCreateBookmarks.wdExportCreateWordBookmarks, true, true, false, ref missParam);
}
wordDocument.Close();
wordApp.Quit();
MessageBox.Show("File successfully converted");
ClearTextBoxes();
}
catch (Exception e)
{
throw e;
}
}
But the entire tutorial can be found here
http://codeabout.wordpress.com/2012/03/20/convert-a-word-file-to-pdf-with-c/[
^]
I don't know if this is exactly what you are looking for, but i hope it helps.
Regards,
Felipe