Help - Search - Members - Calendar
Full Version: Xpdf Zoom Levels
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
Jon_J
I have the latest xpdf 3.0.1-1 installed and want to know if there is a way to get a zoom level between 100% and 125% ?
As shown in the screenshots below in meanie's zbook3k.pdf, there is extra space being wasted (at 100%) in the margins.
At this zoom level, the text is tiny.
If I zoom to 125%, the zoom level is too much and now I have to scroll horizontally, but the text is much more readable.
I would like to see zoom levels in increments of:
105%
110%
115%
120%

pic 1 (xpdf @ 100%)
pic 2 (xpdf @ 125%)
dsteuer
QUOTE(Jon_J @ Mar 26 2007, 07:25 PM)
I have the latest xpdf 3.0.1-1 installed and want to know if there is a way to get a zoom level between 100% and 125% ?
As shown in the screenshots below in meanie's zbook3k.pdf, there is extra space being wasted (at 100%) in the margins.
At this zoom level, the text is tiny.
If I zoom to 125%, the zoom level is too much and now I have to scroll horizontally, but the text is much more readable.
I would like to see zoom levels in increments of:
105%
110%
115%
120%

pic 1 (xpdf @ 100%)
pic 2 (xpdf @ 125%)
*


I use the command line xpdf -z 111 my.pdf to get i.e. 11% magnification.
If you read a longer book that you start repeatedly an alias will work fine.

Detlef
Jon_J
Thanks, I tried that and it seems I'm missing some fonts.
xpdf opened the file in 100% zoom instead of 115% as I specified
CODE
root-:) xpdf -z 115 /data/Text_Files/zbook3k.pdf
Warning: Cannot convert string "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-courier-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-bold-i-normal--20-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct
Drake01
QUOTE(Jon_J @ Mar 26 2007, 12:25 PM)
I have the latest xpdf 3.0.1-1 installed and want to know if there is a way to get a zoom level between 100% and 125% ?
As shown in the screenshots below in meanie's zbook3k.pdf, there is extra space being wasted (at 100%) in the margins.
*

The "fit width" zoom option isn't working for you?
Jon_J
"Fit width" includes the margins, which is blank white space. I wanted to zoom in and eliminate the margins to make the fonts larger without making the fonts go off the viewing area. "Fit to width" is almost the same as 100% in this instance.
Drake01
QUOTE(Jon_J @ Mar 26 2007, 04:39 PM)
"Fit width" includes the margins, which is blank white space. I wanted to zoom in and eliminate the margins to make the fonts larger without making the fonts go off the viewing area. "Fit to width" is almost the same as 100% in this instance.
*

Gotcha! Makes sense now.
ShiroiKuma
QUOTE(Jon_J @ Mar 26 2007, 06:25 PM)
I would like to see zoom levels in increments of:
105%
110%
115%
120%
*

You can do this, if you compile xpdf on the Zaurus yourself.
radiochickenwax
QUOTE(dsteuer @ Mar 26 2007, 07:52 PM)
I use the command line xpdf -z 111 my.pdf to get i.e. 11% magnification.
If you read a longer book that you start repeatedly an alias will work fine.

Detlef
*


Does this actually work for anyone? You could zoom in increments of 1%? It should work for the PDF file format.

dsteurer: could you please tell us which xpdf version you're using, and where it could be downloaded?

QUOTE(ShiroiKuma @ Apr 5 2007, 03:07 PM)
QUOTE(Jon_J @ Mar 26 2007, 06:25 PM)
I would like to see zoom levels in increments of:
105%
110%
115%
120%
*

You can do this, if you compile xpdf on the Zaurus yourself.
*




Thanks very much for this info. Unfortunately, recompiling xpdf3.02 in this manner has so far led me to the loss of the middle mouse panning. I think this might be a problem with the new keybindings in ~/.xpdfrc....
Jon_J
I'm going a bit off topic here, but Picsel browser for Zaurus has infinite zoom levels up to it's largest zoom level.
There is 2 things that Picsel browser won't do, and that is:
1. It won't install or work in pdaxrom or pdaxii13
2. In sharp/Cacko, it opens and displays every PDF file that I can throw at it except for one. That one is meanie's zbook3k.pdf
radiochickenwax
QUOTE(Jon_J @ Apr 6 2007, 01:50 AM)
I'm going a bit off topic here, but Picsel browser for Zaurus has infinite zoom levels up to it's largest zoom level.
There is 2 things that Picsel browser won't do, and that is:
1. It won't install or work in pdaxrom or pdaxii13
2. In sharp/Cacko, it opens and displays every PDF file that I can throw at it except for one. That one is meanie's zbook3k.pdf
*



KPDF will do the same (albeit very slowly). Is it in the feeds? Haven't used it in a long time due to it's lack of speed. I still like XPDF for most everything. It's lean and mean, but really under featured.

What's keeping Picsel Browser from pdaxrom?

EDIT: nevermind, (I googled and found some answers) Wow, that's an expensive system I'm sorry it doesn't work in pdaxrom.
Meanie
QUOTE(ShiroiKuma @ Apr 6 2007, 01:07 AM)
QUOTE(Jon_J @ Mar 26 2007, 06:25 PM)
I would like to see zoom levels in increments of:
105%
110%
115%
120%
*

You can do this, if you compile xpdf on the Zaurus yourself.
*



following ShiroiKuma's example, do the following:

edit xpdf-3.02/xpdf/XPDFViewer.cc

Starting at line 141, you'll see the following text:

static ZoomMenuInfo zoomMenuInfo[nZoomMenuItems] = {
{ "400%", 400 },
{ "200%", 200 },
{ "150%", 150 },
{ "125%", 125 },
{ "100%", 100 },
{ "50%", 50 },
{ "25%", 25 },
{ "12.5%", 12.5 },
{ "fit page", zoomPage },
{ "fit width", zoomWidth }
};

change it to:

static ZoomMenuInfo zoomMenuInfo[nZoomMenuItems] = {
{ "400%", 400 },
{ "200%", 200 },
{ "150%", 150 },
{ "125%", 125 },
{ "120%", 120 },
{ "115%", 115 },
{ "110%", 110 },
{ "105%", 105 },
{ "100%", 100 },
{ "50%", 50 },
{ "25%", 25 },
{ "12.5%", 12.5 },
{ "fit page", zoomPage },
{ "fit width", zoomWidth }
};

edit xpdf-3.02/xpdf/XPDFViewer.h

and change

#define nZoomMenuItems 10

to

#define nZoomMenuItems 14
ShiroiKuma
QUOTE(Meanie @ Apr 7 2007, 04:43 AM)
edit xpdf-3.02/xpdf/XPDFViewer.h

and change

#define nZoomMenuItems 10

to

#define nZoomMenuItems 14
*

Thanks for this. Even more zoom levels, even better...
ZDevil
There is one way to get the best view:

Use fullscreen first, then use the stylus to select a line or paragraph with exact length of the words, then right click (Fn+tap), choose "Zoom to selection". Then what you'll see is something like this:

(yes, this is the Z screen. no window, no scrollbar smile.gif )



By the way I've built an optimized XPDF with 23 zooming levels (thanks to Meanie's tips). Will put up here shortly.
Next is to figure out how to get the now detached CMap things working to display Asian language fonts.
Meanie
rebuild xpdf 3.02 with extra zoom levels and also made it default to 640x440 on startup...
see new packages thread for package...
Jon_J
QUOTE(Meanie @ Apr 12 2007, 12:12 AM)
rebuild xpdf 3.02 with extra zoom levels and also made it default to 640x440 on startup...
see new packages thread for package...
*

I couldn't find it.
I scrolled through all 21 pages and moused over every link to be sure I wasn't missing it.
I found Xpdf 3.02 here by wellswang, is this it?

http://www.oesf.org/forums/index.php?showt...ndpost&p=155806
Jon_J
I just downloaded xpdf 3.02 meanie, thanks a lot.
Now zbook3k.pdf fits nicely at 115% zoom and the margins are offscreen. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.