Description: I am doing a mail merge, where a text should be hidden if a data field is empty. The output is to individual files. The text is correctly hidden if the output file format is ODF, but it is not hidden if the output file format is PDF. Steps to Reproduce: 1. download sample data (a zipped file with the calc spreadsheet, the writer document, and the output files). 2. open test-bug.odt and press CTL+P to print the document. 3. Answer Yes to the question : "Your document contains address database fields. Do you want to print a form letter?" 4. specify output to file, save merged document as individual documents, generate the file name from the database (field1). 5a. specify the file format as "ODF Text Document". 5b. specify the file format as "PDF - Portable Document Format". Actual Results: If file format is ODF Text Document (odt), the text is hidden if a data field is empty, see ccc.odt : no field2 text. If file format is Portable Document Format (PDF), the text is not hidden if a data field is empty, see ccc.pdf : field2 text appears. Expected Results: If file format is Portable Document Format (PDF), the text is hidden if a data field is empty, see ccc.odt : no field2 text. Reproducible: Always User Profile Reset: No Additional Info: see sample data in attachment
Created attachment 184107 [details] sample data with spreadsheet, database and writer doc to reproduce the problem
Reproduced, the ccc.pdf shows field2 : while there is nothing in the ODT. Bibisected with Linux 43all repo to range https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=43c7830b03d141ae11d8617c0fdabefa32dd243c..ce97851773a06103504972eb2771eecd7dd81e36 I tried grepping inside the range with queries like git log 43c7830b03d141ae11d8617c0fdabefa32dd243c...ce97851773a06103504972eb2771eecd7dd81e36 --grep=mail but could not find anything relevant. The range covers about 2 months. Later there was a change that affected the output (d7e0d0135ba65243fab5ee038c21290b8e74e548)
(In reply to Buovjaga from comment #2) > Later there was a change that affected the output > (d7e0d0135ba65243fab5ee038c21290b8e74e548) I meant the regression causing 356d93766e27337a5463e793ceeb9da757a3a37f
*** Bug 153247 has been marked as a duplicate of this bug. ***
Mike: your db04be037b611e296ef9f2542322c52ed82d7a2b made the field names be hidden by default "for any non-native documents", but apparently this does not extend to PDF.
(In reply to Buovjaga from comment #5) This is unrelated to PDFs being "non-native" (because the output PDF is *generated*, not read). But yes, this is an implementation defect. Needs debugging and fixing. (No cycles to take it, sorry :) - please use the old "hidden paragraph" fields as a workaround, until someone fixes it.)
Thanks, I'll adjust the meta data
Dear Jean-Paul, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
the bug is still present Version: 25.2.2.2 (X86_64) / LibreOffice Community Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac CPU threads: 8; OS: macOS 10.15.7; UI render: Skia/Metal; VCL: osx Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR Calc: threaded As a workaround, I use the plugin odf2pdf which batch generate a PDF file from the ODF correct file. I have no time to test if the bug was present with 3.3 ('inherited from OOo')