Merge Microsoft office documents (docx and pptx) in one document. Command line tool.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
documents
lib
logs
resources
results
src
README.md
camaleonx.bat
camaleonx.jar
camaleonx.properties
camaleonx.properties.ubuntu
camaleonx.properties.windows
camaleonx.sh
docx_merge_sample.xml
licence.rst
pptx_merge_sample.xml

README.md

camaleonX

This is a software that merge Microsoft Office Documents 2003, Word and PowerPoint ( docx and pptx) in one file from command line. Currently is in Beta state.

##Development

This application has been developed in Java and XSLT 2.0 using Saxon. Some merge operations has been developed in Java, files movements between two documents, file existence, files rename, etc.. the Other operations of merge has been developed in XSLT because docx format and pptx format are XML formats.

##Installation

Java 1.6 You have to copy the content in a folder. Configure the camaleonx.properties with the correct path. base: Is the path base where the camaleonx search the xsl files results: Is the path where the application save the merged files

##Usage

Execute the camaleon.bat files.

java -jar camaleonx.jar -U camaleonx.properties docx_merge_sample.xml -Xms1024m -Xmx1024m -Dlog4j.configuration=file:/./logs/camaleonx.log4j.xml -Dlog4j.debug=true -Dcamaleonx.local./home=logs

-U: Config file docx_merge_sample.xml The main file where are the files to merge. -Dlog4j.configuration Log files

The files that you want to merge are stored in a XML file: Example in doc_merge_sample.xml

<?xml version="1.0" encoding="UTF-8" ?>
<profile>
    <metas>
        <meta key="project_name" value="result_file_name"/>
        <meta key="type" value="docx"/> <!-- docx, pptx -->
    </metas>
    <contents>
        <content include="1" href="C:\camaleonx\documents\1.docx"/>
        <content  include="1" href="C:\camaleonx\documents\2.docx"/>
    </contents>
</profile>

Inside the XML file you define the documents to merge and the type of the documents. The documents to merge are in the contents tag and the type of the document are in the meta with key type.

For example, if you want to merge docs files: xml <meta key="type" value="docx"/> if you want to merge power point files xml <meta key="type" value="pptx"/>

For each document that you want to merge you have to create a new tag content with the attribute href, this attribute is the document location.