Free Support Forum - aspose.com

Invalid pdf format:pdf head signature is not found!: v4.1.0.0

Hi,

I am using the following code to merge PDFs together:

PdfFileEditor pdfEditor = new PdfFileEditor();
string tempFile = Path.GetTempFileName();
pdfEditor.Concatenate(theLocationMergeFiles, tempFile);
SetPdfPriviledges(tempFile, theOutputName);

which is giving me the error:

Invalid pdf format:pdf head signature is not found!: v4.1.0.0

with a stack trace of:

at Aspose.Pdf.Kit.PdfFileEditor.x4c788cf08ce3235c(String[] xec232eb93dd022a7)
at Aspose.Pdf.Kit.PdfFileEditor.Concatenate(String[] inputFiles, String outputFile)

My PDFs open just fine using Acrobat reader & Foxit reader. Is there a flag I need to set to get around this error or is there something that can be done to allow the merge to occur?

Thanks.
Steve

Hi Steve,

Please download the latest version and try it at your end. If you still find the same issue then please share the input PDF files with us, so we could test the issue at our end.

We’re sorry for the inconvenience.
Regards,