Posted by a ceTe Software moderator
Hello,
If you are merging the same PDF file multiple times then it is suggested to load the source PDF using PdfDocument object and then use this for appending to MergeDocument object.
Here is a code sample.
try
{
PdfDocument pdfDoc = new PdfDocument(@"c:\temp\source.pdf");
// Add documents to merge
var mergedoc = new MergeDocument();
mergedoc.Append(pdfDoc);
mergedoc.Append(pdfDoc);
mergedoc.Draw(@"c:\temp\output.pdf");
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
If you continue facing any issue then please send over the following information to
support@dynamicpdf.com so we can look into it further.
1. Source PDFs using which we can recreate the issue.
2. Full error message along with stack trace.
3. Exact version and build number of DynamicPDF Core Suite DLL file used in your application. You can find this information by right clicking on the DynamicPDF Core Suite DLL file>>Properties>>Details tab>>Product version. Take a screenshot of Details tab and send it over to us.
Thanks,
ceTe Software Support Team