Hi, I want to know what is the best way to concat:
mega15:
1. x number of word documents in only one word document.
Join a Document onto another Document
How the AppendDocument Method Works
Differences between ImportFormat Modes
// The document that the content will be appended to.
Document dstDoc = new Document(MyDir + "Document.doc");
// The document to append.
Document srcDoc = new Document(MyDir + "DocumentBuilder.doc");
// Append the source document to the destination document.
// Pass format mode to retain the original formatting of the source document when importing it.
dstDoc.AppendDocument(srcDoc, ImportFormatMode.KeepSourceFormatting);
// Save the document.
dstDoc.Save(MyDir + "Document.AppendDocument Out.doc");
mega15:
2. x number of excel, pdf and word documents in one word document
ConverterXls2Doc xls = new ConverterXls2Doc();
Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook(MyDir + "LargeTable.xlsx");
Document doc = xls.Convert(wb);
doc.Save(MyDir + "out.docx");
http://www.aspose.com/docs/display/pdfnet/Convert+PDF+file+into+DOC+format
http://www.aspose.com/docs/display/pdfnet/DocSaveOptions+Class
Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(MyDir +"in.pdf");
// create DocSaveOptions object
Aspose.Pdf.DocSaveOptions saveOptions = new Aspose.Pdf.DocSaveOptions();
// set the recognition mode as Flow
saveOptions.Mode = Aspose.Pdf.DocSaveOptions.RecognitionMode.Flow;
pdfDoc.Save(MyDir + "out.doc", saveOptions);
Thank you Tahir, great help