Reloading the page is required so that any other transitional open page/file the browser might have previously cached is not displayed. That creates a transitional file(s) in the /tmp directory that proves acceptable to the -remote switch. Pdftohtml -i file.pdf /tmp/pdf.html & elinks -remote /tmp/pdf.html & elinks -remote "reload()" The kludge I've so far gotten to approximate what I'm aiming for is Although something like pdftohtml -i file.pdf my-pipe & elinks The most straightforward way to do this might seem to be pdftohtml -i -stdout file.pdf |elinks -remote. I've so far been unable to get a command like this to work on the output of the pdftohtml command. The way this works, using as an example a URL instead of the output of a command, is as follows: starting elinks in one terminal, then running a command like elinks -remote in another terminal, will result in a new tab being opened in the running elinks instance displaying the google search page. I want to use elinks' -remote switch to cause the output from the pdftohtml command to be sent to a new tab in an already-running instance of elinks. What I'm hoping to do though, is a slight variation on this. As should be clear, what's happening is that file.pdf is being converted to html and then piped to the text-mode browser elinks for display. The following command works great to view pdf content from the command line: pdftohtml -i -stdout file.pdf |elinks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |