Bug 128237 - MAILMERGE Hidden paragraphs saving mail merge to individual PDF files
Summary: MAILMERGE Hidden paragraphs saving mail merge to individual PDF files
Status: RESOLVED DUPLICATE of bug 54703
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.6.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Mail-Merge
  Show dependency treegraph
 
Reported: 2019-10-18 19:13 UTC by Luis Iglesias
Modified: 2020-11-17 10:45 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example Writer document to reproduce bug (8.50 KB, application/vnd.oasis.opendocument.text)
2019-10-18 19:15 UTC, Luis Iglesias
Details
Individual output file in PDF format. (11.31 KB, application/pdf)
2019-10-24 16:57 UTC, Luis Iglesias
Details
Individual output file in PNG format. (8.29 KB, image/png)
2019-10-24 16:59 UTC, Luis Iglesias
Details
Additional examples to reproduce bug (56.31 KB, application/x-zip-compressed)
2020-05-04 10:30 UTC, Sebastian Rippen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luis Iglesias 2019-10-18 19:13:12 UTC
Description:
Hidden paragraphs are actually hidden when condition matches on saving mail merge to individual files in odt or png format. But when saving on pdf individual files, paragraph is visible even when condition matches

Steps to Reproduce:
1.Create write document and insert any Bibliography database fields
2.Add normal paragraph with text "Hidden when Custom1 = English"
3.Insert hidden-paragraph field for that paragraph with condition [Bibliography.biblio.Custom1 EQ "English"]
4.Print with form letter option. Save as individual documents with PDF file format

Actual Results:
Every individual PDF file will show paragraph, even when Custom1 field equals to "English".
If you try saving to PNG format, you will check that paragraph is hidden when condition matches.

Expected Results:
It would be expected that hidden paragraph is not visible when condition matches


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.2.8.2 (x64)
Build ID: f82ddfca21ebc1e222a662a32b25c0c9d20169ee
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US
Calc: threaded
Comment 1 Luis Iglesias 2019-10-18 19:15:56 UTC
Created attachment 155126 [details]
Example Writer document to reproduce bug

It uses Bibliography database installed by default in my LibreOffice suite
Comment 2 Xisco Faulí 2019-10-23 14:34:45 UTC
Hi Luis,
Thanks for reporting this issue.
I can't reproduce it in

Version: 6.4.0.0.alpha1+
Build ID: 437dc68285dab0f08a1ded2193d86d64f560cd9b
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 3 Luis Iglesias 2019-10-24 16:55:31 UTC
Hi Xisco.
Thanks a lot for your time on supporting LibreOffice.
I'm sorry to say that after installing:
===
Versión: 6.4.0.0.alpha1+ (x64)
Id. de compilación: 943cd5381b241f18f9ede25f3c2de4168a998caa
Subprocs. CPU: 8; SO: Windows 10.0 Build 17763; Repres. IU: GL; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES
Calc: threaded
===
bug is still present
In PNG individual files hidden paragraph is actually hidden but in PDF individual files hidden paragraph is shown.

I'll try to attach output files
Comment 4 Luis Iglesias 2019-10-24 16:57:42 UTC
Created attachment 155287 [details]
Individual output file in PDF format.

Last paragraph is shown even when condition to hide matches
Comment 5 Luis Iglesias 2019-10-24 16:59:44 UTC
Created attachment 155288 [details]
Individual output file in PNG format.

In PNG file, last paragraph is correctly hidden, because condition to hide matches (please compare to PDF output file)
Comment 6 Buovjaga 2020-04-30 17:10:55 UTC
(In reply to Luis Iglesias from comment #1)
> Created attachment 155126 [details]
> Example Writer document to reproduce bug
> 
> It uses Bibliography database installed by default in my LibreOffice suite

Not reproduced. The PDF files are produced with the last paragraph hidden in case of Custom1 == English.

The only difference I see in your setup is you use OpenGL. Might try turning it off: Tools - Options - LibreOffice - View - Use OpenGL for all rendering

Arch Linux 64-bit
Version: 7.0.0.0.alpha0+
Build ID: 623d6cf06ccba392c1993a3b0ad271d508205e73
CPU threads: 8; OS: Linux 5.6; UI render: default; VCL: kf5; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Built on 29 April 2020

Version: 7.0.0.0.alpha0+ (x64)Build ID: 5063669a17538ea353e34ab0990363399d34f4f4CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; Locale: fi-FI (fi_FI); UI-Language: en-USCalc: threaded
Comment 7 Sebastian Rippen 2020-05-04 06:11:59 UTC
Hello, everybody!

I came across this post the other day when I was on the solution to the same problem.
I have exactly the same issue when creating serial letters with (not) hidden paragraphs as Luis describes.
I first noticed this phenomenon with version 6.1.6.3, but in the meantime I could reproduce it on different computers with LibreOffice 6.2.8.2, 6.3.5.2 and now also with 6.3.5.2.
The OpenGL settings have no influence on the result. Also with me the problem appears obviously only when exporting PDF files (Export to PNG is not affected).

Kind regards
Sebastian Rippen


Version: 6.3.6.2 (x64)
Build-ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: threaded
Comment 8 Buovjaga 2020-05-04 07:11:52 UTC
Sebastian: can you reproduce the problem with a master build: https://dev-builds.libreoffice.org/daily/master/current.html Win-x86_64@tb77-TDF ?
Comment 9 Sebastian Rippen 2020-05-04 08:50:38 UTC
> Sebastian: can you reproduce the problem with a master build:
> https://dev-builds.libreoffice.org/daily/master/current.html
> Win-x86_64@tb77-TDF ?

Thanks for your quick response.
Tried it on Windows 7 x64 with LibreOffice 7.0.0.0-alpha0+ (x64) 00db5933ded1884b2ac453552badae20fa943478 with default settings; unfortunately i have the same result - hidden paragraphs by expression are visible in PDF-output.

Please let me know if you need more information or anything else that might help.
Comment 10 Buovjaga 2020-05-04 09:10:35 UTC
Ok, I guess I'll set to NEW, even though I can not reproduce on Windows or Linux
Comment 11 Sebastian Rippen 2020-05-04 10:30:05 UTC
Created attachment 160315 [details]
Additional examples to reproduce bug
Comment 12 Sebastian Rippen 2020-05-04 10:37:24 UTC
I have now created a test mailmerge with the master-build-version in a standard environment, which contains only minimal data. Here I could reproduce the problem as well.

See Attachment: https://bugs.documentfoundation.org/attachment.cgi?id=160315

As output for the mailmerge i choosed the formats PNG, JPG, HTML, TXT and PDF. 
Interestingly, the paragraphs to be hidden are only correctly ignored in the graphic-based file formats (PNG and JPG). As you can see, paragrahphs still exists in the text-based formats of the mailmerge output.

Maybe the example will help you to locate the problem additionally.
Comment 13 Timur 2020-11-17 10:45:12 UTC
Looks like duplicate. If not, please explain why.

*** This bug has been marked as a duplicate of bug 54703 ***