Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Apr 23, 2020 1:16 pm

Is it possible to use Spire.PDF to combine pdf files into a PDF Portfolio? We need to utilize this to avoid destroying digital signatures.

visixero
 
Posts: 1
Joined: Tue Nov 19, 2019 7:29 pm

Fri Apr 24, 2020 3:00 am

Hello,

Thanks for your inquiry.
Sorry to tell you that our Spire.PDF doesn't support this feature at present. However, we have added it as a new feature to our further upgrade list with the ticket SPIREPDF-1023. If it can be achieved in the future, we will let you know.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue May 19, 2020 1:27 am

Hello,

Thanks for your patient waiting.
I am glad to inform you that we just released Spire.PDF Pack(Hot Fix) Version:6.5.9 which supports creating PDF Portfolios. Welcome to download it from the following links.
Our website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/6.5.9

Sample code:
Code: Select all
String[] files = new String[] { "File1.pdf", "File2.pdf" };
using (PdfDocument doc = new PdfDocument())
{
    for (int i = 0; i < files.Length; i++)
    {
        doc.Collection.AddFile(files[i]);
    }
    doc.SaveToFile("output.pdf", FileFormat.PDF);
    doc.Dispose();
}

//Create sub folder and add file into it
string[] files = Directory.GetFiles(@"input/");
string inputFile_1 = "input.pdf";
using (PdfDocument doc = new PdfDocument(inputFile_1))
{
    for (int i = 0; i < files.Length; i++)
    {
        doc.Collection.Folders.AddFile(files[i]);
        PdfFolder folder = doc.Collection.Folders.CreateSubfolder("SubFolder" + i);
        folder.AddFile(files[i]);
    }
    doc.SaveToFile("output.pdf", FileFormat.PDF);
    doc.Dispose();
}


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue Jun 02, 2020 8:53 am

Hello,

Hope you are doing well.
Have your tested the new feature? Does it meet your needs?
Looking forward to your feedback.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.PDF