카테고리 없음

Convert Word To Pdf Using Open Xml

abiniccolcuca 2020. 11. 9. 07:59


Hi Willy

Free xml to pdf converter free download - Free XML to PDF Converter, AZ XML to PDF Converter, PDF To Word Converter, and many more programs Navigation open search.

This sort of depends on exactly what kind of document this is. XML covers a pretty wide range of things...

Could you perhaps copy a few lines of what you see in a Text Editor or XML viewer and paste it into a reply?

What are you expecting when you open this file in Word? Are you expecting it to show you a 'document'?

Based on your original question, my expectation would be that you're expecting to see something like you do in the XML Editor. And with Word 2007 I'd expect that only if you haven't got Word 2007 installed with the post-January updates for North America, which removes XML from the user interface (due to a court decision).

Converting Pdf To Xml Format

I'd only expect a 'document' if the file had been saved in Word 2003 (Windows) as an XML file, or in the new *.docx file format. If you're seeing 'MAC' in there, that's probably not the case. Question is, though, whether this is just an instruction for Internet Explorer, or whether the basic XML is totally different. Do you know what program created the document? Do you have contact with the person?

Cindy Meister, VSTO/Word MVP
Active4 years, 6 months ago

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.

DeduplicatorConvert Word To Pdf Using Open Xml
37.4k6 gold badges52 silver badges92 bronze badges
BeeCodingBeeCoding

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.

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. **

JasonPlutextJasonPlutext
12.5k3 gold badges29 silver badges66 bronze badges

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

Read more here

Convert Xml Files To Pdf

And find the related stackoverflow post here

Community

Convert Office Xml To Pdf

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.