aspose.pdf.dll for .net , 版本号24.9.0.0,PDF合并功能,在合并有些文件时会失败。
示例代码:
void testMerge()
{
Document^ pdfFileA = gcnew(Document)(“C:\Users\Administrator\Desktop\testC.pdf”);
Document^ pdfFileB = gcnew(Document)(“C:\Users\Administrator\Desktop\testD.pdf”);
Document^ pdfFileMerge = gcnew Document();
pdfFileMerge->Pages->Add(pdfFileA->Pages);
pdfFileMerge->Pages->Add(pdfFileB->Pages);
pdfFileMerge->Save(“C:\Users\Administrator\Desktop\testMerge.pdf”);
}
文件:
testC.pdf (986.0 KB)
testC.pdf (986.0 KB)