I have managed to use
gnome-web-photo in conjunction with
imagemagick to produce a decent quality single, tall pdf of a webpage using a single command. You should already have
imagemagick, but install
sudo apt-get install gnome-web-photo
In this oneliner,
convert is the program used from the imagemagick package:
gnome-web-photo --mode=photo http://www.askubuntu.com --file ask.png && cat ask.png | convert - ask.pdf
The tall web page is downloaded by
gnome-web-photo to file, and can't be piped directly to
convert without saving it as an image file first. So one way for
convert to receive that file though the pipe is to concatenate it and then use
convert - so that the png file is received by
convert via stdin (denoted as
-) and then converted to pdf.
However, for the second part of the command you could use
&& convert ask.png ask.pdf instead of
&& cat ask.png | convert - ask.pdf, but both take about the same time.
You can use the
--print option with
gnome-web-photo to print a webpage to file (i.e. pdf), but it didn't produce a suitable single page result, so the oneliner above is about the best that can be done.