w2x: Use zero body margin for the file containing the cover image in EPUB export
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@133 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
cc68f96a2c
commit
90d1b47551
3 changed files with 10 additions and 1 deletions
|
@ -242,6 +242,14 @@ public class DrawConverter extends ConverterHelper {
|
|||
bCollectFullscreenFrames = false;
|
||||
handleDrawElement(cover,currentNode,null,FULL_SCREEN);
|
||||
bCollectFullscreenFrames = true;
|
||||
// Add margin:0 to body
|
||||
Element head = Misc.getChildByTagName(hnode.getOwnerDocument().getDocumentElement(),"head");
|
||||
if (head!=null) {
|
||||
Element style = converter.createElement("style");
|
||||
head.appendChild(style);
|
||||
style.setAttribute("type", "text/css");
|
||||
style.appendChild(converter.createTextNode("body { margin:0 }"));
|
||||
}
|
||||
currentNode = getTextCv().doMaybeSplit(hnode, 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue