Joining And Appending in PHP

Aspose.Words - Joining And Appending

For joining and appending using Aspose.Words Java Apis in php, simply use appendDocument method.

Php Code

$dstDoc = new Java("com.aspose.words.Document",AppendDocument::$gDataDir . "TestFile.Destination.doc");
$srcDoc = new Java("com.aspose.words.Document",AppendDocument::$gDataDir . "TestFile.Source.doc");
$importFormatMode = new Java("com.aspose.words.ImportFormatMode");
$dstDoc->appendDocument($srcDoc, $importFormatMode->KEEP_SOURCE_FORMATTING);
$dstDoc->save(AppendDocument::$gDataDir . "TestFile.SimpleAppendDocument Out.docx");

Download Running Code

Download Joining And Appending (Aspose.Words) form any of the below mentioned social coding sites: