Hi Tim,

On Fri, Oct 31, 2025 at 12:22:27PM +1100, Tim Connors wrote:
> [...] you can either supply -fullscreen to have a fullscreen window,
> or -z width to zoom into width, but if you specify both, then zoom is
> silently ignored.

Interesting - it's actually a deliberate choice in XPDFCore.cc:

...
  // get the initial zoom value
  if (fullScreen) {
    zoom = zoomPage;
  } else {
    std::string initialZoom = xpdfParams->getInitialZoom();
    if (initialZoom == "page") {
      zoom = zoomPage;
    } else if (initialZoom == "width") {
      zoom = zoomWidth;
...

I guess the idea was that the initialZoom resource setting was likely to
be appropriate for viewing in a smaller window, and -fullscreen is
usually for presentation applications so you'd want to see the whole
page.

Maybe there should be a fullscreenZoom resource, defaulting to "page",
and -z should set both? That would avoid changing the default behaviour,
but it'd let you override it with -z as you want.

Thanks,

-- 
Adam Sampson <[email protected]>                         <http://offog.org/>

Reply via email to