使用 iText for dot net 等工具合并多个 pdf(使用 url 路径)

发布于 2024-10-04 00:17:59 字数 135 浏览 0 评论 0原文

我可以使用 iText 这样的工具将多个 pdf(使用 url 路径)合并为一个吗? 当文件存储在我的硬盘(本地路径)上时,我可以使用 iText 将我的 C# 代码中的 pdf 合并起来。 但当我得到 pdf 的 url 时无法合并。 提前致谢 -纳雷什

Ho can I combine multiple pdfs(using url path) into one using tool like iText.
I am able to combine pdfsfrom my c# code using iText when the files are stored on my hard disk(local path).
But unable to combine when I am given the url to pdfs.
Thanks in advance
-Naresh

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光礼记 2024-10-11 00:17:59

必须下载 PDF 文件才能合并。

所以问题是:谁将下载文件、您的应用程序或您正在使用的库?

PDFsharp 尚无法从 URL 下载 PDF 文件。这个可以实现,但是我觉得意义不大;如果您使用自己的代码下载 PDF 文件,您会更加灵活,如果您愿意,可以在下载失败时重试下载。

将它们下载到 MemoryStreams 即可,无需创建临时文件。

我不知道 iText 或 iTextSharp 是否会为您下载。

The PDF files must be downloaded in order to be combined.

So the question is: who will download the files, your app or the lib you are using?

PDFsharp cannot download PDF files from URLs yet. This could be implemented but I think it doesn't make much sense; you're much more flexible if you download the PDF files with your own code, retrying the download if it failed if you want.

Downloading them to MemoryStreams will do, no need to create temporary files.

I don't know if iText or iTextSharp will do the download for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文