Bug 192044

Summary: Multiline edit form field rotated in landscape PDF document
Product: [Applications] okular Reporter: Stuart Naifeh <scnaifeh>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: hans_meine
Priority: NOR    
Version: 0.8.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: PDF showing the problem described.

Description Stuart Naifeh 2009-05-08 16:08:15 UTC
Version:           0.8.2 (using KDE 4.2.2)
Compiler:          gcc 4.3.3 this came as a binary as part of kubuntu
OS:                Linux
Installed from:    Ubuntu Packages

When entering text into a multiline edit form field in a PDF document in landscape orientation, the form field text is rendered rotated at 90 degrees. This only occurs if there is actually text on more than one line (i.e., one line of text in a multiline form field is rendered properly)

Note that text is oriented correctly when editing the form field, but as soon as you hit hide forms, it rotates.

Note also that a PDF with a multiline form field that already contains multiple lines of text when it is opened in Okular renders properly, but as soon as that form field is edited in Okular, and then you hit hide forms, it rotates.

To create the attached PDF, I opened a plain document in MS Word under Windows XP, changed the orientation under Page Setup, printed to PDF, and then opened the PDF file in Acrobat and added a single multiline form field.  I then opened it in Okular under Kubuntu, and added text to the field.  I then tried adding the text in Acrobat before opening in Okular (see second note above).
Comment 1 Stuart Naifeh 2009-05-08 16:14:57 UTC
Created attachment 33471 [details]
PDF showing the problem described.

To confirm bug, open pdf in Okular.  The text in the form field will be rendered correctly.  Then hit "Show Forms" and put the cursor in the form field   You don't need to actually make any changes.  Then hit "Hide Forms."  The text now appears oriented at the right side of the form field, rotated 90 degrees to the right.
Comment 2 Pino Toscano 2009-05-08 16:25:37 UTC
I can reproduce the same problem with Evince, a document viewer which uses the same library Okular uses for PDF documents, called Poppler.

Please report the problem (so it is tracked properly) to the bug tracking system of Poppler, at https://bugs.freedesktop.org, "poppler" product.
Don't forget to mention with Poppler version you are using, and the testcase.

Thanks!
Comment 3 Hans Meine 2010-07-13 15:14:28 UTC
This poppler bug is very annoying and still exists.  For me it happens also with the first line I think (looks like single-line fields, but maybe a misuse).

Looks like this is Stuart's upstream bugreport:
  http://bugs.freedesktop.org/show_bug.cgi?id=21634