-1

I would like to use NodeJS Puppeteer to prepare PDF that support page jumping from Summary Page. How can I do that?

DaiKeung
  • 1,077
  • 1
  • 19
  • 38

2 Answers2

0

there is no adequate way to do that, but if you know the list format (a4/a3/a2) and letter height in the table of contents, you can calculate the pixel position of any hyperlink you want and click it with page.mouse.click(x, y[, options])

Arman
  • 641
  • 4
  • 12
Dima
  • 79
  • 6
0

It is support by using <a> with adding below css:

@media print {
    a::after{
      content: " (" attr(href) ") ";
    }
  }
DaiKeung
  • 1,077
  • 1
  • 19
  • 38