gpt4 book ai didi

c# - 从 .net 创建 pdf 的工具?

转载 作者:行者123 更新时间:2023-11-28 01:51:11 25 4
gpt4 key购买 nike

<分区>

我们正在寻找一个 sdk 来从 .NET 应用程序创建复杂的 pdf 文档到目前为止,我们使用了“aspose for pdf”,它从 HTML 到 pdf 的功能都很不错因为在生成它时崩溃取决于我们添加到 pdf 的 html block 的复杂性/css 样式(要求 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内容和结构应该是这样的

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 天的谷歌搜索和样本评估,我们目前没有找到任何工具。有人有提示吗?

感谢任何想法。凯格尔

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com