How can I print a large web page to a single-page pdf with custom dimensions?

6,819
  1. Navigate to the page
  2. File > Print (or use CTRL +P )
  3. Switch to "Page Setup" page
  4. In "Page Size" drop down list choose last option called "Manage Custom Sizes"
  5. You will see the dialog window with the settings you are looking for:

enter image description here

EDIT 1:

Note that the page has to be small enough to fit in your specified dimensions, otherwise you will still end up having multiple pages in your PDF. If the page does not fit, you have two options:

  1. Change the dimensions proportionally (keep same ratio)
  2. Use the Scale function in Page Setup window and scale down the original page. In this case it is important to untick the option "Ignore Scaling And Shrink To Fit Page Width" on the Options page.
Share:
6,819

Related videos on Youtube

merlin2011
Author by

merlin2011

I am a student. A perpetual student. For the convenience of those who Google and copy & paste resulting URL, feel free to try my plugins for Firefox and Chrome. I have recently released my primary project Arachne, a lightning-fast cooperative threading library. Please give it a whirl and create an issue if you see any problems. I have also written a few simple tools, such as one for tmux automation, an improved version of the venerable Unix column, and a tool for adding color to text in the terminal based on user-specified patterns.

Updated on September 18, 2022

Comments

  • merlin2011
    merlin2011 over 1 year

    I am trying to convert this page to a single-page, 19 x 13 pdf file.

    I am running Firefox under Ubuntu and trying to use the Print To File option, but it is splitting the web page into multiple pages.

    Is there a way to get the page into a single-page pdf with the given dimensions?

    Edit: I already tried setting the page dimensions to 19 x 13 using custom page size. The only noticeable effect is that each page now has more whitespace, but the page is still split across multiple pages.

    Also, I already saw the answer suggesting the Abduction plugin, which works, but I prefer a pdf because it is more scalable.

  • merlin2011
    merlin2011 about 10 years
    I already tried this and it still split the page into multiple pages. The only difference was that each page now has more whitespace.
  • Art Gertner
    Art Gertner about 10 years
    Then please post the settings you used. You should have posted them in your questions.
  • merlin2011
    merlin2011 about 10 years
    Point taken, and updated question.
  • Art Gertner
    Art Gertner about 10 years
    I have just tried it and it prints correctly. First thing you need to know that by default 19x13 will result into 19 inches x 13 inches. This is not enough to fit the contents of the page that you have linked in your question so if by saying 19x13 you mean the ratio, then go for 52x76 [which is (19*4)x(13*4)].
  • Art Gertner
    Art Gertner about 10 years
    On the other hand, if you want to shrink the whole thing down to 19x13 inches, then you did not phrase your question correctly and you need to scale the contents. I will update my original answer shortly
  • merlin2011
    merlin2011 about 10 years
    When you say "it prints correctly", do you mean that it looks exactly like the browser renders it?
  • Art Gertner
    Art Gertner about 10 years
    No, I mean it fits on one page with 19x13 side ratio. This was your initial question. You cannot expect it to look the same as in your browser. if you do, then you have to give up on your ratio requirements, because the ratio of the page within your browser is different. In fact by forcing the ratio in Print Setup you make sure it will not look anything similar to what you see in your browser
  • merlin2011
    merlin2011 about 10 years
    Sorry for changing the question, but suppose that I only care that it looks exactly like it looks in the browser, and that it is a single page pdf?
  • Art Gertner
    Art Gertner about 10 years
    If we leave my sarcasm aside, and you still want to play around with standard printing feature then the key is to set width to some reasonable value and then set length to significantly bigger value to allow the whole page to fit. However you have to remember that HTML is not a printer-friendly format and the way you see the page is the way your browser has rendered it for you. It would have looked different on other device or even on your own PC if you resized browser window.
  • Demis
    Demis about 8 years
    I'm amazed there's no plugin to do this - a single giant digital document of my webpage (or other document - eg. a powerpoint) would be so useful if you are never considering physically printing it anyway.