Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: TinyFun on January 16, 2014, 09:40:08 AM

Title: [SOLVED ]pdf viewer
Post by: TinyFun on January 16, 2014, 09:40:08 AM
Hi,

Have been playing with Tinycore for a few days. Am using coreplus 5.1. Setting up, Flash, ALSA, updating Firefox, all very easy.

Now I do have a problem: pdf viewer. Tried Evince.tcz and Evince2.tcz. Progs start, but crashes on zooming in or closing thumbnails sidepane.  Epdf installed, but no icon, no reaction on terminal. Xpdf, okular ? Could not find them. Foxit reader from bz2 file: does not run. Tried converting .deb file (I know it is frowned upon). Didn't work either.

Only option seems to be to open file in firefox ??

This forum has messages that say Foxit is available but i cannot find it. Message is 2010, so maybe older version?

How do I get Evince to work correctly ? Also tried installing Evince(2) .dev and .gir files to no avail.
Does anyone have tip?

Title: Re: pdf viewer
Post by: tinypoodle on January 16, 2014, 09:53:14 AM
http://forum.tinycorelinux.net/index.php/topic,2029
Title: Re: pdf viewer
Post by: curaga on January 16, 2014, 10:06:33 AM
"epdf" is not a PDF viewer, the info file says it's a library. You're thinking of epdfview, which is not yet available for 5.x.
Title: Re: pdf viewer
Post by: coreplayer2 on January 16, 2014, 10:11:29 AM
I'm using evince (v3.10) which has no issues zooming in or out of defualt to 400% and back.   I'm sure I remember the zooming issue, but afaik was fixed a long time ago.

Where does that leave you? well I'd guess you should uninstall evince and all it's deps then re-install evince


(https://db.tt/4OqdV3bN)


(https://db.tt/ufymw96h)
Title: Re: pdf viewer
Post by: gerald_clark on January 16, 2014, 10:23:53 AM
Evince works with Xfbdev.
I have the same problem with Xorg and xvesa.
Title: Re: [SOLVED ]pdf viewer
Post by: TinyFun on January 16, 2014, 11:41:53 AM
hI,

Thanks for the answers. Solved it ,ore or less like Tinypoodle suggested. Found post http://forum.tinycorelinux.net/index.php/topic,6914.msg36359.html#msg36359. Used binaru files, copied to /home/tc/.local/bin. That gave an problem with libcups.so.2, but after inatlling cups.tcz, FoxitReader now works fine.

Now all that remains is to add to .lst file to mak permanent ?

Thnx again.
Title: Re: [SOLVED ]pdf viewer
Post by: tinypoodle on January 16, 2014, 12:02:17 PM
The script I have linked to is supposed to create an extension which then could be handled like any other.
cups.tcz is not required, but only libcups.tcz   ;)
Title: Re: [SOLVED ]pdf viewer
Post by: TinyFun on January 16, 2014, 12:58:22 PM
@Tinypoodle

Your solution is more elegant and saves time on boot/shutdown. Appreciate your post even after my [SOLVED] marking. Will try it. Not tonight though
Title: Re: [SOLVED ]pdf viewer
Post by: TinyFun on January 16, 2014, 05:32:59 PM
@Tinypoodle

downoaded 2 scripts from page you linked to. I'm sorry, but "the force" left me. I couldn't find the way to match your .diff file with the original script. Your .diff file mentions a file foxit-installscript2?
patch < ./foxit-installscript.diff
patch -p1 < foxit-installscript.dif

Kept getting errors about undoing earlier patch. Tried tosearch forum, but did not find any updated, total file.

So, used "IC;s between the ears" and matched as good as I could. Is included script OK
Is this what you mean ? will test it later, it's 2:30 AM.
Title: Re: [SOLVED ]pdf viewer
Post by: tinypoodle on January 16, 2014, 05:57:47 PM
Yes, looks about right to me...
I had just ran 'diff', but possibly with file arguments in wrong order to be used with 'patch'.
All that really matters is to load libcups.tcz before attempting to run FoxitReader.
Title: Re: [SOLVED ]pdf viewer
Post by: Juanito on January 16, 2014, 10:50:26 PM
I just tried:

tc-5.x x86 gtk3 Xorg-7.7 evince (3.8.3)
tc-5.x x86_64 gtk3 Xorg-7.7 evince (3.10.0)

..with several zoom levels, including 400%, and did not see any problems
Title: Re: [SOLVED ]pdf viewer
Post by: curaga on January 17, 2014, 02:04:13 AM
I can confirm evince2.tcz crashes on Xvesa (5.1 x86), but only with a PDF file loaded and when zooming to 150% or larger. I suppose this was missing from the tinyx thread (the fact you need to load a PDF - just plain evince doesn't crash when maximizing etc). Too bad there's nothing useful anywhere to debug this.
Title: Re: [SOLVED ]pdf viewer
Post by: Juanito on January 17, 2014, 02:10:01 AM
evince2 is version 2.32.0

Does the gtk3 version 3.8.3 crash with Xvesa (with a pdf loaded it does not crash at 400% with Xorg-7.7)?
Title: Re: [SOLVED ]pdf viewer
Post by: TinyFun on January 17, 2014, 02:16:27 AM
Confirm curaga's observation: evince (both versions) crashed when zooming to 150% or up. Also sometimes on closing sidepane, and when using the buttons to make window screen-wide.

Have not checked further as I still have to use Tinypoodle's script to make Foxit .tcz

I think I'm using Xorg, not XVesa. How to check ?

ADDED:
No Xorg, just Xorg libs in my /tce, no Xorg in /etc so I guess my box is XVesa.

this wiki http://wiki.tinycorelinux.net/wiki:using_xorg_over_xvesa?s[]=xorg&s[]=xvesa says:
"Features required by some applications provided only by Xorg. ".
Could this be the source of the Evince problems?
Title: Re: [SOLVED ]pdf viewer
Post by: Juanito on January 17, 2014, 02:31:05 AM
Confirm curaga's observation: evince (both versions) crashed when zooming to 150% or up.
Can you be more specific please? Do you mean that evince-2.23.0 (gtk2 version) and evince-3.8.3 (gtk3) version both crash?

Quote
I think I'm using Xorg, not XVesa. How to check ?

"which Xvesa". "which Xorg"
Title: Re: [SOLVED ]pdf viewer
Post by: TinyFun on January 17, 2014, 02:39:44 AM
@Juanito

Yes, the programs contained in both evince.tcz and evince2.tcz from repository both had the same problems on my box. Might try later to install Xorg and see if problems keep occurring.
Title: Re: [SOLVED ]pdf viewer
Post by: TinyFun on January 17, 2014, 02:51:58 AM
@Tinypoodle

Your script worked fine. Nice to be able to keep the system as intended without ugly "binaries everywhere". Thnx
Title: Re: [SOLVED ]pdf viewer
Post by: TinyFun on January 17, 2014, 03:50:26 AM
@juanito

About Evince.tcz:
installed Xorg-7.7.tcz and graphics3.8.13. Afer reboot, installed evince.tcz. Prog does not work OK (see screenshot attached). But it is possible to open a pdf file and to zoom to 400%.

Removed evince again. Hope this helps to track the origin of problems.
Title: Re: [SOLVED ]pdf viewer
Post by: Juanito on January 17, 2014, 04:11:34 AM
Are you referring to the missing icons?

If so, gnome-icon-theme-symbolic will fix things.

Edit: that doesn't fix it - strange...
Title: Re: [SOLVED ]pdf viewer
Post by: tinypoodle on January 17, 2014, 07:25:23 AM
@Tinypoodle

Your script worked fine. Nice to be able to keep the system as intended without ugly "binaries everywhere". Thnx

Glad to hear so, but script in question is actually the work of Jason W   ;)
Title: Re: [SOLVED ]pdf viewer
Post by: Juanito on January 17, 2014, 07:59:53 AM
glib2, gtk3, poppler and evince updated, the icons now show as expected in evince
Title: Re: [SOLVED ]pdf viewer
Post by: gerald_clark on January 17, 2014, 10:25:01 AM
Now evince2 says it does not support pdf files.

Unable to open document
File type PDF document (application/pdf) is not supported

--- update ---

(evince:6352): EvinceDocument-WARNING **: Cannot load backend 'pfdocument' since file '/usr/local/lib/evince/3/backends/libpdfdocument.so' cannot be read.

I removed and re-installed evince 2 with no change.
Title: Re: [SOLVED ]pdf viewer
Post by: Juanito on January 18, 2014, 01:01:21 AM
recompiled evince2 for updated poppler and reposted - thanks
Title: Re: [SOLVED ]pdf viewer
Post by: gerald_clark on January 18, 2014, 07:56:45 AM
Works now.  Thanks.
Title: Re: [SOLVED ]pdf viewer
Post by: curaga on January 18, 2014, 01:53:46 PM
Does it now work with Xvesa too, or?
Title: Re: [SOLVED ]pdf viewer
Post by: gerald_clark on January 18, 2014, 02:10:03 PM
No, it still crashes with Xvesa.
Title: Re: [SOLVED ]pdf viewer
Post by: tinypoodle on January 18, 2014, 02:49:06 PM
Blind guessing based on conclusions drawn from other apps, have you made sure that Xvesa is running with at least 24bpp?
Title: Re: [SOLVED ]pdf viewer
Post by: netnomad on January 18, 2014, 03:03:18 PM
hi friends,

under microcore 5.2rc3 epdfview with xorg doesn't start, too.
the process takes 100% of the cpu and the program doesn't show up.
... the same odd behavior with the last versions of gtk3 and poppler-packages as with the updated ones.

thank you for your commitment.
Title: Re: [SOLVED ]pdf viewer
Post by: gerald_clark on January 18, 2014, 03:22:24 PM
Yes, I am running Xvesa  1024x768x24 on one machine and 1280x800x24 on another.
Evince2 fails on both.
Title: Re: [SOLVED ]pdf viewer
Post by: coreplayer2 on January 18, 2014, 07:30:28 PM
I was wrong, thought this issue was resolved with an update however still exists with evince v3.10.3 when used with Xvesa.  When used with Xorg evince v3.10.3 did not quit when zoomed and performed as expected.