FYI, for anyone in need of a workaround, [email protected]
describes a workaround in the Debian bug tracker entry:

"Running the original pdf through either pdfopt or pdfedit's delinearize
function creates a form that can be correctly saved, at least in this
case."

I can attest that this works. Just open a terminal and type "pdfopt
<original pdf file> <new file>", then open <new file> in Evince and make
all your edits with that version of the file. Saving that file will
work.

Interestingly, the pdfopt workaround will NOT work on a file that has
_already_ been saved by Evince. Instead, it outputs a fatal error:

$ pdfopt f1040sd-borked.pdf f1040sd-borked-out.pdf 
Error: /undefined in --get--
Operand stack:
   --nostringval--   FirstPageXrefLength   --nostringval--   
--dict:9/9(ro)(G)--   filetype
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   
1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   1739   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--   
--nostringval--   --nostringval--   --nostringval--   --nostringval--   
--nostringval--   --nostringval--   --nostringval--   --dict:13/14(L)--   
--nostringval--   12   %dict_continue   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1150/1684(ro)(G)--   --dict:1/20(G)--   --dict:109/200(L)--   
--dict:76/200(G)--   --dict:285/300(ro)(G)--   --dict:18/25(L)--   
--dict:46/80(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 36516
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
$

So evidently Evince is actually saving corrupt data.

-- 
Some PDF forms don't save entered information
https://bugs.launchpad.net/bugs/518230
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to