Bug 44388

Summary: Printing/Exporting to PDF adds text to the side of form elements ('checkbox',...)
Product: LibreOffice Reporter: Hans-Peter Oeri <hp-bugs.freedesktop.org>
Component: Printing and PDF exportAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: low CC: christopher.m.penalver, cno, gdna, stgohi-lobugs
Version: 3.4.3 release   
Hardware: All   
OS: Linux (All)   
See Also: https://launchpad.net/bugs/891522
Whiteboard:
i915 platform: i915 features:
Attachments: writer document with form elements
printout in pdf format
printout in ps format
printout in PDF 2015-01-05

Description Hans-Peter Oeri 2012-01-02 09:09:02 UTC
Created attachment 55048 [details]
writer document with form elements

Printing with printer language PDF or exporting to PDF a document with form elements, the resulting PDF has added further text to the side of form elements ('checkbox',...).

Exporting to actual PDF forms, this does not happen. The graphical representation of the elements changes, however.

Printing with printer language PS does not include that additional text either.
Comment 1 Hans-Peter Oeri 2012-01-02 09:10:09 UTC
Created attachment 55049 [details]
printout in pdf format
Comment 2 Hans-Peter Oeri 2012-01-02 09:10:42 UTC
Created attachment 55050 [details]
printout in ps format
Comment 3 Cor Nouws 2012-01-21 15:20:10 UTC
Hi Hans-Peter,
I've seen this before, I think.

I think I solved it by removing the default names of the elements, or narrowing the boxes, or ... ?
Abyway, I confirm this, also in 3.5.0rc1
Comment 4 Christopher M. Penalver 2012-05-15 04:24:34 UTC
1) lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

2) apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.5.3-0ubuntu1
  Candidate: 1:3.5.3-0ubuntu1
  Version table:
 *** 1:3.5.3-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1:3.5.2-2ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

apt-cache policy acroread
acroread:
  Installed: 9.5.1-1precise1
  Candidate: 9.5.1-1precise1
  Version table:
 *** 9.5.1-1precise1 0
        500 http://archive.canonical.com/ubuntu/ precise/partner i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen in Writer via the Terminal:
cd ~/Desktop && wget https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/891522/+attachment/2600734/+files/testdocument.odt && lowriter -nologo testdocument.odt

and either:
File -> Print -> button OK

or:
File -> Print -> tab Options -> check checkbox Print to File

and the resulting print or PDF looks as it does in Writer.

4) What happens instead the print and PDF have text overlapping as in the PDF https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/891522/+attachment/2599557/+files/printout .

WORKAROUND: For printing, switch 'Printer Language Type' to PostScript.

WORKAROUND: For exporting PDF, use File -> Export as PDF.
Comment 5 A (Andy) 2014-12-25 12:10:33 UTC
I tested it with LO 4.4.0.0.beta1 (Win 8.1) with EXPORT AS PDF and with PRINT -> pdf printer.

-> I could not reproduce it as it is seen in the pdf attachment (but I don't see the logo in the top left).  

This bug is already quite old.  Therefore, is this issue for others still reproducible with the latest releases of LO?
Or is this a Linux only issue?
Comment 6 Hans-Peter Oeri 2015-01-05 10:04:43 UTC
As of 2015-01-05, the issue still stands (see attached PDF printout).

The added text seems to be the control's 'label' text. Emptying all 'label' properties, seems a good workaround.

Still, the handling of PDF control 'labels' differs from screen an PS.
Comment 7 Hans-Peter Oeri 2015-01-05 10:05:30 UTC
Created attachment 111757 [details]
printout in PDF 2015-01-05
Comment 8 Cor Nouws 2015-01-05 19:27:19 UTC
(In reply to Hans-Peter Oeri from comment #6)
> The added text seems to be the control's 'label' text. Emptying all 'label'
> properties, seems a good workaround.

That was what I meant to say with my comment #3. Sorry if that was not clear ;)
Comment 9 Nikos 2015-01-06 10:38:17 UTC
I am also affected by this. I wanted to add that it only occurs when ISO 19005-1 conformity is checked (which however is something preferred where I work.
This is on 4.4.0.1 and 4.0.5 (regardless of OS).

However, on current master  (Version: 4.5.0.0.alpha0+
Build ID: 57626f2132f73e4e42b31e364b25c5867336e718) the problem occurs irrespective of the selection of PDF/A-1a

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.