首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从.net创建pdf的工具?

从.net创建pdf的工具?
EN

Stack Overflow用户
提问于 2013-11-14 23:11:25
回答 1查看 225关注 0票数 2

我们正在寻找一个软件开发工具包来创建复杂的pdf文件从.NET应用程序到目前为止,我们使用了"aspose for pdf“,这是可以从超文本标记语言到pdf功能,因为当生成它崩溃取决于我们的HTML块的复杂性/css样式,我们添加到pdf (要求4),为什么aspose不是我们的一个选项。我们的强制要求是

1自动生成包含页面信息的目录(toc) (不是pdf书签!)

2每页底部的自动页码(第x页,共y页)

3添加toc中引用的文本章节或标题,重要事项:编号为1、1.1、1.1.1、1.1.1.2等的章节必须自动生成!

4添加html -> pdf元素后,文档中包含了一种混合的章节结构,格式不是html文本元素、图像、html节。

生成的pdf的内容和结构应该如下所示

代码语言:javascript
复制
document title 

<any text> etc.


-- endofpage --

table of content

1 mainchapter  .............. page 1 

1.1 subchapter .............. page 1

2 mainchapter ............... page 3

2.1 subchapter .............. page 3

2.1.1 subchapter ............ page 3

etc. 

-- endofpage --


1 mainchapter <<< chapter number have to be generated automatically depending on the document   structure and actualize if the content or structure changes!

1.1 subchapter

<any text> etc.

<html formated text> <<< any valid html block should be rendered, 
           css styles that can't be interpreted should be ignored 


-- endofpage --

<image>
<any text> etc.

 etc.


-- endofpage --


2 main chapter

<any text> etc.
<image>
<image>
<any text> etc.

到目前为止,我们还没有找到任何提供自动章节编号的sdk,而pdfcreator和pdftron提供了稳定的html呈现,我们在文档标题/章节中缺少任何TOC功能。

经过3天的谷歌搜索和样本评估,到目前为止我们没有找到任何工具。有谁能给点提示吗?

谢谢你的任何想法。卡格尔

EN

回答 1

Stack Overflow用户

发布于 2013-11-14 23:23:55

我一直推荐以下PDF创建库:

https://www.nuget.org/packages/iTextSharp-LGPL/

https://www.nuget.org/packages/PdfSharp/

这是两个经过严格测试和验证的库,我相信PdfSharp具有您想要的功能

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19981247

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档