I already know about Ghostscript front end viewers; but I was wondering how gs
can be used to view PDF documents?
The closest I could get to is to explicitly specify the x11
window as the output device, specify the width and height of the window through -g
and specify the resolution of the rasterization through -r
; or, for example, the command line:
gs -sDevice=x11 -g500x500 -r150x150 -dFirstPage=3 fontspec.pdf
... which leads to something like:

... that, in fact, everything is good - in addition, it starts in the lower left corner; and there are no shortcuts (as far as I can see) here to move the viewport or perform some scaling.
I know that ghostscipt
probably has no mouse and keyboard interaction to navigate the x11 output window, given that something like this is reserved for external users like gv
. So, the closest to this (for me) in ghostscript will be - how to display a specific region of a page? Through -d
and -r
most important parameters are already indicated - I just want, say, to specify a different point than 0x0 (say, x = 100 y = 100), as the lower left corner when viewing.
(In other words, I would like to say ghostscript
: show page 3 of document.pdf, rasterized to 150x150, in a window 500x500 in size, starting from the bottom left corner x, y = 100,100).
How can this be done in ghostscript
? Are there any command line keys for this - or will I need to use postscript
language commands in the terminal as soon as ghostscript
loads?
Thanks a lot in advance for any answers,
Hurrah!