Author Topic: Xpdf Zoom Levels  (Read 4825 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Xpdf Zoom Levels
« 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%)
« Last Edit: March 26, 2007, 01:30:14 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

dsteuer

  • Newbie
  • *
  • Posts: 31
    • View Profile
Xpdf Zoom Levels
« Reply #1 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

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Xpdf Zoom Levels
« Reply #2 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
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Xpdf Zoom Levels
« Reply #3 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?
Device: SL-C3200 running pdaXii13v2 build 5.5.0
Networking: Symbol Spectrum24 WLAN card; Kingston CIO10T CF NIC
Storage: 4GB Transcend 150x SD; 16GB Transcend 133x CF; 4GB Seagate CF HDD; 4GB Patriot SD
HID: Logitech V450 Laser Mouse; generic silicone USB keyboard; 2 generic optical mice; stock plastic stylus
GPS: generic "UT-41" USB GPS Receiver
Case: neoprene case from my old Palm foldable keyboard

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Xpdf Zoom Levels
« Reply #4 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.
« Last Edit: March 26, 2007, 05:42:20 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Xpdf Zoom Levels
« Reply #5 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.
Device: SL-C3200 running pdaXii13v2 build 5.5.0
Networking: Symbol Spectrum24 WLAN card; Kingston CIO10T CF NIC
Storage: 4GB Transcend 150x SD; 16GB Transcend 133x CF; 4GB Seagate CF HDD; 4GB Patriot SD
HID: Logitech V450 Laser Mouse; generic silicone USB keyboard; 2 generic optical mice; stock plastic stylus
GPS: generic "UT-41" USB GPS Receiver
Case: neoprene case from my old Palm foldable keyboard

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Xpdf Zoom Levels
« Reply #6 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]
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].
« Last Edit: April 05, 2007, 11:08:20 am by ShiroiKuma »
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Xpdf Zoom Levels
« Reply #7 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]

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....
« Last Edit: April 05, 2007, 08:37:07 pm by radiochickenwax »
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Xpdf Zoom Levels
« Reply #8 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
« Last Edit: April 05, 2007, 09:51:44 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Xpdf Zoom Levels
« Reply #9 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.
« Last Edit: April 06, 2007, 05:32:41 am by radiochickenwax »
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Xpdf Zoom Levels
« Reply #10 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]
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
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Xpdf Zoom Levels
« Reply #11 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...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Xpdf Zoom Levels
« Reply #12 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.
« Last Edit: April 09, 2007, 11:42:18 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Xpdf Zoom Levels
« Reply #13 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...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Xpdf Zoom Levels
« Reply #14 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]
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]
« Last Edit: April 12, 2007, 01:31:34 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers