PDFsharp 作品集 PDF

发布于 2024-10-09 17:55:33 字数 105 浏览 0 评论 0原文

我编写了一个程序,可以使用 PDFsharp 将 PDF 合并为单个文档。我现在需要能够将这些合并的 PDF 指定为作品集。我已经翻阅了文档,但没有找到任何可以做到这一点的东西。有人有什么建议吗?

I have a program I wrote that merges PDF's to a single document using PDFsharp. I now need to be able to specify these merged PDF's as portfolios. I have tore through the documentation, and have not managed to find anything that looks to do this. Does anyone have any suggestions?

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

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

发布评论

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

评论(1

伪心 2024-10-16 17:55:33

pdf 作品集的扩展名也为“.pdf”,类似于简单的 pdf,但它是文件的集合。我不知道你如何指定它是一个 pdf 作品集。但是您可以使用 FreeSpire.pdf library(Spire.pdf 库的免费/社区版本)检查 pdf 是否为 pdf 作品集。以下是使用库函数的代码:

PdfDocument pdf = new PdfDocument();
bool isPortfolio = pdf.IsPortfolio();
if(isPortfolio)
  Console.WriteLine("It is a pdf portfolio");
else
  Console.WriteLine("It is not a pdf portfolio");

A pdf portfolio will also be having the extension as '.pdf' similar to a simple pdf but it's a collection of files. How you can specify that it is a pdf portfolio, i don't know. But you can check whether a pdf is a pdf portfolio or not using the FreeSpire.pdf library which is free/community version for Spire.pdf library. The following is the code using the library functions :

PdfDocument pdf = new PdfDocument();
bool isPortfolio = pdf.IsPortfolio();
if(isPortfolio)
  Console.WriteLine("It is a pdf portfolio");
else
  Console.WriteLine("It is not a pdf portfolio");
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文