Hi Joe,
I have again tested the scenario and I am unable to reproduce the problem. The resultant file is in attachment. The only difference in our code is that, I am not using server relative paths, in fact I am using path to resource files over my hard drive.
[C#]
Document doc = new Document(@"C:\pdftest\issueDocuments\sampleb.doc");
doc.Save(@"C:\pdftest\issueDocuments\sampleb.xml", SaveFormat.AsposePdf);
// New a pdf object
Aspose.Pdf.Pdf pdf11 = new Aspose.Pdf.Pdf();
// Bind content from the named xml file.
pdf11.BindXML(@"C:\pdftest\issueDocuments\sampleb.xml", null);
// Call the function to convert all fonts to unicode
pdf11.SetUnicode();
pdf11.IsImagesInXmlDeleteNeeded = true;
// Convert Second document and Merge its Sections into First pdf instance
Document doc1 = new Document(@"C:\pdftest\issueDocuments\samplea.doc");
doc1.Save(@"C:\pdftest\issueDocuments\samplea.xml", SaveFormat.AsposePdf);
Aspose.Pdf.Pdf pdf12 = new Aspose.Pdf.Pdf();
pdf12.BindXML(@"C:\pdftest\issueDocuments\samplea.xml", null);
pdf12.SetUnicode();
pdf12.IsImagesInXmlDeleteNeeded = true;
foreach (Aspose.Pdf.Section sec in pdf12.Sections)
{
pdf11.Sections.Add(sec);
}
//Convert Third document and Merge its Sections into First pdf instance
Document doc2 = new Document(@"C:\pdftest\issueDocuments\sampled.doc");
doc2.Save(@"C:\pdftest\issueDocuments\sampled.xml", SaveFormat.AsposePdf);
Aspose.Pdf.Pdf pdf13 = new Aspose.Pdf.Pdf();
pdf13.BindXML(@"C:\pdftest\issueDocuments\sampled.xml", null);
pdf13.SetUnicode();
pdf13.IsImagesInXmlDeleteNeeded = true;
foreach (Aspose.Pdf.Section sec in pdf13.Sections)
{
pdf11.Sections.Add(sec);
}
// Convert Fourth document and Merge its Sections into First pdf instance
Document doc3 = new Document(@"C:\pdftest\issueDocuments\samplec.doc");
doc3.Save(@"C:\pdftest\issueDocuments\samplec.xml", SaveFormat.AsposePdf);
Aspose.Pdf.Pdf pdf14 = new Aspose.Pdf.Pdf();
pdf14.BindXML(@"C:\pdftest\issueDocuments\samplec.xml", null);
pdf14.SetUnicode();
pdf14.IsImagesInXmlDeleteNeeded = true;
foreach (Aspose.Pdf.Section sec in pdf14.Sections)
{
pdf11.Sections.Add(sec);
}
// Save the final Pdf document, containing sections of all documents
pdf11.Save(@"C:\pdftest\issueDocuments\sampleb.pdf");
Nayyer Shahbaz
Support Developer
Aspose Changsha Team
About Us Contact Us