OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Jon_J on March 26, 2007, 01:25:05 pm

Title: Xpdf Zoom Levels
Post by: Jon_J on March 26, 2007, 01:25:05 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%)
Title: Xpdf Zoom Levels
Post by: dsteuer on March 26, 2007, 03:52:09 pm
Quote
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%)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157209\"][{POST_SNAPBACK}][/a][/div]

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
Title: Xpdf Zoom Levels
Post by: Jon_J on March 26, 2007, 04:03:08 pm
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: [Select]
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
Title: Xpdf Zoom Levels
Post by: Drake01 on March 26, 2007, 05:36:09 pm
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157209\"][{POST_SNAPBACK}][/a][/div]
The "fit width" zoom option isn't working for you?
Title: Xpdf Zoom Levels
Post by: Jon_J on March 26, 2007, 05:39:38 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.
Title: Xpdf Zoom Levels
Post by: Drake01 on March 26, 2007, 06:05:38 pm
Quote
"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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157239\"][{POST_SNAPBACK}][/a][/div]
Gotcha!  Makes sense now.
Title: Xpdf Zoom Levels
Post by: ShiroiKuma on April 05, 2007, 11:07:43 am
Quote
I would like to see zoom levels in increments of:
105%
110%
115%
120%
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=157209\")
You can do this, if you [a href=\"http://ShiroiKuma.com/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9ACompiling%20xpdf-3.02%20under%20%C3%85ngstr%C3%B6m%20with%20custom%20zoom%20levels]compile xpdf on the Zaurus yourself[/url].
Title: Xpdf Zoom Levels
Post by: radiochickenwax on April 05, 2007, 08:31:48 pm
Quote
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
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=157217\")

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
Quote
I would like to see zoom levels in increments of:
105%
110%
115%
120%
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157209\"][{POST_SNAPBACK}][/a][/div]
You can do this, if you [a href=\"http://ShiroiKuma.com/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9ACompiling%20xpdf-3.02%20under%20%C3%85ngstr%C3%B6m%20with%20custom%20zoom%20levels]compile xpdf on the Zaurus yourself[/url].
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158056\"][{POST_SNAPBACK}][/a][/div]


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....
Title: Xpdf Zoom Levels
Post by: Jon_J on April 05, 2007, 09:50:35 pm
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
Title: Xpdf Zoom Levels
Post by: radiochickenwax on April 06, 2007, 05:28:41 am
Quote
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158093\"][{POST_SNAPBACK}][/a][/div]


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.
Title: Xpdf Zoom Levels
Post by: Meanie on April 06, 2007, 11:43:19 pm
Quote
Quote
I would like to see zoom levels in increments of:
105%
110%
115%
120%
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=157209\")
You can do this, if you [a href=\"http://ShiroiKuma.com/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9ACompiling%20xpdf-3.02%20under%20%C3%85ngstr%C3%B6m%20with%20custom%20zoom%20levels]compile xpdf on the Zaurus yourself[/url].
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158056\"][{POST_SNAPBACK}][/a][/div]

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
Title: Xpdf Zoom Levels
Post by: ShiroiKuma on April 07, 2007, 02:47:31 am
Quote
edit xpdf-3.02/xpdf/XPDFViewer.h

and change

#define nZoomMenuItems 10

to

#define nZoomMenuItems 14
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158153\"][{POST_SNAPBACK}][/a][/div]
Thanks for this. Even more zoom levels, even better...
Title: Xpdf Zoom Levels
Post by: ZDevil on April 09, 2007, 11:41:34 pm
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  )

[img]http://farm1.static.flickr.com/236/453424390_c16a59e45b_o.png\" border=\"0\" class=\"linked-image\" /]

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.
Title: Xpdf Zoom Levels
Post by: Meanie on April 12, 2007, 01:12:07 am
rebuild xpdf 3.02 with extra zoom levels and also made it default to 640x440 on startup...
see new packages thread for package...
Title: Xpdf Zoom Levels
Post by: Jon_J on April 12, 2007, 01:31:16 am
Quote
rebuild xpdf 3.02 with extra zoom levels and also made it default to 640x440 on startup...
see new packages thread for package...
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=158572\")
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?

[a href=\"https://www.oesf.org/forums/index.php?showtopic=18415&view=findpost&p=155806]https://www.oesf.org/forums/index.php?showt...ndpost&p=155806[/url]
Title: Xpdf Zoom Levels
Post by: Jon_J on April 12, 2007, 02:25:03 am
I just downloaded xpdf 3.02 meanie, thanks a lot.
Now zbook3k.pdf fits nicely at 115% zoom and the margins are offscreen.