document.setIncludeURIInfo(jxlDocument.isIncludeURIInfo());
document.setBackup(jxlDocument.isSetBackupBit());
document.setEncoding(jxlDocument.getOutputEncoding());
// Sort bookmarks for sites
if (jxlDocument instanceof Site) {
Site site = (Site) jxlDocument;
if (site.isSortBookmarks()) {
document.sortBookmarks();
}
}
fireGenerationStarted(jxlDocument);