开发者

Need to find DOCX to PDF Conversion C# API

开发者 https://www.devze.com 2023-03-03 15:11 出处:网络
From within C#, I want to be able to take a DOCX file and convert it to PDF. How can I do this? The catch is that I would like to do other types too, e.g. images, doc files, etc.

From within C#, I want to be able to take a DOCX file and convert it to PDF.

How can I do this?

The catch is that I would like to do other types too, e.g. images, doc files, etc.

I also ideally would like there to be no office installed on the computer wher开发者_运维知识库e this software will be running.

Perhaps the answer is to some software that 'prints to pdf'

My software is dealing with arrays of data representing the file, so it would ideally be some kind of API that handles byte arrays.


There aren't a ton of good C# libraries for this one. It's hard to do without COM.

Here's one option:

http://www.aspose.com/categories/.net-components/aspose.pdf-for-.net/default.aspx


If you want something free (but requires Microsoft Word to be installed), you could try using Word itself via .NET code:

http://www.codeproject.com/KB/cs/CreatePDFsForFree.aspx

It isn't the solution for everything but it can be useful at times.


DOCX is Office 2007 format. If you don't mind using the built-in functionality of Office 2007, you might want to check this link out:

http://msdn.microsoft.com/en-us/library/bb412305.aspx


Office automation + Save As Pdf Add-in ?

0

精彩评论

暂无评论...
验证码 换一张
取 消