Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To append documents using Aspose.Words Java in Ruby.
Ruby Code
data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/quickstart/'
\# Load the destination and source documents from disk.
dst_doc = Rjb::import('com.aspose.words.Document').new(data_dir + "TestFile.Destination.doc")
src_doc = Rjb::import('com.aspose.words.Document').new(data_dir + "TestFile.Source.doc")
importformatmode = Rjb::import('com.aspose.words.ImportFormatMode')
source_formatting = importformatmode.KEEP_SOURCE_FORMATTING
\# Append the source document to the destination document while keeping the original formatting of the source document.
dst_doc.appendDocument(src_doc, source_formatting)
dst_doc.save(data_dir + "TestFile Out.docx")
Download Append Documents (Aspose.Words) from any of the below mentioned social coding sites:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.