LibreOffice automation - substitution -


we have dozen documents tailored different locales. currently, editing 1 means others must edited keep them in step. i'd have master document using generic terms, , generate locale-specific documents.

e.g. instead of:

en-au you must record vat purchases made in australia.

en-ca you must record gst/hst purchases made in canada.

10 more variations...

just have master document with:

you must record {{sales-tax}} purchases made in {{country}}.

and output specific documents substituting {{field}} value.

is possible in libreoffice via php or other scripting language? i'm using lo 3.5.7.2.

libreoffice documents zip files different extension. unzip them using unzip , you'll see content.xml. search , replace heart's content on xml.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -