Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pagenumber in TOC #1652

Closed
wants to merge 1 commit into from
Closed

Conversation

jet-desk
Copy link
Contributor

@jet-desk jet-desk commented Jul 9, 2019

Update Wrong definition

Description

There was no page numbers of TOC If open result Word document in libreoffice because MS Word getting this numbers of bookmarks by native method, but libreoffice can't do it. it just shows strings, but in PHPWord is not inserting pagenumbers. My pull-request is fixes this bug.
so you need to use

$section = $this->getCurrentSection();
$section->addTitle($text, $depth, $pageNum);

if you want to open it in libreoffice

@troosan
Copy link
Contributor

troosan commented Dec 29, 2020

@Kozin-br could you fix the formatting as mentioned here: https://travis-ci.org/github/PHPOffice/PHPWord/jobs/556275631

@troosan troosan added the Status: Waiting for feedback Question has been asked, waiting for response from PR author label Dec 29, 2020
@PowerKiKi PowerKiKi changed the base branch from develop to master November 16, 2022 21:11
@Progi1984 Progi1984 force-pushed the master branch 3 times, most recently from 2d9f999 to e458249 Compare August 30, 2023 11:56
@Progi1984 Progi1984 modified the milestones: Later, 1.2.0 Sep 14, 2023
@Progi1984
Copy link
Member

Superseeded by #2471

@Progi1984 Progi1984 closed this Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Waiting for feedback Question has been asked, waiting for response from PR author
Development

Successfully merging this pull request may close these issues.

3 participants