Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

richard's avatar
Level 21

Generate Table of Contents using dompdf/dompdf library

I want to generate a table of contents using dompdf library. I have found this code and it seems not to function as expected.

When I preview the PDF, it still shows the placeholders %%CH1%% instead of actual page numbers.

Has someone encountered this problem before?

0 likes
1 reply

Please or to participate in this conversation.