Xpdf fit to page width in fullscreen mode

pdf

When I call the command:

$ xpdf file.pdf -z width -fullscreen

…it does not have the desired effect.

The individual options:

$ xpdf file.pdf -z width

…and:

$ xpdf file.pdf -fullscreen

…work as expected.

Is it possible to achieve the desired effect in xpdf?

Best Answer

Sure enough. This appears to be a bug in xpdf.

You can switch to "width" view easily by tapping w as soon as xpdf opens, but there does not seem to be a way to make it behave from the command line. The only thing I could think of would be to hack it using expect or some sort of keyboard event routing to the X window to send it that keystroke when it starts up.