print to PDF; bugfixes in autosave behaviour