PDF export does not omit placeholder texts (from Insert - Fields - Other - Functions tab) but renders them as they appear in the UI.
Could you attach sample document and how to reproduce that problem? If possible some screenshot about what is expected & unexpected.
Created attachment 79517 [details] Minimal example exhibiting the bug
Created attachment 79518 [details] Actual PDF export of minimal example
Created attachment 79519 [details] Expected PDF export of minimal example
Created attachment 79520 [details] Screenshot of minimal example exhibiting the bug
Created attachment 79521 [details] Screenshot of actual PDF export of minimal example
Created attachment 79522 [details] Screenshot of expected PDF export of minimal example
- Steps to reprocude -: 1. Open new Writer Document 2. Choose INSERT - FIELDS - OTHER - FUNCTIONS tab 3. Choose type PLACEHOLDER - any FORMAT 4. Enter *placeholder text* in PLACEHOLDER and confirm insertion 5. Render document to PDF - Actual output -: A PDF document with the cyan underlined text "<placeholder text>", as it appears in the UI. - Expected output -: An empty PDF document.
Can someone confirm this bug?
reproducible on LO 4.0.4.1 (Win7 32bit) Tried printing with PDFcreator also produces same output. Even option 'Text placeholders' unticked in menu File > Print > tab 'LibreOffice Writer'
** Please read this message in its entirety before responding ** 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 on a currently supported version of LibreOffice (4.4.1 or later) https://www.libreoffice.org/download/ *If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior *If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System 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) http://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: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-04-18
Still repro. Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+ Build ID: 437210d58f32177ef1829d704f7f4d2f1bbfbfdd TinderBox: Win-x86@39, Branch:master, Time: 2015-06-18_07:21:56 Locale: fi-FI (fi_FI)
Did some checks: -> Visible in 'Preview in Web Browser' -> Visible in 'Print Preview' -> Visible in PagePreview of last loaded Documents (fresh started LO) -> Not visible in 'Print' Dialog Preview -> Not part of PDF when using 'Print' and any Pdf-Printer tool -> Visible in our PDF export -> Visible in Export to XHTML -> Not visible in Export to Jpeg (after that not visible in EditView and PageMargins are shown as full rectangle ... strange, ok again after reload) -> Export to PNG same as Export to Jpeg (also strange) So, what is intended and what is not intended? I interpret the bug report as 'should not be visible in PDF export'. Or would it be more precisely be 'should not be visible in any export'...?
(In reply to Armin Le Grand (CIB) from comment #13) > Did some checks: > -> Visible in 'Preview in Web Browser' > -> Visible in 'Print Preview' > -> Visible in PagePreview of last loaded Documents (fresh started LO) > -> Not visible in 'Print' Dialog Preview > -> Not part of PDF when using 'Print' and any Pdf-Printer tool > -> Visible in our PDF export > -> Visible in Export to XHTML > -> Not visible in Export to Jpeg (after that not visible in EditView and > PageMargins are shown as full rectangle ... strange, ok again after reload) > -> Export to PNG same as Export to Jpeg (also strange) > > So, what is intended and what is not intended? I interpret the bug report as > 'should not be visible in PDF export'. Or would it be more precisely be > 'should not be visible in any export'...? I'd say it should not be visible in any export. Can't see any use case. If someone complains we can still add an option to toggle the behavior.
Codepoint where decision is made is sw/source/core/text/porfld.cxx/SwFieldPortion::Paint ln 427. Decision is made using IsShowPlaceHolderFields() using an instance of SwViewOption. That option is changed when using Print/LibreOffice_Writer/Text_Placeholders checkbox. Exactly that option is true at PDF export.
Oliver Specht committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=d41d8383b783f048af626acb9460a9c973a5ee8d tdf#64748: added placeholder option to pdf export dialog in Writer It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Oliver Specht committed a patch related to this issue. It has been pushed to "libreoffice-5-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=247e418485c276bb9e8dcb84a6e11b90191482a3&h=libreoffice-5-1 tdf#64748: added placeholder option to pdf export dialog in Writer It will be available in 5.1.4. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Notes for unit test writers: Nothing to revert here, you would be testing a new option. PDF exports can be checked with pdfium, see for example sw/qa/extras/globalfilter/globalfilter.cxx