Bug 138273 - When I merge a mailing into a PDF file by Print command, it doesn't hide hidden paragraphs
Summary: When I merge a mailing into a PDF file by Print command, it doesn't hide hidd...
Status: RESOLVED DUPLICATE of bug 54703
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-16 23:49 UTC by Stephane Santon
Modified: 2020-11-17 10:46 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Mailing 1-n ODB database (3.43 KB, application/vnd.sun.xml.base)
2020-11-16 23:51 UTC, Stephane Santon
Details
Mailing 1-n ODT document (14.07 KB, application/vnd.oasis.opendocument.text)
2020-11-16 23:51 UTC, Stephane Santon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Santon 2020-11-16 23:49:30 UTC
Description:
On Writer, in text mailing documents, we can add "hidden paragraph" fields enabled with a condition. 
When you merge the writer document to the datasource, for every record, if the condition is true, the paragraph should be hidden.
If you access File | Print, there is a dialog like : "This document contains database fields. Would you like to print a mailing ?" -> YES
- if you select "Output on printer" : true condition hidden paragraphs are HIDDEN > OK
- if you select "Output on file | Save as a unique document > OK
- if you select "Output on file | Save as "distinct" documents | Filetype : ODF > OK when printed
- if you select "Output on file | Save as "distinct" documents | Filetype : PDF > NOT OK : IT DOESN'T HIDE hidden paragraphs !


Steps to Reproduce:
1. Download the 2 files mailing1n.odt and mailing1n.odb in the same folder
2. Open mailing1n.odt file in Writer
3. Check the link with the 'mailing1n.odb' datasource, 'events' table
4. Use menu File > Print
5. On dialog "This document contains database fields. Would you like to print a mailing ?" -> YES
61. Select Output : File
62. Select "Save as distinct documents" (NOT 'unique')
63. Check "Generate the filename from the database"
64. Field : "Name"
66. File type : 'PDF - Portable Document Format'
7. Press [OK]

Actual Results:
4 files of 1 page, every page with 5 record lines, some last records are the same

Expected Results:
4 files of 1 page :
- 2 record lines on Bernard.pdf
- 3 record lines on Jean.pdf
- 1 record line  on Larry.pdf
- 2 record lines on Sarah.pdf


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 8; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); Langue IHM : fr-FR
Calc: threaded
Comment 1 Stephane Santon 2020-11-16 23:51:00 UTC
Created attachment 167347 [details]
Mailing 1-n ODB database
Comment 2 Stephane Santon 2020-11-16 23:51:45 UTC
Created attachment 167348 [details]
Mailing 1-n ODT document
Comment 3 Timur 2020-11-17 10:46:27 UTC
Looks like duplicate. If not, please explain why.

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