Quote:
Originally Posted by j.p.s
I finally got around to trying the -t option, and it died with the following error:
Code:
xdgopen: command not found
Web searches failed to turn up xdgopen, but there are lots of hits for xdg-open, which is on my computer.
I've made that change, and andded -L, -D, -S, -w, and -h options.
I made the -w and -h options to independently set width and height for optimum page ratio when the -a option wasn't working, but they may still be useful.
-L sets the optimum ratio for the page to be the same as US Letter, -D for 9.7 inch e-ink screens, and -S for Sony DPT-S1 (or any 3:4) screens.
I think that most of the time -a based on the crop box is best whatever the device, but that does require a bit of arithmetic that may not be worth the bother.
I just double checked, and xdgopen works on my computer typed directly in a terminal, but not from inside a script.
Attached as croppdf.gz (needs to be gunzip to extract).
|
Well I guess -w and -h individually don't make much sense since they only set a ratio and are not absolute values. As for xdg(-)open, I don't have it, either, so I never noticed. Always ran it with "-v mupdf"