开发者

PDFsharp Portfolio PDF

I have a program I wrote that merges PDF's to a s开发者_如何转开发ingle 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?


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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜