Quantcast
Channel: HTML – The Wiert Corner – irregular stream of stuff
Viewing all articles
Browse latest Browse all 60

Chrome Print dialogue not offering fit to page, landscape, other printing options ( I’m looking at you @OHRA )

$
0
0

Some sites manage to disable various printing options (including layout, so you cannot choose between landscape and portrait any more, or force landscape when portrait works better or vice versa).

Googling this got me into a web of things that didn’t help me (see links below), but those led me to this query [Wayback] chrome save as pdf layout missing portrait landscape – Google Search.

That returned a helpful result at [Archive.is/Wayback] Chrome Print dialogue not offering fit to page, landscape, other printing options – Google Chrome Community:

I found a solution.

1.  Install the Stylus Extension.
2.  Go into the Stylus extension and click on “Write new style”.
3.  Put the following code in:
@page {
  size: auto;
}

4.  Give it a name (I called mine “Fix Orientation”) and save it.

5.  Reload the page you’re trying to print and the print dialogue should now have the “Layout” option and you should always get it for any page you print from now on.

It’s about the extension [Archive.is] Stylus – Chrome Web Store

Redesign the web with Stylus, a user styles manager. Stylus allows you to easily install themes and skins for many popular sites.

I reconfigured the OHRA Mijn Zorg site to force re-enabling of layout by adding @page { size: auto !important; } for https://mijn.ohrazv.nl/ (click the Save button to save this change permanently):

This changed the printing options from

to (note it includes “more settings” too):

Links that did not help me

but that might be useful in the future when doing some web-development again to fix this server-side:

–jeroen

PS: This works for https://opendata.cbs.nl/#/CBS/nl/dataset/81309NED/table as well.


Viewing all articles
Browse latest Browse all 60

Latest Images

Trending Articles





Latest Images