https://bugs.documentfoundation.org/show_bug.cgi?id=137469

            Bug ID: 137469
           Summary: Text filter doesn't hide hidden paragraphs
           Product: LibreOffice
           Version: 6.4.6.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: olegsh...@yandex.ru

When I choose to export writer document as Text hidden paragraphs which was
hidden in PDF are shown in TXT file:

Example template: https://ask.libreoffice.org/upfiles/15929228703192809.odt

Example python3 code: https://pastebin.com/i7u7X9gB

PDF contains:

Simple paragraphs with variable abc
Hidden paragraph if abc
Simple paragraph with variable 3.65
Hidden paragraph if greater 5
Numeric user field 123,458.67

but TXT file contains:

Simple paragraphs with variable abc
Hidden paragraph if abc
Hidden paragrap if not abc
Simple paragraph with variable 3.65
Hidden paragraph if less 5
Hidden paragraph if greater 5
Numeric user field 123,458.67

To generate TXT file replace last script line with

model.storeToURL("file:///tmp/output/test1.txt", [PropertyValue("FilterName",
-1, "Text", 0)])

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to