The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenOffice::OODoc::InsertDocument - insert, merge or append OpenOffice::OODoc objects

VERSION

Version 0.01

SYNOPSIS

    use OpenOffice::OODoc;
    
    my $oodoc_dest_document = odfDocument(file => "MyDestFile.odt");
    my $oodoc_from_document = odfDocument(file => "MyFromFile.odt");
    
    my $replace_me_element = $oodoc_dest_document
        ->selectElementByContent("[[ replace_me ]]");
    $oodoc_dest_document
        ->insertDocument( $replace_me_element, 'before', $oodoc_from_document );
    $replace_me_element->delete;

DESCRIPTION

This module will enable to merge the content from one OpenOffice::OODoc into another.

METHODS

appendDocument TODO

Inserts an OpenOffice::OODoc at the end off the document.

    $oodoc_orig->appendDocument( $oodoc_from, new_page => 1 );

insertDocument

Inserts a OODoc document at location.

    $oodoc_dest_document->insertDocument( $oodoc_element, 'after', $oodoc_from );

CAVEAT

COPYRIGHT

Copyright (c) 2018, Th. J. van Hoesel - Mintlab B.V.

LICENCE

This software is distributed, subject to the EUPL. You may not use this file except in compliance with the License. You may obtain a copy of the License at <http://joinup.ec.europa.eu/software/page/eupl>

Software distributed under the License is distributed on an "AS IS"vbasis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.