Hello,
I try to use PdfFileEditor to merge several PDFs together with the Append(string inputFile, string[] portFiles, int startPage, int EndPage, string outputFile) method.
Given one set of files, this works satisfactorily. However, on a different set of files it fails by not returning from the call to Append().
My code looks like:
private void Merge(string filename)
{
var pdfEditor = new PdfFileEditor();
var pageFiles = new List<string>();
for (var pNum = 1; pNum < 3; pNum++)
{
var appendFilename = $@"C:\Temp\xy.pdf";
pageFiles.Add(appendFilename);
}
const string finalPage = @"C:\Temp\out.pdf";
pdfEditor.Append(finalPage, pageFiles.ToArray(), 1, int.MaxValue, targetFilename);
}
The files in question, both the set for which it is working and the set for which it is not have been generated by splitting a large presentation. If you need I can send you the required files.
For our project it is really urgent to understand if your library can handle this or we need to find another API?
Thank you
Stefan Kaht