Skip to content

Table of Contents pagenumbers not displaying on Windows/officeΒ #1396

@thechib12

Description

@thechib12

This is:

  • a bug report
  • a feature request

Expected Behavior

My word export generates a Table of Contents, with clickable links which point to the correct title. However, the page numbers are not displayed in the table of contents.

<?php
 $this->getSettings()->setUpdateFields(true);

Update field setting is set, and after applying this word will query for missing links. Still, no numbers are shown. This works for OSX and office for mac, so it appears to be a program/os related issue.

Update 8-06: The protected mode of a word document seems to cause this issue. If a word document is protected, and you need to switch it manually to edit mode the table of contents numbers are not updated.

Context

  • PHP version:5.3.18
  • PHPWord version: 0.14

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions