'Trying wkhtmltopdf depth level

trying to use wkhtmltopdf in terminal to get a webpage into PDF; follow links in example.com and save them. So instance, any hyperlinks in the page when clicked should jump to a local saved page/area that the online points to.

Here is what I got so far. Only saves the fist page.

wkhtmltopdf --outline --outline-depth 2  http://example.com g2oogle.pdf


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source