Issue 89597 - disabled form field not disabled in PDF export
disabled form field not disabled in PDF export
Status: CONFIRMED
Product: General
Classification: Code
Component: ui
3.4.0
All All
: P3 trivial (vote)
: ---
Assigned To: AOO issues mailing list
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-17 22:19 UTC by kerzo
Modified: 2013-12-10 15:48 UTC (History)
6 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation on: ---
Developer Difficulty: ---


Attachments
Steps to create - Detailed (180.84 KB, application/pdf)
2013-09-24 16:13 UTC, nahata22
no flags Details
Form Controls - Exported to PDF (27.13 KB, application/pdf)
2013-09-24 16:13 UTC, nahata22
no flags Details
Form Controls - Native ODF format (12.58 KB, application/vnd.oasis.opendocument.text)
2013-09-24 16:14 UTC, nahata22
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kerzo 2008-05-17 22:19:28 UTC
when exporting a Writer's form to PDF, disabled fields are reenabled in PDF file.

behaviour checked in :

 Ooo 2.4 & 3.0b / Ubuntu 8.04
 Ooo 2.4 / WinXP
Comment 1 michael.ruess 2008-05-19 14:12:46 UTC
Reassigned to HI.
Comment 2 gatis 2009-04-25 04:13:42 UTC
Checked this issue in OOo-dev 3.1.0 [(OOO310m7) (build:9393)]. PDF export worked
just fine, hidden fields remained hidden, unhidden fields remained unhidden.
Issue was not reproducible.
Comment 3 nahata22 2013-09-24 16:13:22 UTC
Created attachment 81619 [details]
Steps to create - Detailed
Comment 4 nahata22 2013-09-24 16:13:57 UTC
Created attachment 81620 [details]
Form Controls - Exported to PDF
Comment 5 nahata22 2013-09-24 16:14:33 UTC
Created attachment 81621 [details]
Form Controls - Native ODF format
Comment 6 nahata22 2013-09-24 16:18:09 UTC
ASSUMPTION: I am also assuming the fields are part of Form Control dialog.

I'm working with OpenOffice 4.0.0 AOO400m3(Build:9702)  -  Rev. 1503704 on a Windows 7. I also replicated this on OpenOffice 3.3.0 OOO330m20(Build 9567) on an XP machine. 

Because I am uncertain and unclear for "form field", I have assumed this to be the components of Form Dialog. I have attached explicit instructions in the "Steps to Create" PDF attachment. I am also attaching the "Form Controls" file in both the exported PDF and the  native ODF format.

Steps to create:

1) Open OpenOffice Writer. Enable Form Control toolbar View->Toolbars->Form Controls
2) From the Forms Control tool bar, click on the option Button(It should be higlighed in a grey box), go the sheet and draw it onto the sheet. 
3) Double click on the option button and change the "Enabled" and "Visible" property to No. Close the property dialog.
4) Add another option button. Set Enabled=No and Visible=Yes for its property. Close the property dialog.
5) Add 3rd option button. Set Enabled=Yes and Visible=No for its property. Close the property dialog.
6) Add the 4th option button. Set Enabled=Yes and Visible=Yes for its property. Close the property dialog.
7) Export the PDF file. Observe the controls in PDF file. You can now observe the bug.
All the 4 option button are visible and can be selected in the PDF. My expectations were:

Enabled=No and Visible=No   -> Hidden and Unable to select in PDF
Enabled=No and Visible=Yes  -> Visible but Greyed out in PDF
Enabled=Yes and Visible=No  -> Hidden in PDF(Although I can select it)
Enabled=Yes and Visible=Yes -> Visible and able to select in PDF.

Follow up Tests:
1) I added 2 Push button using the Form controls. One of them was Enabled=Yes and it was set to open www.google.com, whereas the other one had Enabled=No and was set to open www.yahoo.com
2) After exporting to PDF, I saw both the buttons were enabled and functioning.

It thus appears that the Enabled and Visible property works in ODF but exporting them to PDF causes them to lose their property. I have neither tested other properties nor other components in Form Control, except Enabled and Visible property for option button and Push button.

P.S. I was not able to find any related bug to Form Control.
Comment 7 nahata22 2013-09-30 13:43:24 UTC
Just a clarification:
The 3 attachments and the steps provided in my earlier comments do REPLICATE this bug.
Comment 8 cory.schultz90 2013-10-11 19:29:26 UTC
While testing the bug for disabled form fields not being disabled in the PDF export, I was able to replicate the same bug in OO 4.0.1 (Build:9714). Which is a version of OpenOffice from when the bug was originally found as well as only a couple builds away from Nahata's results. 

Having this bug persist wont allow customers to get the proper and full functionality out of exporting OO writer files to PDF, if they ever would like for a field to not be visible.
Comment 9 cory.schultz90 2013-10-11 19:30:55 UTC
(In reply to cory.schultz90 from comment #8)
> While testing the bug for disabled form fields not being disabled in the PDF
> export, I was able to replicate the same bug in OO 4.0.1 (Build:9714). Which
> is a version of OpenOffice from when the bug was originally found as well as
> only a couple builds away from Nahata's results. 
> 
> Having this bug persist wont allow customers to get the proper and full
> functionality out of exporting OO writer files to PDF, if they ever would
> like for a field to not be visible.

My apologies, I forgot to mention that I was running Windows 8 as well.
Comment 10 Armin Le Grand 2013-10-15 16:02:30 UTC
ALG: Two comments:
- It's not trivial (as stated in the importance field)
- It's a feature request, not a bug
Comment 11 Rainer Bielefeld 2013-12-10 06:40:20 UTC
Still Reproducible with server installation of "AOO 4.1.0-Dev – English  UI / English locale - [AOO410m1(Build:9750)  -  Rev. 1546757 - 2013-12-02]" on German WIN7 Home Premium (64bit)", own separate user profile.

Additional info:
---------------
(a) has nothing to do with Writer, is a general problem
(b) Indeed, Enhancement request, currently there is nothing in PDF export 
    dialog related to activity of forms.
(c) h.ilter@web.de seems to be not a contributor, so Assignee back to list
(d) Also still a Problem with LibO Version: 4.1.3.2
(e) Latest confirmation for AOO 4.1.0-dev, but because of incomplete LCo 
    selector (Bug 123063) no correct information can be contributed.
Comment 12 Rainer Bielefeld 2013-12-10 06:40:52 UTC
(f)  Already reproducible with  Pre-3.4.0 (OOo 3.3.0), but because of crippled  
     Version selector (Bug 123063) no useful info can be contributed
Comment 13 hanya 2013-12-10 15:48:15 UTC
This problem depends on the PDF format itself.
The form object do not support disable feature and visibility on PDF format that described in 
Chapter 8.6 Interactive Forms of PDF Reference 1.7.
But it seems to make the control read-only is supported.

Therefore, if someone wants to support this kind of function on exported PDF file, 
we need alternative way to do in a limit of the PDF file format.