Apache OpenOffice (AOO) Bugzilla – Issue 91097
XSLT filters do not work with large graphics included
Last modified: 2013-08-07 14:44:35 UTC
When I try to export my odt document to xhtml, I get the following error message: "Error saving the document <filename>: Write Error. The file could not be written." There is enough free space on the drive and I have write permissions, of course. I. e. I can save files to in that folder.
Reassigned
Could you please attach the document that failed, most likely the problem was in that document. You may in addition add some logging under Tools->Options->Java adding the Java Parameter -DXSLTransformer.statsfile=<LOGFILEPATH> Where LOGFILEPATH is the file to your debug output file. Good luck ;-) Svante
Created attachment 54760 [details] the document that failed
Created attachment 54761 [details] Logfile (DXSLTransformer.statsfile)
This was quick! If you are not a technical person skip this part: The log says it is a heap overflow it is a hint the input is too large. If you rename the document exchanging ODT with ZIP, you can easily unzip the package and have a look inside. The content is not such big, the transformation is able to process 700 pages of specification, but in the Pictures folder is a 6BM TIFF picture. This picture will be encoded in BASE64, which blows the size again to 33% and than will be parsed by the XML parser. Yes, it sounds strange and we are currently discussing it to change it to access only the files in the package the filter needs. What you can do! ================ You can transform the picture with a graphic program to a smaller sized format and exchange it in the ODT document. Than try again the XHTML export. If it works than, we should rename this issue to "XSLT filters do not work with large graphics included" Best, Svante
Thank you, Svante! Your guess was right. After I converted the picture from TIFF to PNG, export to xhtml worked. I will rename this issue now to "XSLT filters do not work with large graphics included". Cheers Tobias