LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   elinks and pdfs (https://www.linuxquestions.org/questions/linux-software-2/elinks-and-pdfs-627373/)

?xunil 03-11-2008 07:29 PM

elinks and pdfs
 
i would like to open pdf files with elinks, but i am not sure...

1. what syntax i should use when prompted by elinks?
2. what is a good (light) utility to use?

i have tried pdftohtml, pdftotext, and fbgs but have not been successful in opening a document. i have been using the demo document at... pdftohtml.sourceforge.net ...for my testing. the syntax i have been using is something like this...

xterm -e pdftotext %

or

xterm -e fbgs %

any thoughts?

thanks,
j

ararus 03-12-2008 01:05 PM

Personally, I tend to download pdf files (with wget) and view them locally rather than opening them directly. Once you've downloaded it, it's obviously much quicker to open it locally rather than re-downloading it every time you need to refer back to it (well, I suppose it doesn't matter if you never read it again). I also use pdftotext to convert to text for easy grepping (btw, the -layout option will preserve the layout of the text as much as possible, much better than the default output).

As for viewing (in a GUI), xpdf is light and pretty good. The download page has both source and binary packages. Check your distro packages before you download it though, you may have it already.

?xunil 03-12-2008 07:41 PM

ok i think i have solved most of it, i used...

pdftohtml % %.html && elinks -remote "openURL(%.html, new-tab)"

...only problem is it does not open in a new tab, and sometimes does not work.

any thoughts?

j


All times are GMT -5. The time now is 02:49 PM.