++ed by:

1 PAUSE user

Jean-Marie Gouarné


odfsearch - Text selection and copy from one document to another using callback


This sample script extracts the content of every text element (paragraph, header, list item) in a source document matching a given pattern (string or regex), and appends it as a new paragraph to a target document. The target document must exist.

The target document must exist (it can be an empty document or a template).

usage : odfsearch target_file source_file "search_string"