PDFPageMark footer = _document.getFooter();
boolean hasHeader=header!=null;
boolean hasFooter=footer!=null;
if(hasFooter || hasHeader) {
Iterator<PDFDocument> it = documents.iterator();
PDFDocument doc;
while(it.hasNext()){
doc=it.next();
if(hasHeader && doc.getHeader()==null) doc.setHeader(header);
if(hasFooter && doc.getFooter()==null) doc.setFooter(footer);
}
}
doBookmarks=_document.getBookmark();
doHtmlBookmarks=_document.getHtmlBookmark();
}