- tortuegenie wrote: 02/05/2012 at 1:04pm
I’m looking for a solution to convert office documents and images in pdf to C#.
- Any ideas?
- Zeckard wrote: 03/05/2012 at 11:42 am.
- Good morning,
- I think that sending the document to a virtual printer like PDFCreator may still be the simplest solution. I don’t know of any other free tools that do.
- However, this requires PDFCreator to be installed on the client workstation.
- gcorbineau wrote: 03/05/2012 at 11:44am
- I’m also thinking about PDFCreator, but you can also look at iTextSharp
- meziantou wrote: 03/05/2012 at 11:53am
- If word (at least 2007) is installed on the computer, you can convert the soft office documents (doc, docx, xls, …) into pdf. Just open it, save as and choose the pdf format. This can be automated http://stackoverflow.com/questions/6…ogrammatically
- For images it’s even simpler: http://www.mikesdotnetting.com/Artic…ng-with-images
- tortuegenie wrote: 04/05/2012 at 12:16pm
- Thank you for your answers.
- The web application being installed on a server I’m not sure that installing Office is really possible.
It would be easier to install PDFCreator on the server.
- I’ll check iTextSharp.
- The purpose of the application is to save documents but only in pdf format knowing that you can upload .doc, .xlsx …. that’s why I need to do this in code behind my app.
- meziantou wrote: 04/05/2012 at 12:23pm
- I don’t think that Pdf Creator can solve your problem (at least for Office files).
This is a virtual printer, so you need to be able to open the file before you can print it. If you don’t have an office, what do you open it with?
- Installing Office on a server does not pose a problem except that you need to install more updates.
- tortuegenie wrote: 04/05/2012 at 12:37pm
- If you want I’m more looking for a way to use a library that does what pdfCreator does.
That means reading a document and then turning it, all in C#.
- I think you side with iTextSharp or ABCPdf should be fine.
- Only I wanted to know if anyone’s ever done anything like this before…