Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

merge LibreOffice files

by Anonymous Monk
on Jul 16, 2013 at 19:09 UTC ( #1044645=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Greetings Monks,

I am using perl to combine dozens of files into a single LibreOffice odt document. I have been successful with text files and code files using the following:

use OpenOffice::Doc;
$doc = odfDocument(file => "document_name.odt");
$doc -> appendParagraph(text => "some text", style => 'text body');
$doc -> save;

Now that I am working with 30-40 files I want to add in some odt files that contain pictures, drawings, etc. I have looked for things like "$doc -> appendDocument" or "$doc = $doc1 + $doc2" but I can't seem to find anything that works. This seems like such a simple thing to do compared to all the ooDoc examples available on the web. I must be missing something obvious. How can I append a odt file (with pictures, tables, etc.) to a document that I am building using ooDoc?

Thanks,
Bruce

Comment on merge LibreOffice files

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1044645]
Approved by hdb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-07-05 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls