views:

2836

answers:

7

We are developing a little application that given a directory with PDF files creates a unique PDF file containing all the PDF files in the directory. This is a simple task using iTextSharp. The problem appears if in the directory exist some files like Word documents, or Excel documents.

My question is, is there a way to convert word, excel documents into PDF programmatically? And even better, is this possible without having the office suite installed on the computer running the application?

A: 

You can also use a component like activePDF's DocConverter to convert a lot formats to PDF.

Galwegian
@Galwegian: I fixed the link to DocConverter, since it looks like the page you had originally linked to got moved. You might want to check and make sure I linked to the right page.
Bill the Lizard
A: 

i remmember using a long time ago a tool called pdf995 but from what i can see in their homepage now it seems like it has somewhat stopped in time...

vitorsilva
+2  A: 

Office 2007 allows for this. I have found PDFCreator to be good, the VBA is included in sample files, and have heard that CutePDF is also good. PDFCreator and CutePDF are free.

To work without Office, you would need viewers, as far as I know: http://www.microsoft.com/downloads/details.aspx?FamilyID=c8378bf4-996c-4569-b547-75edbd03aaf0&displaylang=EN

http://www.microsoft.com/downloads/details.aspx?familyid=95E24C87-8732-48D5-8689-AB826E7B8FDF&displaylang=en

Remou
A: 

TallPDF.NET comes with hefty pricetag

TallPDF.NET allows you to serve dynamic PDF from any .NET application including ASP.NET pages and web services.

PDFEdit is FREE

Free (and open source) editor for manipulating PDF documents. GUI version + commandline interface. Scripting is used to a great extent in editor and almost anything can be scripted, it is possible to create own scripts or plugins.

Prakash
A: 

The most common way to convert files to a pdf is to print them to print them to a pdf printer driver. There are a number of such drivers, one that i know of that will do the job is Black Ice.

Another is to use Adobe Acrobat's SDK. from memory its very expensive.

Its been a while since i have actually done any work with converting pdf's and the landscape may have changed.

Mark Harris
+1  A: 

I needed to do this myself, but managed to get it done with .Net and without 3rd party tools:

MSDN: Saving Word 2007 Documents to PDF and XPS Formats

Pretty simple, about 50 lines of code. However I think you will need Word 2007 installed on the machine as well as the ability to Save As PDF

Mark Glorie
A: 

Use PDF maker that comes with adobe 7- 9

I just used this code Covert Doc to PDF

ron