0

I try to print https://spring.io/guides/gs/maven/ into a pdf file using two ways:

  • used chrome browser by hitting ctrl-p,

  • used wkhtmltopdf with various options about javascript.

But I can only print the beginning part of the webpage (imagine the webpage is paginated, only the first page content is printed into the first page of pdf file, and the following pages are blank).

I wonder what is the reason that I can only print part of the webpage?

How can I print the entire webpage into a pdf file?

Thanks.

ps: I also would like to print the code snippets in the webpage with horizontal or vertical scroll bars in their entirety. But that is not the first priority at this moment. If necessary, I will ask in a future post.

Tim
  • 17,743

3 Answers3

1

I see what you mean. I tried printing it with bullzip pdf printer (Community Edition) and get the same result. But... if you first save it as web page (single page, HTML only) and then print as pdf it prints everything just fine - but you lose some minor markup.

0

try the extension GoFullPage

Now here i have to write more stuff otherwise comment could not be saved . maybe the Editors will change this and i don"t need to write nothing usefull.

0

Open this webpage: printfriendly.com

Paste your URL there, then click on PDF and you can save the webpage as PDF on your Computer, if you want you can also print directly from there.

You can also remove parts you don't want by clicking them...