How to Avoid Print to PDF splitting images across page breaks

I often wish to save a pdf copy of a web page, but frequently find that images get split across page breaks (even small images that are less than one page in size).

I have been unable to find a way to have the page break insterted before the image so the image is not split into to parts on two pages.

Does anyone know how to do this?

Thank you.

Kevin

The way the web page is coded will play a large role in how it formats when printing. In some cases you will be able to shift the images enough by adjusting the Scale percentage up or down in the Print dialog, though if the image spacing is such that as one image clears the break another gets split there are a couple other tricks. Try changing Orientation from Portrait to Landscape, or change paper size eg. US letter to legal. Even try these things in combination.

For myself, I usually want to capture a webpage for future reference with no intention to actually print onto paper, so have created and stored custom page sizes that are very tall but standard width (see screenshot). This minimizes the number of page breaks and on many websites the entire page content fits onto a single tall print-to-PDF page. When the web content leave a large blank area I just crop the page with the tools in Preview.

custom-print-page-sizes

5 Likes

Wish I knew! “Reader” mode just looses images outright.

I often find that the embedded code in web pages prevents a useable Print to PDF. In these cases, if there are just a couple of pages, I take screen snapshots instead and combine them into a single, multi-page PDF. Graphic Converter is useful for this.
Some of my tips for screen snapshots are here:

This includes a link to some Applescript that I wrote many years ago to automate the process (via a new app in the Dock) and paste the snapshots into Graphic Converter. To my surprise, it still works in Sonoma.

1 Like

Safari has a separate File ▸ Export as PDF… option that saves a web page as a long, continuous PDF with no page breaks. These are not the same as the paginated PDFs you’d get from the same webpage using the normal Print dialog PDF process.

That should work if your goal is to preserve the webpage more or less as you see it onscreen. It doesn’t really address the issue if you ever do want to print the PDF, though.

6 Likes

Thanks for those suggestions. I’ll look at Safari’s Export as PDF feature again. I rarely have any intention of printing. In the past Safari’s option hadn’t worked for me, but it’s been quite a few years now and I had forgotten about it but I’ll take another look.

Thank you again.