Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
638 views
in Technique[技术] by (71.8m points)

pdf generation - Save Open XML as PDF

As part of an investigation into enterprise level server side document generation I have come across Open XML.

  1. For those that have used this, how successful were you? Would you recommend it?
  2. Can you save the OpenXML to PDF directly or would I need to make use of a 3rd party component?
  3. If a 3rd Party component is required, which one did you use and which one would you recommend?

Thanks

Gineer

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The nice thing about the Office OpenXML is that it's the language of Microsoft Office -- if you live your "office life" in Word and Excel (2007 and later), that's the format you want.

Can you "save" OpenXML directly to PDF? No, it needs to be rendered by some third-party component.

If you're doing document generation on the server side and you don't need to be working with Office documents as output, you'd generally use something like iText or iTextSharp, which would render the PDFs directly.

I haven't worked with a server-side component that will do the translation from Office OpenXML to PDF, though.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...