Ask Your Question

A way to export only parts of a document

asked 2017-02-25 12:55:10 +0200

MatthijsG gravatar image

Every week i've to make a document for several people. They don't need all information in the document, but a part. The export is halfway in the proces. Let's say, A has to be exported and B ignored. The structure is like:

  • content part A
  • content part A
  • content part B
  • content part A
  • content part B
  • content part A
  • content part A
  • content part A
  • content part B


Now, i copy the whole content, remove all the content beloning to part B. But is there a way to do this quicker? Like, only export a particular style? Or ignore lines starting with ; etc etc ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-02-25 21:11:01 +0200

LibreTraining gravatar image

updated 2017-02-25 21:16:03 +0200

You could do this with Conditional Content.
Text, or paragraphs, or sections can all be made conditional based on some variable you define.

For example you could create a hidden field on the first page which contains a variable which you define such as PartA or PartB, or whatever.

Then when you print your document you simply change the hidden variable to get just the conditional content you want included in the document.

That a look at the LibreOffice 4.2 Writer Guide, Developing conditional content starting on page 412.

Tip: download the Writer Guide ODT file and Export to PDF with bookmarks.
Makes it much easier to find things with bookmarks.


edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-02-25 12:55:10 +0200

Seen: 103 times

Last updated: Feb 25 '17