Apache OpenOffice (AOO) Bugzilla – Issue 38881
PDF export of word doc throws error but writes PDF
Last modified: 2013-08-07 14:41:36 UTC
I have several word docs which cause the same error when I attempt to export them as PDF (either manually from the GUI or programmatically via Java UNO). In either case an exception occurs and and error appears in OpenOffice : "Write error. The file could not be written". There's plenty of free disk space and the user running it has administrative privilages. However, it seems the PDF file is actually created properly, even though the error is thrown. The source file is then locked and isn't released until the soffice.exe process is killed when running through the UNO bridge. OOo 1.1.3 and 1.1.4 RC1 both proces the files without error or problems (aside from recognised spacing compatibility issues). The exception raised from teh UNO bridge is as follows: com.sun.star.task.ErrorCodeIOException: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at com.sun.star.lib.uno.protocols.urp.Unmarshal.readExceptionValue(Unmarshal.java:464) at com.sun.star.lib.uno.protocols.urp.Unmarshal.readAnyValue(Unmarshal.java:400) at com.sun.star.lib.uno.protocols.urp.Unmarshal.readValue(Unmarshal.java:208) at com.sun.star.lib.uno.protocols.urp.urp.readReply(urp.java:190) at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:312) at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:624) at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:185) at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:170)
Created attachment 20456 [details] Source word file - opens OK, PDF export error
Created attachment 20457 [details] Produced PDF - even though error thrown
reassigned to HI.
Confirming the Issue
HI->PL: Occurs also with 680m65_8850.
This rather seems to be a problem with either framework or filters ? Does it occur with other export types, too ? At least the PDF export code in VCL does not throw any exceptions, especially no API exceptions (IOException in this case ?)
Yes, it occurs when exporting to xhtml in m62 as well. Same error - file is fully written and complete but error ("Write error. The file could not be written"). It saves as a sxw with no error - just the exporting is causing the error.
This problem seems to occur under these circumstances * For any document containing OLE objects * For any filter called by File-Export (pdf, xhtml, and other filters - see eg. issue 24813)
I cannot reproduce this issue with SRC680 m65, seems to be fixed.
I can reproduce it with SRC680 m65. Will attach ad_sponsor.doc.
Created attachment 21138 [details] Reproduces PDF export error
If it's still not fixed, it's worth a 2.0 target. Will investigate it later.
*** Issue 40156 has been marked as a duplicate of this issue. ***
.
wrong state
Same problem as in issue 40445 (->CWS MAV15)
. *** This issue has been marked as a duplicate of 40445 ***
Closing duplicate.