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

Placing ToC #333

Closed
arget888 opened this Issue May 28, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@arget888

arget888 commented May 28, 2018

Hello,

I want to place the Table of Content with the createIndex() method after the heading of my document.
My Problem is, that the ToC is just overlayed of the normal content.

My html Code looks like:

<h1>Heading of the Document</h1>
<bookmark title="Summary" level="0"></bookmark>
<h1>First Chapter</h1>
<bookmark title="First Chapter" level="0"></bookmark>
<p>Content of first Chapter</p>
<h1>Second Chapter</h1>
<bookmark title="Second Chapter" level="0"></bookmark>
<p>Content of second Chapter</p>
</page>

The php Code looks like:

$this->html2pdfwriter->pdfSetDisplayMode("fullpage");
$this->html2pdfwriter->setTestTdInOnePage(false);
$this->html2pdfwriter->writeHTML($html);
$this->html2pdfwriter->createIndex("Summary",20,15,true,true,1);

The result is, that the ToC is above my Heading of the Document but I want to place it under it.

spipu added a commit that referenced this issue Jul 31, 2018

@spipu

This comment has been minimized.

Owner

spipu commented Jul 31, 2018

hi,

a new parameter $marginTop will be added to the createIndex method on the next release

@spipu spipu closed this Jul 31, 2018

@spipu spipu added the enhancement label Jul 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment