Skip to content

getMarginTop() give always 1400 twips after \PhpOffice\PhpWord\IOFactory::load('test.docx'); #885

@amoulin974

Description

@amoulin974

I load docx file to know the size of margin for each section. I use this code

$phpWord = \PhpOffice\PhpWord\IOFactory::load('test.docx');
$sections = $phpword->getSections();
foreach($sections as $key=>$section) {
$style = $section->getStyle();
$marginTop = $style->getMarginTop();

var_dump($marginTop);

}
The var_dump() give me always 1400 twips regardless of the size of docx margin. I don't understand why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions