1

如何使用 C# 将新的 pdf 文件附加到旧的文件中?我需要一个外部库吗?

4

4 回答 4

1

you can use iTextSharp library, here is an example: http://www.codeproject.com/Articles/28283/Simple-NET-PDF-Merger

于 2012-11-09T15:33:30.090 回答
1

There is no built in support for manipulating pdf files within the .net framework. You can roll your own (a world of pain), or use an existing pdf library link iTextdotNet. I have not used iTextdotNet, but have used the iText(java) library it is derived from with success.

于 2012-11-09T15:35:08.467 回答
1

是的,您不会使用 .NET 开箱即用。您可以查看http://itextpdf.com/或其他一些商业库。那里有一些开源作品,您可能需要查看http://www.pdfsharp.net/。我在 .NET 中使用的不多,但值得一看。

于 2012-11-09T15:32:09.270 回答
0

也可以使用 Adob​​e Acrobat,但它不能很好地自动化。如果您拥有它并且已经付款,请尝试一下。如果您要购买东西,那么我不推荐 Adob​​e Acrobat(用于自动化)。

于 2012-11-09T15:46:56.143 回答