Convert Word To Pdf Using Open Xml

On

Pages for Mac can export. PDF; Microsoft Word - Office Open XML (.docx) and Office 97 or later (.doc); Plain Text files (.txt); Rich Text Format (.rtf); ePub; Pages '09. Microsoft is sponsoring an open-source OpenXML translator add-in for Word 2007. It's nominally available as an add-on for. Office 2007 also shipped without support for PDF -- another major document-interchange format -- but that was available as an official add-on for registered users. Now Microsoft has sponsored an.

I have to do some automation of converting Word documents to PDF. By doing some research, I found that starting from Microsoft Office 2007, Word documents are XML based. Furthermore, I found that there is a free solution ApacheFOP doing conversion from XML to PDF, however, I still didn't manage to find the way to automate it with C#. There is nFOP (version that runs on the .NET framework), but some detailed explanation of implementing it, not really.

BeeCodingBeeCoding

Convert Word To Pdf Small Pdf

3 Answers

You could use docx4j.NET

That's a .NET version of docx4j, which is a Java library which converts docx to PDF using FOP.

OpenConvert word to pdf small pdf

See ConvertOutPDF.java

Before you go to the effort of downloading etc, you might want to use the online demo to see whether the PDF output is close to your needs.

**Disclosure: I lead the docx4j project. **

Convert
JasonPlutextJasonPlutext

An ugly solution would be to make a 'save as' using microsoft office interop...

Read more here

And find the related stackoverflow post here

Community
gerodimgerodim

I have found one library that can convert XML to PDF in C#/.NET and vice versa known as Aspose.PDF for .NET . I hope it will solve your problem.

Hudson LaneHudson Lane

Not the answer you're looking for? Browse other questions tagged c#xmlpdfms-wordapache-fop or ask your own question.