Bug 310095

Summary: Fill-In Form data saved for Okular but not Acrobat Reader or Evince
Product: [Applications] okular Reporter: Marco Parillo <marco_parillo>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aacid, fabiodurso
Priority: NOR    
Version: 0.15.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The starting form with no data entered
The form with some sample data entered

Description Marco Parillo 2012-11-14 15:12:47 UTC
Saved Filled-in form data seems to be saved only for Okular.

Reproducible: Always

Steps to Reproduce:
1. I open a fill-in form
2. Click Show Forms and enter data
3. Save as a new version
4. Close Okular.
5. Open the new version from Dolphin.
6. Click Show Forms. See my entered data.
7. E-mail to a Windows or Xubuntu user.
8, They try to open the .pdf using another viewer (Adobe Acrobat Reader or Evince). They do not see the data.
Actual Results:  
Entered data only visible in Okular

Expected Results:  
Entered data should be visible in any PDF viewer.
Comment 1 Marco Parillo 2012-11-14 15:13:43 UTC
Created attachment 75246 [details]
The starting form with no data entered
Comment 2 Marco Parillo 2012-11-14 15:14:27 UTC
Created attachment 75247 [details]
The form with some sample data entered
Comment 3 Albert Astals Cid 2012-11-14 15:44:51 UTC
Fabio any clue? Seems the modification did not change the graphical data?
Comment 4 Marco Parillo 2012-11-14 16:09:53 UTC
(In reply to comment #0)
> Saved Filled-in form data seems to be saved only for Okular.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. I open a fill-in form
> 2. Click Show Forms and enter data
> 3. Save as a new version
> 4. Close Okular.
> 5. Open the new version from Dolphin.
> 6. Click Show Forms. See my entered data.
> 7. E-mail to a Windows or Xubuntu user.
> 8, They try to open the .pdf using another viewer (Adobe Acrobat Reader or
> Evince). They do not see the data.

Note that Acrobat Reader and Evince are running on Windows. Document Viewer 3.6.0 using poppler/cairo (0.20.4) is running on Xubuntu.

> Actual Results:  
> Entered data only visible in Okular
> 
> Expected Results:  
> Entered data should be visible in any PDF viewer.
Comment 5 Fabio D'Urso 2012-11-14 16:38:12 UTC
Seems this is yet another XFA form with the same issue as https://bugs.freedesktop.org/show_bug.cgi?id=55978. XFA forms are not supported by Poppler yet.
Starting from Okular 0.16 + Poppler 0.22, you get a warning telling that this document contains XFA forms, which are not supported.
Comment 6 Marco Parillo 2012-11-14 16:53:20 UTC
(In reply to comment #5)
> Seems this is yet another XFA form with the same issue as
> https://bugs.freedesktop.org/show_bug.cgi?id=55978. XFA forms are not
> supported by Poppler yet.
> Starting from Okular 0.16 + Poppler 0.22, you get a warning telling that
> this document contains XFA forms, which are not supported.

So, as long as I stick with Okular, I will be fine, but XFA form data cannot be shared with users of  Acrobat Reader, Evince, and Document Viewer? What will change in the next release is that I will be warned?
Comment 7 Fabio D'Urso 2012-11-14 17:11:52 UTC
> So, as long as I stick with Okular, I will be fine, but XFA form data cannot
> be shared with users of  Acrobat Reader, Evince, and Document Viewer?
Poppler's non-XFA form support has been improved in 0.22, and because of those changes it happens that you will be able to share filled form data in this document with other poppler-based viewers, such as evince. *But* I discourage you from doing that, because when sometime in the future Poppler will start to support XFA datasets, it will probably behave like acroread currently does, i.e. it will show nothing. So my suggestion is to treat all XFA forms as unsupported, even though they appear to work.

> What will change in the next release is that I will be warned?
Correct. The exact message is "This document has XFA forms, which are currently unsupported", and it shown instead of the regular one "This document has forms. Click on the button to interact with them, or use View -> Show Forms.".