View Single Post
Old 07-30-2015, 07:13 PM   #258
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,810
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by ManDay View Post
Oh, well... more bugs Thanks for reporting I hope that's fixed now
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).
Attached Files
File Type: gz croppdf.gz (2.7 KB, 251 views)
j.p.s is offline   Reply With Quote