Apache OpenOffice (AOO) Bugzilla – Issue 107496
document file corrupted after printing it via API
Last modified: 2013-08-07 14:44:07 UTC
- open the document "print_pages.odt" attached to issue 107494 - press the contained button, which executes a macro which basically calls ThisComponent.printPages( { "FileName", ThisComponent.URL } ) - close the document - re-open it => The "ASCII Filter Options" dialog opens, indicating that the document is not recognized anymore Indeed, doing a "unzip -v <file>" on a console shows some error basically saying that this is no ZIP file anymore.
problem did not happen in OOo 3.1.1
argh. According to OS, the "FileName" parameter to the printPages method describes were to print to, not the document to print. So, OOo is correct in overwriting this file (and 3.1.1 probably was incorrect in printing to the printer, instead of respecting the FileName property.) resolving as INVALID.
closing