diff --git a/lib/Html/Parser.php b/lib/Html/Parser.php
index 411b8d9..540a6b1 100644
--- a/lib/Html/Parser.php
+++ b/lib/Html/Parser.php
@@ -205,6 +205,12 @@ public function parse()
->setDocument($this->document)
->setRoot(true)
->init();
+ $pageGroup->format = $this->document->getDefaultFormat();
+ $margins = $this->document->getDefaultMargins();
+ $pageGroup->marginLeft = $margins['left'];
+ $pageGroup->marginTop = $margins['top'];
+ $pageGroup->marginRight = $margins['right'];
+ $pageGroup->marginBottom = $margins['bottom'];
$pageGroup->orientation = $this->document->getDefaultOrientation();
$this->setGroupOptions($pageGroup, $domDocument);
$page = $this->document->addPage($pageGroup->format, $pageGroup->orientation);