We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Broken PDF merge after 8.3 version?

Any version above 8.3 produces broken output file. When opened with Adobe Acrobat 7.0 Professional
on close asks for save the file (no modification was done). It usually means that Acrobat fixed something automatically. On some Preflight profiles I have “Document is damaged” and “Metadata entry is missing” messages.

Does the merging code has been altered somehow and needs more parameters?

My code is:
public void merges_named_destinations()
{
string[] files =
new[]
{
@“TestData\Merge\Damaged\Example.pdf”
, @“TestData\Merge\Damaged\Example2.pdf”
};

PdfFileEditor editor =
new PdfFileEditor
{
CloseConcatenatedStreams = true
,
AllowConcatenateExceptions = true
};
editor.Concatenate(files, “merged.pdf”);
}

Same result (the errors) is when creating empty document so it maybe somehow connected:

Document doc = new Document();
doc.Pages.Add();
doc.Save(“empty.pdf”);

Is there workaround for it?

8.3 is good. Tested on 8.4-8.8 and 9.2.1 fails.

Hi Jacek,


Thanks for your inquiry. I have merged the source documents and unable to notice issue while viewing in Adobe Acrobat Pro IX and Adobe Reader 11. Can you please upgrade your Adobe reader version or Adobe Acrobat 7 professional is mandatory for your workflow?

Please feel free to contact us for any further assistance.

Best Regards,