Author Topic: Xpdf Broken?  (Read 5597 times)

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Xpdf Broken?
« on: April 04, 2006, 02:59:32 am »
Has anyone else noticed that xpdf (I'm using 1.1.0beta1, rc12 had the same problem) cuts off the right side and bottom of the page. See screenshots.

 [ You are not allowed to view attachments ]
here is what page looks like in kpdf


 [ You are not allowed to view attachments ]
xpdf on pdaXrom, note the text is cut, the keyboard and the mouse is missing. NB changing the zoom doesn't rectify the problem, it just cuts off varying amounts.


BTW xpdf on Pocket Workstation doesn't have this problem. Any ideas?

-- cheers
« Last Edit: April 04, 2006, 03:02:48 am by desertrat »
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Xpdf Broken?
« Reply #1 on: April 04, 2006, 03:10:01 am »
I noticed that, but it doesn't seem to do it in portrait rather than landscape mode on my C1000
Zaurus C-1000

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Xpdf Broken?
« Reply #2 on: April 04, 2006, 02:01:30 pm »
And if I move xpdf to a different virtual screen it helps sometimes.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Xpdf Broken?
« Reply #3 on: April 04, 2006, 06:29:44 pm »
No problem on RC12 with SL6000 in either portrait or landscape modes, so it must be model-specific...
SL6000-L, RC12

DaemonsGR

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Xpdf Broken?
« Reply #4 on: April 05, 2006, 04:30:27 am »
I have the same problem!
C3100 , pdaxrom beta2
Tasos Varoudis (Tech)
Tasos Varoudis (Architecture)

Zaurus sl-c3100 + Wlan, Lan ,BT ,etc
NOW running... pdaXrom 1.1.0beta3 + OOo + custom apps/setup + debian +.. not yet installed OpenBSD snapshot

WAS:Cacko 1.23 + X/QT + debian

Home-Net
Debian WIFI Router ,OpenBSD Bridge Firewall ,Win 2k Domain Server , :) Sun Fire v120 , :) Gentoo Main Server: Dual PIII

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Xpdf Broken?
« Reply #5 on: April 07, 2006, 12:09:39 pm »
I found a possible fix. Edit /usr/share/applications/xpdf.desktop and change the Exec line to something like this:
Code: [Select]
Exec=xpdf -geometry 640x420-0+0 -z 'width' /mnt/ide3/documents/media/reference/Ferry_English.pdf
Explanation:
-geometry 640x420-0+0 is standard option understand by (most/all?) X programs, this sets size and location of window

-z 'width' this is xpdf specific and sets zoom to page width

/mnt/ide3/documents/media/reference/Ferry_English.pdf opens this document, the purpose of this is to actually set xpdf's working directory to where most of my PDFs are stored. I tried using a Path entry in xpdf.desktop but that doesn't seem to have any effect, hence this kludge.

A similar technique could be used for other programs which are clueless about the window size/location was used the last time you ran them. For example, with gnumeric you would use: --geometry 640x420-0+0, note the double hyphen as opposed to xpdf which requires single hyphen. Use <program> --help on the command line to see what options a particular accepts.


Here's my observations on how this bug manifests itself:

When xpdf starts up the initial size of the window depends on the document opened.

- If the size of the window is wider/taller than the screen and you then maximise the window (which in this case makes it smaller), xpdf will still think it has the original window size to work on and hence scale the drawing accordingly. Thus when you view it on your smaller window parts of it is cutoff

- If the size of the window is narrower/shorter than the screen and you then maximise the window (which in this case makes it bigger), xpdf will still think it has the original window size to work on and hence scale the drawing accordingly. Thus when you view it on your larger window parts of it grey - xpdf will not use those parts and they will not get refreshed.

So by making xpdf startup with the specific window size that you want to use these scaling problems can be avoided.

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Xpdf Broken?
« Reply #6 on: April 07, 2006, 05:10:53 pm »
Cool. Thanks for posting this info Desertrat.
How do you find viewing PDF's in your newly compiled DjVuLibre compared to Xpdf?
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Xpdf Broken?
« Reply #7 on: April 07, 2006, 09:48:01 pm »
Quote
Cool. Thanks for posting this info Desertrat.
How do you find viewing PDF's in your newly compiled DjVuLibre compared to Xpdf?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122271\"][{POST_SNAPBACK}][/a][/div]

hmm, i will see if i can compile xpdf, then i could fix it and maybe add a file dialog to it too
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

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Xpdf Broken?
« Reply #8 on: April 08, 2006, 01:20:50 am »
Quote
Cool. Thanks for posting this info Desertrat.
How do you find viewing PDF's in your newly compiled DjVuLibre compared to Xpdf?
The program itself takes a little bit longer to startup than xpdf. But once up and running, viewing files and moving between pages is a lot snappier. Particularly when viewing pages laden with graphics as the Tux magazines often are. The djvu files are also a lot smaller than the pdf equivalent (eg one pdf I converted was originally about 20MB, as a djvu file it's 3.5MB, for graphics intensive docs the savings will not be so great - the 2 TUX mags that I converted gave about 50% reduction in size). The savings in space comes at a cost, the quality is not as good as the pdf original. This is only apparent when you zoom in several hundred percent, otherwise for regular viewing it is completely adequate (IMO at least).

Quote
hmm, i will see if i can compile xpdf, then i could fix it and maybe add a file dialog to it too
Um, maybe you could be more ambitious (  ) and do Evince instead? I had got as far as compiling the poppler library, then I got distracted and compiled DjVuLibre instead  

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Xpdf Broken?
« Reply #9 on: April 08, 2006, 11:19:42 am »
Quote
Quote
Cool. Thanks for posting this info Desertrat.
How do you find viewing PDF's in your newly compiled DjVuLibre compared to Xpdf?
The program itself takes a little bit longer to startup than xpdf. But once up and running, viewing files and moving between pages is a lot snappier. Particularly when viewing pages laden with graphics as the Tux magazines often are. The djvu files are also a lot smaller than the pdf equivalent (eg one pdf I converted was originally about 20MB, as a djvu file it's 3.5MB, for graphics intensive docs the savings will not be so great - the 2 TUX mags that I converted gave about 50% reduction in size). The savings in space comes at a cost, the quality is not as good as the pdf original. This is only apparent when you zoom in several hundred percent, otherwise for regular viewing it is completely adequate (IMO at least).

Quote
hmm, i will see if i can compile xpdf, then i could fix it and maybe add a file dialog to it too
Um, maybe you could be more ambitious (  ) and do Evince instead? I had got as far as compiling the poppler library, then I got distracted and compiled DjVuLibre instead  

-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122308\"][{POST_SNAPBACK}][/a][/div]

here's my hacked version.

i discovered, you can just press o for a file dialog
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

scheck.r

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
    • http://
Xpdf Broken?
« Reply #10 on: April 09, 2006, 02:59:59 pm »
Quote
Um, maybe you could be more ambitious (  ) and do Evince instead? I had got as far as compiling the poppler library, then I got distracted and compiled DjVuLibre instead
Evince has already been compiled but it's not on the contrib web site.
Here is the link
https://www.oesf.org/forums/index.php?showt...hl=evince&st=30
SL-C1000 from PriceJapan(cheap and very fast shipping) with EA-70 power adapter, iRiver USB Host cable, PDAIR case, pentopia stylus, ultra clear screen-protector from shop.brando.com.hk only $3 for shipping worldwide
4GB Hitachi Microdrive, 1GB Kingston Elite Pro CF, 4GB Transcend 150x SD, Symbol Spectrum 4137 CF WiFi(low power)
PdaXrom pdaxii13 5.4.9 updated with Kkazakov13's feed. I owned a SL-6000L before

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Xpdf Broken?
« Reply #11 on: April 09, 2006, 11:10:34 pm »
Quote
Evince has already been compiled but it's not on the contrib web site.
Here is the link
https://www.oesf.org/forums/index.php?showt...hl=evince&st=30
Thanks.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Xpdf Broken?
« Reply #12 on: April 09, 2006, 11:21:13 pm »
Quote
here's my hacked version.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122328\"][{POST_SNAPBACK}][/a][/div]
Thanks for posting this Meanie. What version is it?
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Xpdf Broken?
« Reply #13 on: April 10, 2006, 01:59:41 am »
Quote
Quote
here's my hacked version.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122328\"][{POST_SNAPBACK}][/a][/div]
Thanks for posting this Meanie. What version is it?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122452\"][{POST_SNAPBACK}][/a][/div]

3.01-1

Should be the same version as the one in the beta1 feed, so just replace the xpdf binary once you install that 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