iTextSharp - 将word doc / docx转换为pdf [英] iTextSharp - Convert word doc/docx to pdf

查看:1075
本文介绍了iTextSharp - 将word doc / docx转换为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我理解iTextSharp可用于将文档转换为pdf。

I understand iTextSharp can be used for converting a document to pdf.

但首先我们必须使用iTextSharp.text.Document从头开始创建文档然后添加本文档的元素。

But first we have to create a document from scratch using iTextSharp.text.Document and then adding elements to this document.

如果我有现有的doc文件,可以使用iTextSharp将此文档转换为pdf。

What if I have an existing doc file, is it possible to convert this document to pdf using iTextSharp.

另外,我想使用iTextSharp或任何可以在doc文件上执行以下操作的类似工具:

Also, I want to use iTextSharp or any similar tool which can perform following on a doc file:


  1. 操纵doc / docx / text文件(比如用DB值替换一些占位符)以及

  2. 将它们转换为.pdf

任何有此想法的人,请分享。

Anyone having idea about this, please share.

谢谢!

推荐答案

Aspose.Words 组件可以可靠地执行此操作(我没有附属或任何东西)。

The Aspose.Words component can do this reliably (I'm not affiliated or anything).

iTextSharp没有必要的功能集来加载和处理MS Word文件格式。

iTextSharp does not have the required feature set to load and process MS Word file formats.

这篇关于iTextSharp - 将word doc / docx转换为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆